Weave documentation
Rust referencel1fe-weave-core

l1fe-weave-core · identity

Source declarations, signatures and documentation for identity.

Reviewed implementation boundary: Some core wrappers derive transport keys from DID strings. Do not infer secret key custody or authenticated peers from a supplied DID string; inspect the chosen wrapper and transport configuration. See /libraries/weave-core/overview.

Source: sigil/weave/libs/weave-core/src/identity/mod.rs. SHA-256: f0c5ec33f9befbf38943c92966727a359547e3a4f734558950fe1765e311ce62.

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::Did

DID wrapper that delegates to weave-identity

#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct Did(pub WeaveIdentity);

Source line: 16.

identity::Did::new

Create a new DID from the weave identity

pub fn new(identity: WeaveIdentity) -> Self;

Source line: 20.

identity::Did::inner

Get the inner identity

pub fn inner(&self) -> &WeaveIdentity;

Source line: 25.

identity::Did::is_agent

Check if this is an agent DID

pub fn is_agent(&self) -> bool;

Source line: 30.

identity::Did::is_human

Check if this is a human DID

pub fn is_human(&self) -> bool;

Source line: 35.

identity::Did::is_organization

Check if this is an organization DID

pub fn is_organization(&self) -> bool;

Source line: 40.

On this page