pub enum LineageBinding {
ChainPosition(u64),
PreviousHash(String),
}Expand description
Lineage binding for the preimage (ADR 0014 §Replay: “preimage MUST
include chain_position or previous_hash”).
JSONL appends prefer PreviousSignature (Option A from ADR 0010 §2);
CLI attestation records that don’t have a previous signature on hand
at sign time use ChainPosition (Option B-style monotonic counter).
Variants§
ChainPosition(u64)
Monotonic chain position counter (u64).
PreviousHash(String)
Hex-encoded previous-row hash (32-byte BLAKE3 → 64 hex chars).
Implementations§
Source§impl LineageBinding
impl LineageBinding
Sourcepub const fn tag(&self) -> u8
pub const fn tag(&self) -> u8
Tag byte distinguishing the two variants in the canonical preimage.
0x01 for ChainPosition, 0x02 for PreviousHash. The tag is
included so a captured signature for ChainPosition(10) cannot be
re-purposed under PreviousHash("0a…") even if their canonical
byte forms happened to coincide.
Trait Implementations§
Source§impl Clone for LineageBinding
impl Clone for LineageBinding
Source§fn clone(&self) -> LineageBinding
fn clone(&self) -> LineageBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineageBinding
impl Debug for LineageBinding
Source§impl PartialEq for LineageBinding
impl PartialEq for LineageBinding
Source§fn eq(&self, other: &LineageBinding) -> bool
fn eq(&self, other: &LineageBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LineageBinding
impl StructuralPartialEq for LineageBinding
Auto Trait Implementations§
impl Freeze for LineageBinding
impl RefUnwindSafe for LineageBinding
impl Send for LineageBinding
impl Sync for LineageBinding
impl Unpin for LineageBinding
impl UnsafeUnpin for LineageBinding
impl UnwindSafe for LineageBinding
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