Follow-up from PR #740.
Code:
|
/// TODO(test): golden-test against the TypeScript/Daml reference implementation. |
|
/// Generate expected request IDs from the TS canton-sig package with known |
|
/// event payloads, then assert this function produces identical outputs. |
|
pub fn compute_request_id(event: &SignBidirectionalRequestedEvent) -> anyhow::Result<[u8; 32]> { |
Context: compute_request_id must match the TypeScript/Daml Canton reference implementation. Generate expected request IDs from the TS canton-sig package for known event payloads and assert the Rust implementation produces identical bytes.
Follow-up from PR #740.
Code:
mpc/chain-signatures/node/src/indexer_canton/request_id.rs
Lines 53 to 56 in 93c8e00
Context:
compute_request_idmust match the TypeScript/Daml Canton reference implementation. Generate expected request IDs from the TS canton-sig package for known event payloads and assert the Rust implementation produces identical bytes.