sigil-wallet · identity
Source declarations, signatures and documentation for identity.
Source: sigil/node/sigil-wallet/src/identity.rs. SHA-256: 4c2433ff664132b061bc370713ef2efe6055df5fe015e5875715efb533698fc2.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
identity::create
Create a new root or agent identity with a fresh keypair.
pub fn create(
namespace: &str,
name: &str,
kind: IdentityKind,
passphrase: &str,
) -> WalletResult<KeystoreEntry>;Source line: 14.
identity::derive
Derive a child identity from an existing parent.
pub fn derive(
parent_did: &str,
name: &str,
kind: IdentityKind,
passphrase: &str,
) -> WalletResult<KeystoreEntry>;Source line: 30.
identity::list
List all identities in the keystore.
pub fn list() -> WalletResult<Vec<KeystoreEntry>>;Source line: 42.
identity::show
Show a single identity by DID.
pub fn show(did: &str) -> WalletResult<KeystoreEntry>;Source line: 48.
identity::export
Export an identity to a file.
pub fn export(did: &str, output: &str) -> WalletResult<()>;Source line: 54.
identity::import
Import an identity from a file.
pub fn import(input: &str) -> WalletResult<KeystoreEntry>;Source line: 61.
identity::resolve_identity
Resolve the identity DID to use: explicit argument, config default, or error.
pub fn resolve_identity(explicit: Option<&str>) -> WalletResult<String>;Source line: 68.
identity::print_created
Print a created identity in a nice format.
pub fn print_created(entry: &KeystoreEntry);Source line: 82.
identity::print_list
Print a table of all identities.
pub fn print_list(entries: &[KeystoreEntry]);Source line: 121.
identity::print_detail
Print detailed view of a single identity.
pub fn print_detail(entry: &KeystoreEntry);Source line: 164.