Skip to content

test(canton): golden-test request ID hashing against TS/Daml #770

@Pessina

Description

@Pessina

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions