class PublicKey
(source)
A SECP256K1 public key.
asEcPoint |
Computes the public key as a point on the elliptic curve. open fun asEcPoint(): ECPoint! |
bytes |
Provides the bytes of the key. open fun bytes(): Bytes! |
bytesArray |
Provides the bytes of the key. open fun bytesArray(): ByteArray! |
equals |
open fun equals(other: Any?): Boolean |
fromBytes |
Create the public key from bytes. open static fun fromBytes(bytes: Bytes!): PublicKey! |
fromHexString |
Create the public key from a hex string. open static fun fromHexString(str: CharSequence!): PublicKey! |
fromInteger |
Create the public key from a secret key. open static fun fromInteger(privateKey: BigInteger!): PublicKey! |
fromSecretKey |
Create the public key from a secret key. open static fun fromSecretKey(secretKey: SecretKey!): PublicKey! |
hashCode |
open fun hashCode(): Int |
recoverFromHashAndSignature |
Recover a public key using a digital signature and a keccak256 hash of the data it signs. open static fun recoverFromHashAndSignature(hash: ByteArray!, signature: Signature!): PublicKey? open static fun recoverFromHashAndSignature(hash: Bytes32!, signature: Signature!): PublicKey? |
recoverFromSignature |
Recover a public key using a digital signature and the data it signs. open static fun recoverFromSignature(data: ByteArray!, signature: Signature!): PublicKey? open static fun recoverFromSignature(data: Bytes!, signature: Signature!): PublicKey? |
toHexString |
Provides this key represented as hexadecimal, starting with "0x". open fun toHexString(): String! |
toString |
open fun toString(): String |