Skip to content

Commit

Permalink
Add bitcoin curve support. (lambdaclass#1218)
Browse files Browse the repository at this point in the history
* Update `cairo-native` version.

* Implement syscall `secp256k1_new`.

* Fix stuff.

* Add some secp libfuncs.

* Add `secp256k1_mul` and `secp256r1_mul`.

* Fix keccal syscall and comment on the unwraps.

* Implement missing secp256 syscalls.

* Add missing unwrap comments.

* Add tests.

---------

Co-authored-by: Esteve Soler Arderiu <esteve@MacBook-Pro-de-Esteve.local>
  • Loading branch information
azteca1998 and Esteve Soler Arderiu authored Feb 8, 2024
1 parent 05e3bb9 commit 2e7bcc1
Show file tree
Hide file tree
Showing 4 changed files with 948 additions and 104 deletions.
182 changes: 180 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ cairo-lang-casm = { workspace = true }
cairo-lang-sierra = { workspace = true }
cairo-lang-starknet = { workspace = true }
cairo-lang-utils = { workspace = true }
cairo-native = { git = "https://github.com/lambdaclass/cairo_native", rev = "67a8c4e9853f588d4e8cb898f3fda37b7bdae5f1", optional = true }

cairo-native = { git = "https://github.com/lambdaclass/cairo_native", rev = "66d16af0db37ba6769d4576a49e12a40af14f565", optional = true }
k256 = "0.13.3"
p256 = "0.13.2"
sec1 = "0.7.3"

cairo-vm = { workspace = true }
flate2 = "1.0.25"
Expand Down
28 changes: 0 additions & 28 deletions generators.py

This file was deleted.

Loading

0 comments on commit 2e7bcc1

Please sign in to comment.