pub struct AgentMaterial {
pub config: Value,
pub agent: Value,
pub public_key: Vec<u8>,
pub encrypted_private_key: Vec<u8>,
pub algorithm: SigningAlgorithm,
}Expand description
Persisted bundle for an encrypted JACS agent.
The shape is JSON-friendly so it can be written to localStorage (via
jacs-wasm::local_store::save_encrypted_agent) as a single string blob
without further unpacking. The two Vec<u8> fields are
base64-serialized by serde_json when the bundle is JSON-encoded
(via the default serde(with = …) path below).
Fields§
§config: ValueThe agent’s jacs.config.json contents (parsed as JSON).
agent: ValueThe agent’s JACS document (the agent.json body, including
jacsId, jacsVersion, jacsSignature, etc.).
public_key: Vec<u8>Raw public-key bytes (algorithm-specific encoding — Ed25519 is the 32-byte verifying key, pq2025 is the 2592-byte ML-DSA-87 public key).
encrypted_private_key: Vec<u8>The encrypted private-key envelope. Either the V2 Argon2id JSON
envelope (current writer) or the legacy raw-binary PBKDF2 envelope
(legacy reader). envelope::decrypt_private_key sniffs which one
it is.
algorithm: SigningAlgorithmThe signing algorithm tied to the keys above.
Trait Implementations§
Source§impl Clone for AgentMaterial
impl Clone for AgentMaterial
Source§fn clone(&self) -> AgentMaterial
fn clone(&self) -> AgentMaterial
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentMaterial
impl Debug for AgentMaterial
Source§impl<'de> Deserialize<'de> for AgentMaterial
impl<'de> Deserialize<'de> for AgentMaterial
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AgentMaterial
Source§impl PartialEq for AgentMaterial
impl PartialEq for AgentMaterial
Source§fn eq(&self, other: &AgentMaterial) -> bool
fn eq(&self, other: &AgentMaterial) -> bool
self and other values to be equal, and is used by ==.