Struct ruma_signatures::Signature [] [src]

pub struct Signature { /* fields omitted */ }

A digital signature.

Methods

impl Signature
[src]

Creates a signature from raw bytes.

Parameters

  • id: A key identifier, e.g. "ed25519:1".
  • bytes: The digital signature, as a series of bytes.

Errors

Returns an error if the key identifier is invalid.

The algorithm used to generate the signature.

The raw bytes of the signature.

A Base64 encoding of the signature.

The key identifier, a string containing the signature algorithm and the key "version" separated by a colon, e.g. "ed25519:1".

The "version" of the key used for this signature.

Versions are used as an identifier to distinguish signatures generated from different keys but using the same algorithm on the same homeserver.

Trait Implementations

impl Clone for Signature
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Signature
[src]

Formats the value using the given formatter.

impl Eq for Signature
[src]

impl Hash for Signature
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

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 !=.