Skip to content

Commit

Permalink
pedersen snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielye committed Apr 1, 2024
1 parent 48442ce commit ddf5526
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`pedersen pedersen hash buffer 1`] = `Buffer<0x2bd5c452a0c97162294fc9dfd0f1e09d0e09c95fa5ed3ff149fbdef366cb51f9>`;
exports[`pedersen pedersen hash buffer 1`] = `"2bd5c452a0c97162294fc9dfd0f1e09d0e09c95fa5ed3ff149fbdef366cb51f9"`;
14 changes: 7 additions & 7 deletions yarn-project/foundation/src/crypto/pedersen/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ describe('pedersen', () => {
expect(r.toString()).toEqual('0x1c446df60816b897cda124524e6b03f36df0cec333fad87617aab70d7861daa6');
});

// it('pedersen hash buffer', () => {
// const input = Buffer.alloc(123);
// input.writeUint32BE(321, 0);
// input.writeUint32BE(456, 119);
// const r = pedersenHashBuffer(input);
// expect(r).toMatchSnapshot();
// });
it('pedersen hash buffer', () => {
const input = Buffer.alloc(123);
input.writeUint32BE(321, 0);
input.writeUint32BE(456, 119);
const r = pedersenHashBuffer(input);
expect(r.toString('hex')).toMatchSnapshot();
});
});

0 comments on commit ddf5526

Please sign in to comment.