Skip to main content

Ed25519PublicKey

open class Ed25519PublicKey : Disposable, AutoCloseable, Ed25519PublicKeyInterface

An ed25519 public key.

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

Functions​

NameSummary
close@Synchronized
open override fun close()
deriveAddressopen override fun deriveAddress(): Address
Derive an Address from this Public Key
destroyopen override fun destroy()
equalsopen operator override fun equals(other: Any?): Boolean
hashCodeopen override fun hashCode(): Int
schemeopen override fun scheme(): SignatureScheme
Returns the signature scheme for this public key.
toBcsopen override fun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toBytesopen override fun toBytes(): ByteArray
toDisplayStringopen override fun toDisplayString(): String
Render this type as human-readable text.
toFlaggedBytesopen override fun toFlaggedBytes(): ByteArray
Returns the bytes with signature scheme flag prepended.
toJsonopen override fun toJson(): String
Convert this type to a JSON encoded string.

Companion object functions​

NameSummary
fromBcsfun fromBcs(bcs: ByteArray): Ed25519PublicKey
Create this type from BCS encoded bytes.
fromBytesfun fromBytes(bytes: ByteArray): Ed25519PublicKey
fromJsonfun fromJson(json: String): Ed25519PublicKey
Create this type from a JSON encoded string.
fromStrfun fromStr(s: String): Ed25519PublicKey
randomfun random(): Ed25519PublicKey