Apollo

Apollo defines the set of cryptographic operations that are used in the Atala PRISM.

Inheritors

Functions

Link copied to clipboard
abstract fun createPrivateKey(properties: Map<String, Any>): PrivateKey

Creates a private key using the provided properties.

Link copied to clipboard
abstract fun createPublicKey(properties: Map<String, Any>): PublicKey

Creates a public key using the provided properties.

Link copied to clipboard

Creates a random set of mnemonic phrases that can be used as a seed for generating a private key.

Link copied to clipboard
abstract fun createRandomSeed(passphrase: String? = ""): SeedWords

Creates a random seed and a corresponding set of mnemonic phrases.

Link copied to clipboard
abstract fun createSeed(mnemonics: Array<String>, passphrase: String): Seed

Takes in a set of mnemonics and a passphrase, and returns a seed object used to generate a private key.

Link copied to clipboard
abstract fun isPrivateKeyData(identifier: String, data: ByteArray): Boolean

Determines if the input data corresponds to a private key

Link copied to clipboard
abstract fun isPublicKeyData(identifier: String, data: ByteArray): Boolean

Determines if the input data corresponds to a public key

Link copied to clipboard
abstract fun restoreKey(key: JWK, index: Int? = null): Key

Restores a key from a JWK (JSON Web Key).

Link copied to clipboard

A method to restore a private key from a StorableKey

abstract fun restorePrivateKey(storablePrivateKey: StorablePrivateKey): PrivateKey

Restores a private key from StorablePrivateKey.

abstract fun restorePrivateKey(restorationIdentifier: String, privateKeyData: String): PrivateKey

Restores a private key using a restoration identifier and private key data encoded in base 64.

Link copied to clipboard

A method to restore a public key from a StorableKey