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 Oct 2, 2024
1 parent e73a71d commit 18d81f5
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 90 deletions.
128 changes: 97 additions & 31 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.2", 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 @@ -15,14 +15,13 @@ exclude = ["test-data/**"]

[dependencies]
starknet-curve = { version = "0.5.1", 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.6", default-features = false, features = ["curve", "hash"] }

Expand All @@ -35,7 +34,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.6", default-features = false, features = ["alloc"] }
Expand Down
Loading

0 comments on commit 18d81f5

Please sign in to comment.