update package version:

github.com/btcsuite/btcd
This commit is contained in:
wanwiset25 2025-10-07 14:07:45 +04:00
parent cd74961cda
commit fe275a9459
3 changed files with 13 additions and 13 deletions

View file

@ -16,7 +16,7 @@ import (
"github.com/XinFinOrg/XDPoSChain/log"
"github.com/XinFinOrg/XDPoSChain/crypto"
"github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcd/btcec/v2"
)
type Bulletproof struct {
@ -1285,22 +1285,22 @@ func NewECPrimeGroupKey(n int) CryptoParams {
potentialXValue[i+1] = elem
}
gen2, err := btcec.ParsePubKey(potentialXValue, btcec.S256())
gen2, err := btcec.ParsePubKey(potentialXValue)
if err == nil {
if confirmed == 2*n { // once we've generated all g and h values then assign this to u
u = ECPoint{gen2.X, gen2.Y}
u = ECPoint{gen2.X(), gen2.Y()}
//fmt.Println("Got that U value")
} else if confirmed == 2*n+1 {
cg = ECPoint{gen2.X, gen2.Y}
cg = ECPoint{gen2.X(), gen2.Y()}
} else if confirmed == 2*n+2 {
ch = ECPoint{gen2.X, gen2.Y}
ch = ECPoint{gen2.X(), gen2.Y()}
} else {
if confirmed%2 == 0 {
gen1Vals[confirmed/2] = ECPoint{gen2.X, gen2.Y}
gen1Vals[confirmed/2] = ECPoint{gen2.X(), gen2.Y()}
//fmt.Println("new G Value")
} else {
gen2Vals[confirmed/2] = ECPoint{gen2.X, gen2.Y}
gen2Vals[confirmed/2] = ECPoint{gen2.X(), gen2.Y()}
//fmt.Println("new H value")
}
}

4
go.mod
View file

@ -4,14 +4,13 @@ go 1.25
require (
github.com/VictoriaMetrics/fastcache v1.12.2
github.com/btcsuite/btcd v0.0.0-20171128150713-2e60448ffcc6
github.com/cespare/cp v1.1.1
github.com/davecgh/go-spew v1.1.1
github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf
github.com/fatih/color v1.13.0
github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb
github.com/gorilla/websocket v1.4.2
github.com/gorilla/websocket v1.5.0
github.com/holiman/uint256 v1.3.2
github.com/huin/goupnp v1.3.0
github.com/jackpal/go-nat-pmp v1.0.2
@ -33,6 +32,7 @@ require (
require (
github.com/Microsoft/go-winio v0.6.2
github.com/btcsuite/btcd/btcec/v2 v2.2.0
github.com/consensys/gnark-crypto v0.10.0
github.com/deckarep/golang-set/v2 v2.7.0
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1

8
go.sum
View file

@ -8,8 +8,8 @@ github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
github.com/bits-and-blooms/bitset v1.5.0 h1:NpE8frKRLGHIcEzkR+gZhiioW1+WbYV6fKwD6ZIpQT8=
github.com/bits-and-blooms/bitset v1.5.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA=
github.com/btcsuite/btcd v0.0.0-20171128150713-2e60448ffcc6 h1:Eey/GGQ/E5Xp1P2Lyx1qj007hLZfbi0+CoVeJruGCtI=
github.com/btcsuite/btcd v0.0.0-20171128150713-2e60448ffcc6/go.mod h1:Dmm/EzmjnCiweXmzRIAiUWCInVmPgjkzgv5k4tVyXiQ=
github.com/btcsuite/btcd/btcec/v2 v2.2.0 h1:fzn1qaOt32TuLjFlkzYSsBC35Q3KUjT1SwPxiMSCF5k=
github.com/btcsuite/btcd/btcec/v2 v2.2.0/go.mod h1:U7MHm051Al6XmscBQ0BoNydpOTsFAn707034b5nY8zU=
github.com/cespare/cp v1.1.1 h1:nCb6ZLdB7NRaqsm91JtQTAme2SKJzXVsdPIPkyJr1MU=
github.com/cespare/cp v1.1.1/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s=
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
@ -102,8 +102,8 @@ github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=
github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA=
github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=