Struct fog_crypto::identity::Signature
source · [−]pub struct Signature { /* private fields */ }
Expand description
An annotated cryptographic signature.
Includes the version of hash that was signed, the Identity
of the signer, and the signature
itself. These are always encoded together to make it easier to verify signatures appended to a
chunk of data.
A signature can be constructed in one of two ways: calling sign(...)
on an IdentityKey
,
or by verifying an UnverifiedSignature
.
The byte encoding is specifically:
- The Hash version byte
- The encoded signing
Identity
- The cryptographic signature’s raw bytes
Implementations
The version of the Hash
used in signature computation.
The public Identity
of the IdentityKey
that created this signature.
Encode the signature onto a Vec<u8>
. Adds the hash version, signing identity, and
signature bytes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Signature
impl UnwindSafe for Signature
Blanket Implementations
Mutably borrows from an owned value. Read more