Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
216 changes: 214 additions & 2 deletions Cargo.lock

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

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ members = [
"jolt-inlines/secp256k1",
"jolt-inlines/grumpkin",
"jolt-inlines/p256",
"jolt-inlines/poseidon2-goldilocks",
"examples/btreemap/host",
"examples/btreemap/guest",
"examples/collatz",
Expand Down Expand Up @@ -254,6 +255,10 @@ sha3 = "0.11"
blake2 = "0.11.0-rc.6"
blake3 = { version = "1.8.5" }
light-poseidon = "0.4"
p3-field = "0.5.3"
p3-goldilocks = "0.5.3"
p3-poseidon2 = "0.5.3"
p3-symmetric = "0.5.3"
digest = "0.11"
jolt-optimizations = { git = "https://github.com/a16z/arkworks-algebra", branch = "dev/twist-shout" }
dory = { package = "dory-pcs", version = "0.3.0", features = [
Expand Down Expand Up @@ -400,3 +405,4 @@ jolt-inlines-bigint = { path = "./jolt-inlines/bigint", default-features = false
jolt-inlines-secp256k1 = { path = "./jolt-inlines/secp256k1", default-features = false }
jolt-inlines-grumpkin = { path = "./jolt-inlines/grumpkin", default-features = false }
jolt-inlines-p256 = { path = "./jolt-inlines/p256", default-features = false }
jolt-inlines-poseidon2-goldilocks = { path = "./jolt-inlines/poseidon2-goldilocks", default-features = false }
3 changes: 3 additions & 0 deletions crates/jolt-riscv/src/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub enum InlineExtension {
Secp256k1,
Grumpkin,
P256,
Poseidon2Goldilocks,
}

#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
Expand Down Expand Up @@ -84,6 +85,7 @@ pub const RV64IMAC_JOLT_ALL_INLINES: JoltInstructionProfile = JoltInstructionPro
InlineExtension::Secp256k1,
InlineExtension::Grumpkin,
InlineExtension::P256,
InlineExtension::Poseidon2Goldilocks,
],
};

Expand Down Expand Up @@ -254,6 +256,7 @@ const fn inline_extension_code(extension: InlineExtension) -> u8 {
InlineExtension::Secp256k1 => 5,
InlineExtension::Grumpkin => 6,
InlineExtension::P256 => 7,
InlineExtension::Poseidon2Goldilocks => 8,
}
}

Expand Down
22 changes: 22 additions & 0 deletions jolt-inlines/poseidon2-goldilocks/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
name = "jolt-inlines-poseidon2-goldilocks"
version = "0.1.0"
edition = "2021"
description = "Poseidon2-Goldilocks inline implementation for Jolt VM"
license = "MIT"
homepage = "https://github.com/a16z/jolt/README.md"
repository = "https://github.com/a16z/jolt"

[features]
default = []
host = ["jolt-inlines-sdk/host"]

[dependencies]
jolt-inlines-sdk = { workspace = true, optional = true }

[dev-dependencies]
p3-field.workspace = true
p3-goldilocks.workspace = true
p3-poseidon2.workspace = true
p3-symmetric.workspace = true
tracer = { workspace = true, features = ["std", "test-utils"] }
Loading