pub struct MemStore { /* private fields */ }
Expand description

An insecure, in-memory Storage implementation that serves as an example and is used in tests.

Implementations

Creates a new, empty MemStore instance.

Returns whether to expand the debug representation.

Sets whether to expand the debug representation.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Creates a new identity for the given network. Read more

Removes the keys and any other state for the given did. Read more

Returns true if did exists in the list of stored DIDs.

Returns the list of stored DIDs.

Generates a new key for the given did with the given key_type and fragment identifier and returns the location of the newly generated key. Read more

Inserts a private key at the specified location. Read more

Returns true if a key exists at the specified location.

Retrieves the public key from location.

Deletes the key at location. Read more

Signs data with the private key at the specified location.

Encrypts the given plaintext with the specified encryption_algorithm and cek_algorithm. Read more

Decrypts the given data with the specified encryption_algorithm and cek_algorithm. Read more

Returns the chain state of the identity specified by did.

Set the chain state of the identity specified by did.

Returns the IotaDocument of the identity specified by did.

Sets a new state for the identity specified by did.

Persists any unsaved changes.

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.