Secp256r1PublicKey

A NIST P-256 (Secp256r1) public key in canonical uncompressed SEC1 form.

Constructors

Link copied to clipboard
constructor(key: ByteArray)

Types

Link copied to clipboard
object Companion

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
fun verifyBytes(message: ByteArray, signature: Secp256r1Signature): Boolean
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.

Link copied to clipboard
fun verifyText(message: String, signature: Secp256r1Signature): Boolean