Function
encode_effect_receipt_key
(operation: OperationId, receipt: EffectReceiptId)
Source from the content-addressed store, hash-verified
| 1147 | /// Encode an operation/receipt pair for operation-prefix range scans. |
| 1148 | #[inline] |
| 1149 | pub fn encode_effect_receipt_key(operation: OperationId, receipt: EffectReceiptId) -> [u8; 64] { |
| 1150 | let mut key = [0u8; 64]; |
| 1151 | key[..OperationId::SIZE].copy_from_slice(operation.as_bytes()); |
| 1152 | key[OperationId::SIZE..].copy_from_slice(receipt.as_bytes()); |
| 1153 | key |
| 1154 | } |
| 1155 | |
| 1156 | /// Decode an operation/receipt composite key. |
| 1157 | #[inline] |