Commit Graph

13 Commits

Author SHA1 Message Date
Matthias Seitz d8b5b00ba4 feat: derive hash for generated types 2024-03-07 18:58:49 +01:00
DaniPopes fd669bfa36
Make Rust `bindgen` build dependency optional (#382) 2024-02-06 11:39:07 -06:00
Dan Cline 9cb4db23dd chore: bump bindgen
also adds .ccls-cache/ to .gitignore
2024-01-22 11:16:35 -05:00
rakita f5f6f863d4
chore: bump bindgen version (#355) 2023-09-05 17:24:53 -05:00
Dan Cline 666a9de002
feat: add serde impls to Blob and Bytes48 (#342)
* feat: add serde impls to Blob and Bytes48

* remove duplicate serde file

* cargo fmt

* serialize and deserialize with prefix

* cargo fmt

* use different trusted setup based on minimal spec

* add Bytes32 serde impls
2023-08-24 21:39:46 -06:00
Michael Sproul 4c0d477c0f
Use blst crate for Rust blst dep (#351) 2023-08-24 14:13:39 -06:00
Justin Traglia de151d8fd7
Update rust dependencies (#333) 2023-08-10 12:51:56 +01:00
Divma fd24cf8e1e
[Rust] Remove blst to avoid double link issues, expose blst features (#287) 2023-04-10 15:45:34 -05:00
Divma b30983fc9a
Windows bindings for rust (#259) 2023-04-05 13:33:37 -05:00
Divma 34f4fa1609
Delegate blst build to crate in preparation for windows bindings (#274) 2023-03-31 10:56:56 -05:00
Divma f384175810
Reproducible rust bindings (#243)
* modify directory structure to isolate the generated bindings

* add a lib.rs file

* move deref impls to the extension file

* remove unused types from generated bindings

* cleanup new lines to reduce diff noise

* reorder definitions to reduce diff noise

* move sync and send impls to the extension file

* generate bindings

* blacklist used bindings; create snapshots dir to ensure freshness in the future

* fix typo. Ty @pawanjay176

* run cargo build after merge

* custom impl for KZGCommitment and KZGProof

* final touches
2023-03-27 23:47:24 +09:00
Justin Traglia 3e5f562f05
Update rust bindings to support YAML ref tests (#164) 2023-03-03 16:01:56 -07:00
Pawan Dhananjay 2c151d7f7e
Rust bindings (#4)
* working build

* Move bindings.rs to root directory

* tidy build script

* Add initial rust safe bindings

* import fewer c stuff in bindings

* remove unnecessary blst definitions in bindings

* remove bindgen build dependency

* improve interface

* Remove more stuff from bindings

* Add a simple test

* Update error type

* Update verify_kzg_proof interface

* Return array instead of vec

* link with no-pie

* impl Send and Sync for KzgSettings; change mut pointers to const

* Remove no-pie linking

* Make FIELD_ELEMENTS_PER_BLOB a compile time variable

* Add load_trusted_setup method

* Cleanup

* Add failure case to bytes_to_bls_field

* Fix conditional compilation and ensure canonical blobs in test

* Add test vectors

* Remove blobk_commitment test case

* Change function signature

* Copy and delete instead of rename in build script

* Make consts public

* Add error conditions for invalid trusted setup

* Lowercase renamings

* Make blob public

* Add benchmarks

* Run test vectors only for mainnet spec

* Add README

* clippy

* Add rust CI checks

* actually add CI checks

* Fix CI

* Fix workflow again
2023-01-12 17:50:12 +00:00