pub struct IndexedSignature {
pub index: u32,
pub prior_index: Option<u32>,
pub sig: Vec<u8>,
}Expand description
A single indexed controller signature.
The index maps to the position in the key list (k field) of the
signing key. Per the CESR spec, indexed signatures carry their key
index in the derivation code.
Usage:
use auths_keri::IndexedSignature;
let sig = IndexedSignature { index: 0, prior_index: None, sig: vec![0u8; 64] };
assert_eq!(sig.index, 0);Fields§
§index: u32Index into the new key list k[] (which current key signed).
prior_index: Option<u32>For a rotation signature, the index into the prior event’s next-key
commitment list n[] that this signature reveals (CESR ondex).
Some(j) emits a dual-index (“Big”, 2A) siger; None emits the
single-index code (A) with ondex == index — preserving the wire
bytes of every single-index signer (inception, symmetric rotation).
sig: Vec<u8>Raw signature bytes (64 bytes for Ed25519).
Trait Implementations§
Source§impl Clone for IndexedSignature
impl Clone for IndexedSignature
Source§fn clone(&self) -> IndexedSignature
fn clone(&self) -> IndexedSignature
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 IndexedSignature
impl Debug for IndexedSignature
Source§impl<'de> Deserialize<'de> for IndexedSignature
impl<'de> Deserialize<'de> for IndexedSignature
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
impl Eq for IndexedSignature
Source§impl PartialEq for IndexedSignature
impl PartialEq for IndexedSignature
Source§impl Serialize for IndexedSignature
impl Serialize for IndexedSignature
impl StructuralPartialEq for IndexedSignature
Auto Trait Implementations§
impl Freeze for IndexedSignature
impl RefUnwindSafe for IndexedSignature
impl Send for IndexedSignature
impl Sync for IndexedSignature
impl Unpin for IndexedSignature
impl UnsafeUnpin for IndexedSignature
impl UnwindSafe for IndexedSignature
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.