MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / decode_effect_receipt_key

Function decode_effect_receipt_key

atomic-core/src/pristine/tables.rs:1158–1162  ·  view source on GitHub ↗
(key: &[u8; 64])

Source from the content-addressed store, hash-verified

1156/// Decode an operation/receipt composite key.
1157#[inline]
1158pub fn decode_effect_receipt_key(key: &[u8; 64]) -> (OperationId, EffectReceiptId) {
1159 let operation = OperationId::from_bytes(key[..OperationId::SIZE].try_into().unwrap());
1160 let receipt = EffectReceiptId::from_bytes(key[OperationId::SIZE..].try_into().unwrap());
1161 (operation, receipt)
1162}
1163
1164/// Encode a view-merkle pair as 40 bytes
1165#[inline]

Callers 2

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected