Skip to content

Commit

Permalink
add metrics readme
Browse files Browse the repository at this point in the history
  • Loading branch information
0x471 committed Sep 11, 2024
1 parent 4530d04 commit 7e91302
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,33 @@ There are interesting use cases such as:
- [Balance hiding for DAO treasuries.](https://github.com/lyronctk/treasure-house?tab=readme-ov-file) ([Based on work done by Griffin Dunaif & Dan Boneh](https://hackmd.io/nCASdhqVQNWwMhpTmKpnKQ)).


## Overview

| Category | Count |
|-------------------|--------|
| Total rows | 21,059 |
| RangeCheck0 | 5,448 |
| RangeCheck1 | 2,724 |
| Zero | 4,490 |
| ForeignFieldAdd | 1,460 |
| Generic | 3,939 |
| ForeignFieldMul | 798 |
| Poseidon | 2,200 |


## Performance Metrics

| Task | Time |
|---------------------------------|--------------|
| Compile | 3.316s |
| Generate ECDH keys | 1.961ms |
| Prove Alice | 22.432s |
| Prove Bob | 17.200s |
| Verify Alice | 818.308ms |
| Verify Bob | 737.852ms |

MacBook Pro M1, 8GB RAM

## How to build

```sh
Expand Down
2 changes: 1 addition & 1 deletion src/ecdh-secp256k1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('ECDH Secp256k1', () => {
const expectedPublicKey = Secp256k1Curve.generator.scale(privateKey);

const computedPublicKey = ecdh.publicKey(privateKey);

expect(computedPublicKey.toBigint()).toStrictEqual(expectedPublicKey.toBigint());
});

Expand Down

0 comments on commit 7e91302

Please sign in to comment.