Skip to content

Use blake3 hash for garbling on wasm targets #340

@themighty1

Description

@themighty1

Since wasm targets don't have access to AES-NI acceleration, we can use the blake3 hash for garbling instead of tccr.

I ran some browser benchmarks using the tlsn harness, replacing the tccr hash with a blake3 hash and saw a 2x improvement in garbling speed.

I used this impl https://github.com/themighty1/mpz/blob/46ee34d44e06c58a045c7573f5260aee059e05ed/crates/core/src/aes.rs#L87

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