mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Add first party support for k256 and p256 under feature flags
Given the lack of vectors for k256, it's currently a match of the p256 spec (with a distinct context string), yet p256 is still always used when testing.
This commit is contained in:
@@ -15,6 +15,10 @@ hex = "0.4"
|
||||
ff = "0.11"
|
||||
group = "0.11"
|
||||
|
||||
sha2 = { version = "0.10", optional = true }
|
||||
p256 = { version = "0.10", optional = true }
|
||||
k256 = { version = "0.10", optional = true }
|
||||
|
||||
transcript = { path = "../transcript" }
|
||||
|
||||
multiexp = { path = "../multiexp", features = ["batch"] }
|
||||
@@ -23,3 +27,7 @@ multiexp = { path = "../multiexp", features = ["batch"] }
|
||||
rand = "0.8"
|
||||
sha2 = "0.10"
|
||||
p256 = { version = "0.10", features = ["arithmetic"] }
|
||||
|
||||
[features]
|
||||
p256 = ["sha2", "dep:p256"]
|
||||
k256 = ["sha2", "dep:k256"]
|
||||
|
||||
Reference in New Issue
Block a user