pub struct CheckpointContent<'a> {
pub ledger_id: &'a Did,
pub seq: u64,
pub head_hash: [u8; 32],
pub balances_root: [u8; 32],
pub pending_root: [u8; 32],
pub ts: u64,
pub prev_checkpoint_hash: [u8; 32],
}Expand description
The signable content of a checkpoint (the sig-free projection).
Fields§
§ledger_id: &'a Did§seq: u64§head_hash: [u8; 32]§balances_root: [u8; 32]§pending_root: [u8; 32]§ts: u64See SignedCheckpoint::ts.
prev_checkpoint_hash: [u8; 32]Implementations§
Source§impl CheckpointContent<'_>
impl CheckpointContent<'_>
Sourcepub fn signing_input(&self) -> Result<Vec<u8>, LedgerError>
pub fn signing_input(&self) -> Result<Vec<u8>, LedgerError>
Domain-separated signing input: a content hash prefixed by the domain tag
(the mac::audit::audit_signing_input shape — sign the hash, not the raw
bytes, so the signature is independent of the canonical-bytes choice).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CheckpointContent<'a>
impl<'a> RefUnwindSafe for CheckpointContent<'a>
impl<'a> Send for CheckpointContent<'a>
impl<'a> Sync for CheckpointContent<'a>
impl<'a> Unpin for CheckpointContent<'a>
impl<'a> UnsafeUnpin for CheckpointContent<'a>
impl<'a> UnwindSafe for CheckpointContent<'a>
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