Struct signatory::Ed25519Signature[][src]

pub struct Ed25519Signature(pub [u8; 64]);

Ed25519 signatures

Methods

impl Signature
[src]

Create an Ed25519 signature from a 32-byte array

Obtain signature as a byte array reference

Convert signature into owned byte array

Trait Implementations

impl Clone for Signature
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl AsRef<[u8]> for Signature
[src]

Important traits for &'a [u8]

Performs the conversion.

impl Debug for Signature
[src]

Formats the value using the given formatter. Read more

impl Decode for Signature
[src]

Decode an Ed25519 signature from a byte slice with the given encoding (e.g. hex, Base64)

Decode the given string-alike type with the provided Encoding, returning the decoded value or a Error. Read more

Decode the data read from the given io::Read type with the provided Encoding, returning the decoded value or a Error. Read more

Read a file at the given path, decoding the data it contains using the provided Encoding, returning the decoded value or a Error. Read more

impl Encode for Signature
[src]

Important traits for Vec<u8>

Encode an Ed25519 signature with the given encoding (e.g. hex, Base64)

Encode self to a String using the provided Encoding, returning the encoded value or a Error. Read more

Encode self with the given Encoding, writing the result to the supplied io::Write type, returning the number of bytes written or a Error. Read more

Encode self and write it to a file at the given path, returning the resulting File or a Error. Read more

impl Eq for Signature
[src]

impl PartialEq for Signature
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl SignatureTrait for Signature
[src]

Create an Ed25519 signature from its serialized byte representation

Important traits for &'a [u8]

Borrow a signature as a byte slice

Important traits for Vec<u8>

Convert signature into owned byte array

Auto Trait Implementations