Static ReadonlyUR_Get the UR type for signing public keys.
StaticfromCreates a new signing public key from a Schnorr (x-only) public key.
A SchnorrPublicKey
A new signing public key containing the Schnorr key
StaticfromCreates a new signing public key from an ECDSA (compressed) public key.
An ECPublicKey
A new signing public key containing the ECDSA key
StaticfromCreates a new signing public key from an Ed25519 public key.
An Ed25519 public key
A new signing public key containing the Ed25519 key
StaticfromCreates a new signing public key from an Sr25519 public key.
An Sr25519 public key
A new signing public key containing the Sr25519 key
StaticfromCreates a new signing public key from an MLDSAPublicKey.
An MLDSAPublicKey
A new signing public key containing the MLDSA key
Returns the signature scheme of this key.
Returns a human-readable string identifying the key type.
A string like "Ed25519", "Schnorr", "ECDSA", "Sr25519", "MLDSA-44", etc.
Returns the underlying Schnorr public key if this is a Schnorr key.
The SchnorrPublicKey if this is a Schnorr key, null otherwise
Returns the underlying ECDSA public key if this is an ECDSA key.
The ECPublicKey if this is an ECDSA key, null otherwise
Returns the underlying Ed25519 public key if this is an Ed25519 key.
The Ed25519 public key if this is an Ed25519 key, null otherwise
Returns the underlying Sr25519 public key if this is an Sr25519 key.
The Sr25519 public key if this is an Sr25519 key, null otherwise
Checks if this is a Schnorr signing key.
Checks if this is an ECDSA signing key.
Checks if this is an Ed25519 signing key.
Checks if this is an Sr25519 signing key.
Returns the underlying MLDSA public key if this is an MLDSA key.
The MLDSAPublicKey if this is an MLDSA key, null otherwise
Checks if this is an MLDSA signing key.
Get string representation.
Returns a unique reference to this SigningPublicKey instance.
The reference is derived from the SHA-256 hash of the tagged CBOR representation, providing a unique, content-addressable identifier.
Verifies a signature against a message.
The signature to verify
The message that was allegedly signed
true if the signature is valid, false otherwise
Returns the CBOR tags associated with SigningPublicKey.
Returns the untagged CBOR encoding.
Format (matching Rust bc-components):
Returns the tagged CBOR encoding.
Returns the tagged value in CBOR binary representation.
Creates a SigningPublicKey by decoding it from untagged CBOR.
Format (matching Rust bc-components):
Creates a SigningPublicKey by decoding it from tagged CBOR.
StaticfromStaticfromStatic method to decode from tagged CBOR binary data.
StaticfromStatic method to decode from untagged CBOR binary data.
Returns the UR representation of the signing public key.
Returns the UR string representation of the signing public key.
StaticfromStaticfromStaticfromAlias for fromURString for Rust API compatibility.
Converts the public key to SSH format. Currently only supports Ed25519 keys.
Optionalcomment: string
A public key used for verifying digital signatures.
Currently supports: