StaticschnorrCreates a Schnorr signature from a 64-byte array.
The 64-byte signature data
A new Schnorr signature
StaticschnorrCreates a Schnorr signature from a hex string.
The hex-encoded signature data
A new Schnorr signature
StaticecdsaCreates an ECDSA signature from a 64-byte array.
The 64-byte signature data
A new ECDSA signature
StaticecdsaCreates an ECDSA signature from a hex string.
The hex-encoded signature data
A new ECDSA signature
Staticed25519Creates an Ed25519 signature from a 64-byte array.
The 64-byte signature data
A new Ed25519 signature
Staticed25519Creates an Ed25519 signature from a hex string.
The hex-encoded signature data
A new Ed25519 signature
Staticsr25519Creates an Sr25519 signature from a 64-byte array.
The 64-byte signature data
A new Sr25519 signature
Staticsr25519Creates an Sr25519 signature from a hex string.
The hex-encoded signature data
A new Sr25519 signature
StaticmldsaCreates a Signature from an MLDSASignature.
The MLDSASignature
A new Signature wrapping the MLDSA signature
Returns the signature scheme used to create this signature.
Returns a human-readable string identifying the signature type.
A string like "Ed25519", "Schnorr", "ECDSA", "Sr25519", "MLDSA-44", etc.
Returns the raw signature data.
Returns the Schnorr signature data if this is a Schnorr signature.
The 64-byte signature data if this is a Schnorr signature, null otherwise
Checks if this is a Schnorr signature.
Returns the ECDSA signature data if this is an ECDSA signature.
The 64-byte signature data if this is an ECDSA signature, null otherwise
Checks if this is an ECDSA signature.
Returns the Ed25519 signature data if this is an Ed25519 signature.
The 64-byte signature data if this is an Ed25519 signature, null otherwise
Checks if this is an Ed25519 signature.
Returns the Sr25519 signature data if this is an Sr25519 signature.
The 64-byte signature data if this is an Sr25519 signature, null otherwise
Checks if this is an Sr25519 signature.
Returns the MLDSASignature if this is an MLDSA signature.
The MLDSASignature if this is an MLDSA signature, null otherwise
Checks if this is an MLDSA signature.
Get hex string representation of the signature data.
Get string representation.
Returns the CBOR tags associated with Signature.
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 Signature by decoding it from untagged CBOR.
Format (matching Rust bc-components):
StaticfromStaticfromStaticfromReturns the UR representation of the signature.
Returns the UR string representation of the signature.
StaticfromStaticfromStaticfrom
A digital signature created with various signature algorithms.
Currently supports: