Skip to content

Commit 31a0514

Browse files
leonardoaltpacheco
andcommitted
Initial powdr acceleration (#3)
Co-authored-by: Leandro Pacheco <[email protected]>
1 parent 5ac8f5d commit 31a0514

File tree

11 files changed

+969
-88
lines changed

11 files changed

+969
-88
lines changed

Cargo.lock

+130-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

k256/Cargo.toml

+16-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ serdect = { version = "0.2", optional = true, default-features = false }
2929
sha2 = { version = "0.10", optional = true, default-features = false }
3030
signature = { version = "2", optional = true }
3131

32+
[target.'cfg(all(target_os = "zkvm", target_arch = "riscv32"))'.dependencies]
33+
powdr-riscv-runtime = { git = "https://github.com/powdr-labs/powdr.git", tag = "v0.1.1", features = [
34+
"std",
35+
"getrandom",
36+
"allow_fake_rand",
37+
] }
38+
3239
[dev-dependencies]
3340
blobby = "0.3"
3441
criterion = "0.5"
3542
ecdsa-core = { version = "0.16", package = "ecdsa", default-features = false, features = ["dev"] }
43+
hex = "0.4.3"
3644
hex-literal = "0.4"
3745
num-bigint = "0.4"
3846
num-traits = "0.2"
@@ -41,7 +49,14 @@ rand_core = { version = "0.6", features = ["getrandom"] }
4149
sha3 = { version = "0.10", default-features = false }
4250

4351
[features]
44-
default = ["arithmetic", "ecdsa", "pkcs8", "precomputed-tables", "schnorr", "std"]
52+
default = [
53+
"arithmetic",
54+
"ecdsa",
55+
"pkcs8",
56+
"precomputed-tables",
57+
"schnorr",
58+
"std",
59+
]
4560
alloc = ["ecdsa-core?/alloc", "elliptic-curve/alloc"]
4661
std = ["alloc", "ecdsa-core?/std", "elliptic-curve/std", "once_cell?/std"]
4762

0 commit comments

Comments
 (0)