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

This structure represents Wildland cryptographic identity.

It uses BIP39 and BIP32 processes to derive keypairs of three purposes:

  • signing (not rotated, used to sign “user manifest”)
  • encryption (used by other people to encrypt secrets to the user, rotated)
  • single-use-encryption - to transfer secrets in public

Implementations

Derive the key that represents a forest. Pubkey represents forest to the world.

Derive current encryption key, used to encrypt secrets to the owner of the forest. This keypair should be rotated whenever any of user’s devices is compromised / stolen / lost. Current encryption pubkey should be accessible to anyone willing to communicate with the user.

Deterministically derive single-use encryption key. Send it to the seller of storage, so it can use it to encrypt your storage credentials. By bumping index, one can create multiple keys to be used with different on-chain identities, making linking the purchases harder. Please note that this keys are not scoped to particular forest, since they are supposed to be used only once anyway.

Deterministically derive encryption keypair that can be used to backup secrets with intent of using them later, during recovery process. This keypair is not scoped to the forest. It should be used only internally.

Trait Implementations

Formats the value using the given formatter. Read more

Derive identity from mnemonic phrase.

Derived identity is bound to Wildland project - same 12 words will produce different seed (number) in other project. Only English language is accepted.

The type returned in the event of a conversion error.

Deterministically derive Wildland identity from Ethereum signature (or any random bits). Assumes high quality entropy and does not perform any checks.

The type returned in the event of a conversion error.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more