pub struct Keycard {
    pub entries: Vec<Entry>,
    /* private fields */
}
Expand description

A Keycard object is a collection of entries tied together in an authenticated blockchain. It consists of the root entry for the entity all the way through the current entry.

Fields

entries: Vec<Entry>

Implementations

Creates a new Keycard of the specified type

Creates a new keycard entry chain from text.

Returns the last entry of the keycard

Finds the entry in a keycard which has the requested hash

Returns a mutable reference to the last entry of the keycard

Returns the type of entries stored in the keycard

Returns the entire keycard chain as text

Creates a new Entry object in the keycard. Organization keycards are complete and compliant when chain() returns. User keycards will require cross_sign() and user_sign() to be called before it is complete.

This convenience method applies only to user keycards and is used to set the organization’s signature for the current entry.

This convenience method applies only to user keycards and is used to add the final user signature and generate the hash for the entry. Once this has been applied, the current entry for the card should be compliant and should pass verification.

Verifies the keycard’s complete chain of entries

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.