-
Notifications
You must be signed in to change notification settings - Fork 1
feat: refactor #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat: refactor #49
Changes from 43 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
a223812
wip
wemeetagain 9f5e701
wip: refactor the refactor (#50)
spiral-ladder 6c3db51
pairing: remove unnecessary assert
spiral-ladder b0d51da
remove redundant portable
spiral-ladder 3458ad3
pairing: explain that pairing owns memory
spiral-ladder 3cb5c4e
remove all usage of c pointers in native zig code
spiral-ladder 704c411
remove `min_pk.zig` and move declarations
spiral-ladder f783845
fix bun lints
spiral-ladder 9b5a4e0
pairing: refactor pairing as top-level struct
spiral-ladder 0fbfccf
secret_key: refactor secret_key as top-level struct
spiral-ladder bfeed94
pk: make PublicKey top level struct
spiral-ladder 5fa5c90
move fast verification to own file
spiral-ladder 2b0752d
signature: make Signature top-level struct
spiral-ladder fe96b7b
fix PublicKey.point
spiral-ladder ad21ee4
move aggregateVerify test to Signature.zig
spiral-ladder 0ce15b8
move more tests around
spiral-ladder bfbae85
fix abi
spiral-ladder a4c7453
more descriptive errorFromInt
spiral-ladder ca85a6b
chore: more descriptive namings
spiral-ladder aa5bd95
fix and expose fast verif
spiral-ladder c5c0384
remove blst from gitignore now that we use zig package
spiral-ladder 834db5d
remove redundant rands
spiral-ladder e8bfa3e
use defined MAX_AGGREGATE_PER_JOB
spiral-ladder ce19316
uncomment pk validation
spiral-ladder fb51da4
bun lint
spiral-ladder 724e87d
fix: use same rands for aggregateWithRandomness
spiral-ladder 8e882a7
bun lint --fix
spiral-ladder 97bffae
fix incorrect usage of ptrCast
spiral-ladder 6794916
public key back to extern struct
spiral-ladder 231f74a
bun lint fix
spiral-ladder a62beca
signature back to extern struct
spiral-ladder 7099c29
bun lint --fix
spiral-ladder fcc141c
undo extern struct changes
spiral-ladder 19e0b22
bun lint fix'
spiral-ladder 6c0bceb
minor AggregateSignature fixes
spiral-ladder f2a8d1c
do not copy pks
spiral-ladder d20d683
bun lint
spiral-ladder 7bb299f
use raw C types
spiral-ladder 62380af
refactor entire eth_c_abi.zig to use raw C types as params
spiral-ladder 1506925
bun lint --fix
spiral-ladder 58cc49e
fix signature.zig
spiral-ladder 6ec2cdd
bun lint --fix
spiral-ladder 7b8c78c
Update README
spiral-ladder 20e7b73
fix aggregateVerify test count
spiral-ladder 2bb5395
bun lint --fix
spiral-ladder ea0ae94
expose c
spiral-ladder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| zig-out/ | ||
| .zig-cache/ | ||
| bun/node_modules/ | ||
| bun/benchmark_data/ | ||
| bun/benchmark_data/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| "": { | ||
| "name": "blst-bun", | ||
| "dependencies": { | ||
| "@chainsafe/bun-ffi-z": "^v1.0.0", | ||
| "@chainsafe/bun-ffi-z": "^1.1.1", | ||
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "^1.9.3", | ||
|
|
@@ -83,7 +83,7 @@ | |
|
|
||
| "@chainsafe/benchmark": ["@chainsafe/[email protected]", "", { "dependencies": { "@actions/cache": "^4.0.0", "@actions/github": "^6.0.0", "@vitest/runner": "^2.1.8", "ajv": "^8.17.1", "aws-sdk": "^2.932.0", "cli-table3": "^0.6.5", "csv-parse": "^5.6.0", "csv-stringify": "^6.5.2", "debug": "^4.4.0", "glob": "^10.4.5", "log-symbols": "^7.0.0", "yaml": "^2.7.0", "yargs": "^17.7.2" }, "bin": { "benchmark": "bin/index.js" } }, "sha512-5rQKK2ar1k8DwqEMU5hTQlTrtrPzNdlfrMtbRgtrfYT/QpSADXGq1vBlywofY1D8HuEuv1LhRrn3p2rgibIXew=="], | ||
|
|
||
| "@chainsafe/bun-ffi-z": ["@chainsafe/bun-ffi-z@1.0.0", "", { "peerDependencies": { "typescript": "^5" }, "bin": { "bun-ffi-z": "src/cli.ts" } }, "sha512-IRQrGWvDVSWQOcNYPZqPeqMN8qRotad/84RHSxQ8xzIuhVhkpUp2lx4VeD92Tnkcwbp5Gr+tUT4Lb47nbIe1Xg=="], | ||
| "@chainsafe/bun-ffi-z": ["@chainsafe/bun-ffi-z@1.1.1", "", { "peerDependencies": { "typescript": "^5" }, "bin": { "bun-ffi-z": "src/cli.ts" } }, "sha512-RSJhdS8Ytj3NuEvwshAFRI/y9/GbD1IhVuYEjVt0u16Hw2owDvVUVAgiN4/g8WWcFMhs8i5a4VXiFzK25fARSA=="], | ||
|
|
||
| "@colors/colors": ["@colors/[email protected]", "", {}, "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ=="], | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the plan in this PR to keep the bun bindings and move to lodestar-bun in a separate PR?
(I'm not planning on giving a deep review of the bun code until a PR into lodestar-bun)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept this here for ease of development, just to make sure the bun side still passes tests+benchmarks without the hassle. I will move the bun bindings from this PR to a new PR in lodestar-bun.