Skip to content

Commit

Permalink
range proofs part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
maycon-mello committed Sep 1, 2023
1 parent 288181c commit c69720f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/wasm/src/services/credential/range-proof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ import {
import {BoundCheckSnarkSetup} from '@docknetwork/crypto-wasm-ts/lib/bound-check';
import {initializeWasm} from '@docknetwork/crypto-wasm-ts/lib/index';

// Use presentation builder instead of low level implementation
// https://github.com/docknetwork/crypto-wasm-ts/blob/master/src/anonymous-credentials/presentation-builder.ts#L240.
// https://github.com/docknetwork/crypto-wasm-ts/blob/master/tests/anonymous-credentials/presentation.spec.ts#L932

// Low level implementation testing, we don't need to use it
const stringToBytes = (string: string): Uint8Array =>
Uint8Array.from(Buffer.from(string, 'utf-8'));

Expand Down

0 comments on commit c69720f

Please sign in to comment.