Skip to content

C bindings #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 19 commits into from
Prev Previous commit
Next Next commit
.
  • Loading branch information
irfanbozkurt committed Jan 22, 2025
commit 29329c71552acac16e044bc50e152ac51138ae7b
18 changes: 0 additions & 18 deletions hash/poseidon2_goldilocks/poseidon2_test.go
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@
package poseidon2

import (
"fmt"
"testing"

g "github.com/elliottech/poseidon_crypto/field/goldilocks"
)

func TestGetNilTreeLevels(t *testing.T) {
res := []HashOut{EmptyHashOut()}
for i := 1; i < 128; i++ {
res = append(res, HashTwoToOne(res[i-1], res[i-1]))
}

fmt.Println()
for i := 0; i < len(res); i++ {
leBytes := res[i].ToLittleEndianBytes()
for j := 0; j < len(leBytes); j++ {
fmt.Printf("%d ", leBytes[j])
}
fmt.Println()
}
fmt.Println()
}

func TestPermute(t *testing.T) {
inp := [WIDTH]g.Element{
g.FromUint64(5417613058500526590),
Expand Down
Loading