Skip to content

Commit

Permalink
Add poseidon(arg1, arg2, arg3) to gnark
Browse files Browse the repository at this point in the history
Constants generated using `sage generate_parameters_grain.sage 1 0 254 4 8 56 0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001`, based on `cargo xtask generate-poseidon-parameters` generation

See also: https://github.com/lightprotocol/light-poseidon?tab=readme-ov-file#parameters
  • Loading branch information
sergeytimoshin committed Mar 5, 2024
1 parent 81dbd26 commit c7dea5f
Show file tree
Hide file tree
Showing 3 changed files with 445 additions and 5 deletions.
9 changes: 5 additions & 4 deletions gnark-prover/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@ import (
_ "embed"
"encoding/json"
"fmt"
"github.com/consensys/gnark/constraint"
gnarkLogger "github.com/consensys/gnark/logger"
"github.com/urfave/cli/v2"
"io"
"light/light-prover/config"
"light/light-prover/logging"
"light/light-prover/merkle-tree"
merkle_tree "light/light-prover/merkle-tree"
"light/light-prover/prover"
"light/light-prover/server"
"math/big"
"os"
"os/signal"
"strings"

"github.com/consensys/gnark/constraint"
gnarkLogger "github.com/consensys/gnark/logger"
"github.com/urfave/cli/v2"
)

func main() {
Expand Down
Loading

0 comments on commit c7dea5f

Please sign in to comment.