Secp256k1PublicKey

class Secp256k1PublicKey(val hexInput: HexInput) : PublicKey

Represents the Secp256k1 ecdsa public key

Secp256k1 authentication key is represented in the SDK as AnyPublicKey.

Constructors

Link copied to clipboard
constructor(hexInput: HexInput)
constructor(pk: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toBcs(): ByteArray

Get the BCS bytes

Link copied to clipboard
open override fun toByteArray(): ByteArray

Get the raw public key bytes

Link copied to clipboard
open override fun verifySignature(message: HexInput, signature: Signature): Boolean

Verifies that the private key associated with this public key signed the message with the given signature.