Package-level declarations

Types

Link copied to clipboard
class ED25519KeyDerive(val key: ByteArray, val chaincode: ByteArray)
Link copied to clipboard

This class represents an Ed25519 private key.

Link copied to clipboard
Link copied to clipboard
enum Hash : Enum<Hash>
Link copied to clipboard
data class KeyPair(val privateKey: ByteArray, val publicKey: ByteArray)

Represents a pair of signing keys: a public key and a private key.

Link copied to clipboard
interface PrivateKey

This interface defines the PrivateKey interface, which represents a private key in the SUI blockchain. The private key is used to sign transactions and messages.

Link copied to clipboard
interface PublicKey
Link copied to clipboard

Functions

Link copied to clipboard
expect fun derivePublicKey(privateKey: PrivateKey, schema: SignatureScheme): PublicKey
actual fun derivePublicKey(privateKey: PrivateKey, schema: SignatureScheme): PublicKey
actual fun derivePublicKey(privateKey: PrivateKey, schema: SignatureScheme): PublicKey
actual fun derivePublicKey(privateKey: PrivateKey, schema: SignatureScheme): PublicKey
Link copied to clipboard
expect fun generateKeyPair(seed: ByteArray, scheme: SignatureScheme): KeyPair
actual fun generateKeyPair(seed: ByteArray, scheme: SignatureScheme): KeyPair
actual fun generateKeyPair(seed: ByteArray, scheme: SignatureScheme): KeyPair
actual fun generateKeyPair(seed: ByteArray, scheme: SignatureScheme): KeyPair
Link copied to clipboard
expect fun generateMnemonic(): String
actual fun generateMnemonic(): String
actual fun generateMnemonic(): String
actual fun generateMnemonic(): String
Link copied to clipboard
Link copied to clipboard
expect fun generateSeed(mnemonic: List<String>): ByteArray
actual fun generateSeed(mnemonic: List<String>): ByteArray
actual fun generateSeed(mnemonic: List<String>): ByteArray
actual fun generateSeed(mnemonic: List<String>): ByteArray
Link copied to clipboard
expect fun hash(hash: Hash, data: ByteArray): ByteArray
actual fun hash(hash: Hash, data: ByteArray): ByteArray
actual fun hash(hash: Hash, data: ByteArray): ByteArray
actual fun hash(hash: Hash, data: ByteArray): ByteArray
Link copied to clipboard
expect fun importFromMnemonic(mnemonic: String): KeyPair
expect fun importFromMnemonic(mnemonic: List<String>): KeyPair
actual fun importFromMnemonic(mnemonic: String): KeyPair
actual fun importFromMnemonic(mnemonic: List<String>): KeyPair
actual fun importFromMnemonic(mnemonic: String): KeyPair
actual fun importFromMnemonic(mnemonic: List<String>): KeyPair
actual fun importFromMnemonic(mnemonic: String): KeyPair
actual fun importFromMnemonic(mnemonic: List<String>): KeyPair
Link copied to clipboard
expect fun sign(message: ByteArray, privateKey: PrivateKey): ByteArray
actual fun sign(message: ByteArray, privateKey: PrivateKey): ByteArray
actual fun sign(message: ByteArray, privateKey: PrivateKey): ByteArray