Secp256r1PublicKey
open class Secp256r1PublicKey : Disposable, AutoCloseable, Secp256r1PublicKeyInterface
A secp256r1 public key.
BCS
The BCS serialized form for this type is defined by the following ABNF:
secp256r1-public-key = 33OCTET
Functions
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| deriveAddress | open override fun deriveAddress(): Address Derive an Address from this Public Key |
| destroy | open override fun destroy() |
| equals | open operator override fun equals(other: Any?): Boolean |
| hashCode | open override fun hashCode(): Int |
| scheme | open override fun scheme(): SignatureScheme Returns the signature scheme for this public key. |
| toBytes | open override fun toBytes(): ByteArray |
| toFlaggedBytes | open override fun toFlaggedBytes(): ByteArray Returns the bytes with signature scheme flag prepended |
Companion object functions
| Name | Summary |
|---|---|
| fromBytes | fun fromBytes(bytes: ByteArray): Secp256r1PublicKey |
| fromStr | fun fromStr(s: String): Secp256r1PublicKey |
| random | fun random(): Secp256r1PublicKey |