(key: &[u8; 64])
| 1156 | /// Decode an operation/receipt composite key. |
| 1157 | #[inline] |
| 1158 | pub 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] |
no test coverage detected