Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
This class represents an Ed25519 private key.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
This class represents an Secp256k1 private key.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
actual fun derivePrivateKeyFromMnemonic(mnemonic: List<String>, scheme: SignatureScheme, path: String): ByteArray
actual fun derivePrivateKeyFromMnemonic(mnemonic: List<String>, scheme: <Error class: unknown class>, path: String): ByteArray
expect fun derivePrivateKeyFromMnemonic(mnemonic: List<String>, scheme: SignatureScheme = SignatureScheme.ED25519, path: String = "m/44'/784'/0/0/0"): ByteArray
actual fun derivePrivateKeyFromMnemonic(mnemonic: List<String>, scheme: SignatureScheme, path: String): ByteArray
Link copied to clipboard
actual fun derivePublicKey(privateKey: <Error class: unknown class>, schema: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
fun findCommonPublicKey(arr1: List<PasskeyPublicKey>, arr2: List<PasskeyPublicKey>): PasskeyPublicKey
Finds the unique public key that exists in both arrays, throws error if the common pubkey does not equal to one.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Parses a DER-encoded signature, normalizes its 'S' value to prevent malleability, and returns it in a compact 64-byte (r || s) format.
Link copied to clipboard
Link copied to clipboard
actual fun verifySignature(publicKey: <Error class: unknown class>, message: ByteArray, signature: ByteArray): Boolean