#[repr(C)]pub struct Signature { /* private fields */ }Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519 signature, and does not necessarily represent well-formed field or curve elements.
Signature verification libraries are expected to reject invalid field elements at the time a signature is verified.
Implementations
Parse an Ed25519 signature from a byte slice.
Parse an Ed25519 signature from its R and s components.
Parse an Ed25519 signature from a byte slice.
Returns
Okon successErrif the input byte slice is not 64-bytes
Bytes for the R component of a signature.
Bytes for the s component of a signature.
Return the inner byte array.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Decode a signature from hexadecimal.
Upper and lower case hexadecimal are both accepted, however mixed case is rejected.
type Repr = SignatureBytes
type Repr = SignatureBytes
Byte representation of a signature.
Encode signature as its byte representation.
