pub struct Signature {
pub algorithm: String,
pub key_id: String,
pub value: String,
}Expand description
Detached Ed25519 signature over the body’s content_hash field value.
The value bytes are a signature over the ASCII bytes of the full
content_hash string (e.g. "sha256:5f8d…") — NOT the raw 32-byte
digest. See RFC-ACDP-0001 §5.8.
The signature object is a CLOSED wire shape — exactly algorithm,
key_id, value (additionalProperties: false). Future signature
variants (proof chains, threshold attestations) require an explicit
schema bump, not field-level extensibility, so deny_unknown_fields
rejects an unknown field (RFC-ACDP-0007 §3.3.1, fixture schema-008).
Fields§
§algorithm: StringAlgorithm identifier. Only "ed25519" is required in v0.1.0.
key_id: StringDID URL identifying the signing key (e.g. did:web:…#key-1).
value: StringStandard base64-encoded signature bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Signature
impl<'de> Deserialize<'de> for Signature
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more