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