mirror of
https://github.com/luxfi/crypto.git
synced 2026-07-27 01:54:50 +00:00
feat(verkle): integrate luxfi/crypto/banderwagon canonical
Rewrite 10 import lines across 9 verkle/*.go files to point at
luxfi/crypto/{banderwagon,ipa,ipa/{ipa,common}} instead of
crate-crypto/go-ipa/*. Drops crate-crypto/go-ipa from go.mod.
verkle tests: 82 PASS / 4 SKIP / 2 FAIL (known-stale upstream fixtures
TestParseNodeEoA, TestParseNodeSingleSlot — pre-existing on
go-verkle@v0.2.2, unchanged baseline).
go build ./... clean.
This commit is contained in:
@@ -10,7 +10,6 @@ require (
|
||||
github.com/cloudflare/circl v1.6.3
|
||||
github.com/consensys/gnark-crypto v0.19.2
|
||||
github.com/crate-crypto/go-eth-kzg v1.5.0
|
||||
github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0
|
||||
github.com/ethereum/c-kzg-4844/v2 v2.1.5
|
||||
|
||||
@@ -94,8 +94,6 @@ github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSV
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
||||
github.com/crate-crypto/go-eth-kzg v1.5.0 h1:FYRiJMJG2iv+2Dy3fi14SVGjcPteZ5HAAUe4YWlJygc=
|
||||
github.com/crate-crypto/go-eth-kzg v1.5.0/go.mod h1:J9/u5sWfznSObptgfa92Jq8rTswn6ahQWEuiLHOjCUI=
|
||||
github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c h1:uQYC5Z1mdLRPrZhHjHxufI8+2UG/i25QG92j0Er9p6I=
|
||||
github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c/go.mod h1:geZJZH3SzKCqnz5VT0q/DyIG/tvu/dZk+VIfXicupJs=
|
||||
github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
|
||||
@@ -38,7 +38,7 @@ package verkle
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/crate-crypto/go-ipa/ipa"
|
||||
"github.com/luxfi/crypto/ipa/ipa"
|
||||
)
|
||||
|
||||
// EmptyCodeHashPoint is a cached point that is used to represent an empty code hash.
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
"runtime"
|
||||
"sort"
|
||||
|
||||
"github.com/crate-crypto/go-ipa/banderwagon"
|
||||
"github.com/luxfi/crypto/banderwagon"
|
||||
"golang.org/x/sync/errgroup"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/crate-crypto/go-ipa/banderwagon"
|
||||
"github.com/luxfi/crypto/banderwagon"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.com/crate-crypto/go-ipa/banderwagon"
|
||||
"github.com/luxfi/crypto/banderwagon"
|
||||
)
|
||||
|
||||
func TestParseNodeEmptyPayload(t *testing.T) {
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ package verkle
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/crate-crypto/go-ipa/banderwagon"
|
||||
"github.com/luxfi/crypto/banderwagon"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
+2
-2
@@ -42,8 +42,8 @@ import (
|
||||
"sort"
|
||||
"unsafe"
|
||||
|
||||
ipa "github.com/crate-crypto/go-ipa"
|
||||
"github.com/crate-crypto/go-ipa/common"
|
||||
ipa "github.com/luxfi/crypto/ipa"
|
||||
"github.com/luxfi/crypto/ipa/common"
|
||||
)
|
||||
|
||||
const IPA_PROOF_DEPTH = 8
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/crate-crypto/go-ipa/common"
|
||||
"github.com/luxfi/crypto/ipa/common"
|
||||
)
|
||||
|
||||
func TestProofEmptyTree(t *testing.T) {
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ import (
|
||||
"runtime"
|
||||
"sync"
|
||||
|
||||
"github.com/crate-crypto/go-ipa/banderwagon"
|
||||
"github.com/luxfi/crypto/banderwagon"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/crate-crypto/go-ipa/banderwagon"
|
||||
"github.com/luxfi/crypto/banderwagon"
|
||||
)
|
||||
|
||||
var identity *Point
|
||||
|
||||
Reference in New Issue
Block a user