Skip to content

Commit

Permalink
refactor: simplify k generation following RFC 6979
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored and xJonathanLEI committed Jul 15, 2024
1 parent 08a7807 commit 2f2dddf
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 94 deletions.
136 changes: 101 additions & 35 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion starknet-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ all-features = true
[dependencies]
starknet-crypto = { version = "0.7.1", path = "../starknet-crypto", default-features = false, features = ["alloc"] }
base64 = { version = "0.21.0", default-features = false, features = ["alloc"] }
crypto-bigint = { version = "0.5.1", default-features = false }
crypto-bigint = { version = "0.5.1", default-features = false, features = ["generic-array"] }
flate2 = { version = "1.0.25", optional = true }
hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
serde = { version = "1.0.160", default-features = false, features = ["derive"] }
Expand Down
10 changes: 4 additions & 6 deletions starknet-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ exclude = ["test-data/**"]
[dependencies]
starknet-crypto-codegen = { version = "0.4.0", path = "../starknet-crypto-codegen" }
starknet-curve = { version = "0.5.0", path = "../starknet-curve" }
crypto-bigint = { version = "0.5.1", default-features = false, features = ["generic-array", "zeroize"] }
hmac = { version = "0.12.1", default-features = false }
num-bigint = { version = "0.4.3", default-features = false }
num-integer = { version = "0.1.45", default-features = false }
num-traits = { version = "0.2.18", default-features = false }
rfc6979 = { version = "0.4.0", default-features = false }
sha2 = { version = "0.10.6", default-features = false }
zeroize = { version = "1.6.0", default-features = false }
rfc6979 = { version = "0.5.0-pre.3", default-features = false }
subtle = { version = "2.6.1", default-features = false }
sha2 = { version = "0.11.0-pre.3", default-features = false }
hex-literal = { version = "0.4.1", default-features = false }
hex = { version = "0.4.3", default-features = false, optional = true }
starknet-types-core = { version = "0.1.3", default-features = false, features = ["curve", "hash"] }

Expand All @@ -36,7 +35,6 @@ signature-display = ["dep:hex", "alloc"]
[dev-dependencies]
criterion = { version = "0.4.0", default-features = false }
hex = "0.4.3"
hex-literal = "0.4.1"
serde = { version = "1.0.160", features = ["derive"] }
serde_json = "1.0.96"
starknet-types-core = { version = "0.1.3", default-features = false, features = ["alloc"] }
Expand Down
Loading

0 comments on commit 2f2dddf

Please sign in to comment.