Return the base-64 representation of the public key
Returns string
AbstracttoRawBytes
toRawBytes(): Uint8Array
Return the byte array representation of the public key
Returns Uint8Array
toString
toString(): never
Returns never
toSuiAddress
toSuiAddress(): string
Return the Sui address associated with this Ed25519 public key
Returns string
toSuiBytes
toSuiBytes(): Uint8Array
Returns the bytes representation of the public key
prefixed with the signature scheme flag
Returns Uint8Array
toSuiPublicKey
toSuiPublicKey(): string
Return the Sui representation of the public key encoded in
base-64. A Sui public key is formed by the concatenation
of the scheme flag with the raw bytes of the public key
Returns string
Abstractverify
verify(data, signature): Promise<boolean>
Verifies that the signature is valid for for the provided message
Parameters
data: Uint8Array
signature: string | Uint8Array
Returns Promise<boolean>
verifyAddress
verifyAddress(address): boolean
Verifies that the public key is associated with the provided address
A public key