Weave documentation
Filament referencefilament-link

filament-link · identity

Source declarations, signatures and documentation for identity.

Read the current implementation boundaries before integration. This reference reproduces declarations; it omits source comments whose examples or readiness claims have not been verified.

Source: sigil/weave/filament/filament-link/src/identity.rs. SHA-256: e92254e1d86b91f2a3125f4826ff7e46cc67a781a0b6d6c7da268800aeba7cc8.

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

#[derive(Clone)]
pub struct Identity {

}

Source line: 17.

identity::Identity::generate

pub fn generate() -> Self;

Source line: 42.

identity::Identity::from_keys

pub fn from_keys(
        signing_key_bytes: &[u8; 32],
        encryption_key_bytes: &[u8; 32],
    ) -> Result<Self>;

Source line: 67.

identity::Identity::hash

pub fn hash(&self) -> DestinationHash;

Source line: 91.

identity::Identity::verifying_key

pub fn verifying_key(&self) -> &VerifyingKey;

Source line: 103.

identity::Identity::public_key

pub fn public_key(&self) -> &PublicKey;

Source line: 108.

identity::Identity::sign

pub fn sign(&self, message: &[u8]) -> [u8; 64];

Source line: 121.

identity::Identity::verify

pub fn verify(
        message: &[u8],
        signature: &[u8; 64],
        verifying_key: &VerifyingKey,
    ) -> Result<()>;

Source line: 133.

identity::Identity::key_exchange

pub fn key_exchange(&self, peer_public: &PublicKey) -> [u8; 32];

Source line: 153.

identity::Identity::generate_ephemeral

pub fn generate_ephemeral() -> (EphemeralSecret, PublicKey);

Source line: 163.

identity::Identity::export_signing_key

pub fn export_signing_key(&self) -> [u8; 32];

Source line: 171.

identity::Identity::export_encryption_key

pub fn export_encryption_key(&self) -> [u8; 32];

Source line: 176.

identity::PublicIdentity

#[derive(Debug, Clone)]
pub struct PublicIdentity {
/// Ed25519 verifying key

pub verifying_key: VerifyingKey,
/// X25519 public key

pub public_key: PublicKey
}

Source line: 193.

identity::PublicIdentity::from_identity

pub fn from_identity(identity: &Identity) -> Self;

Source line: 203.

identity::PublicIdentity::from_bytes

pub fn from_bytes(verifying_key: &[u8; 32], public_key: &[u8; 32]) -> Result<Self>;

Source line: 211.

identity::PublicIdentity::hash

pub fn hash(&self) -> DestinationHash;

Source line: 223.

identity::PublicIdentity::verify

pub fn verify(&self, message: &[u8], signature: &[u8; 64]) -> Result<()>;

Source line: 235.

On this page