chore: sync dependencies and format code

This commit is contained in:
Zach Kelling
2026-02-04 15:46:45 -08:00
parent 427520b775
commit f91008ca83
7 changed files with 76 additions and 76 deletions
+8 -8
View File
@@ -4,7 +4,7 @@ go 1.25.5
require (
// External dependencies
github.com/cloudflare/circl v1.6.2 // BLS12-381 curve operations
github.com/cloudflare/circl v1.6.3 // BLS12-381 curve operations
github.com/fxamacker/cbor/v2 v2.9.0
// Lux crypto stack - this is the HIGH-LEVEL orchestration layer
// that consumes primitives from these packages (LP-5703, LP-5704)
@@ -16,7 +16,7 @@ require (
github.com/spf13/cobra v1.10.2
github.com/stretchr/testify v1.11.1
github.com/zeebo/blake3 v0.2.4
golang.org/x/crypto v0.46.0
golang.org/x/crypto v0.47.0
golang.org/x/sync v0.19.0
)
@@ -53,12 +53,12 @@ require (
github.com/x448/float16 v0.8.4 // indirect
go.yaml.in/yaml/v2 v2.4.3 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93 // indirect
golang.org/x/mod v0.31.0 // indirect
golang.org/x/net v0.48.0 // indirect
golang.org/x/sys v0.39.0 // indirect
golang.org/x/text v0.32.0 // indirect
golang.org/x/tools v0.40.0 // indirect
golang.org/x/exp v0.0.0-20260112195511-716be5621a96 // indirect
golang.org/x/mod v0.32.0 // indirect
golang.org/x/net v0.49.0 // indirect
golang.org/x/sys v0.40.0 // indirect
golang.org/x/text v0.33.0 // indirect
golang.org/x/tools v0.41.0 // indirect
google.golang.org/protobuf v1.36.11 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
+16 -16
View File
@@ -6,8 +6,8 @@ github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cloudflare/circl v1.6.2 h1:hL7VBpHHKzrV5WTfHCaBsgx/HGbBYlgrwvNXEVDYYsQ=
github.com/cloudflare/circl v1.6.2/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJRn81BiS4=
github.com/cloudflare/circl v1.6.3 h1:9GPOhQGF9MCYUeXyMYlqTR6a5gTrgR/fBLXvUgtVcg8=
github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJRn81BiS4=
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
github.com/cronokirby/saferith v0.33.0 h1:TgoQlfsD4LIwx71+ChfRcIpjkw+RPOapDEVxa+LhwLo=
github.com/cronokirby/saferith v0.33.0/go.mod h1:QKJhjoqUtBsXCAVEjw38mFqoi7DebT7kthcD7UzbnoA=
@@ -113,23 +113,23 @@ go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0=
go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8=
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
golang.org/x/crypto v0.46.0 h1:cKRW/pmt1pKAfetfu+RCEvjvZkA9RimPbh7bhFjGVBU=
golang.org/x/crypto v0.46.0/go.mod h1:Evb/oLKmMraqjZ2iQTwDwvCtJkczlDuTmdJXoZVzqU0=
golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93 h1:fQsdNF2N+/YewlRZiricy4P1iimyPKZ/xwniHj8Q2a0=
golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93/go.mod h1:EPRbTFwzwjXj9NpYyyrvenVh9Y+GFeEvMNh7Xuz7xgU=
golang.org/x/mod v0.31.0 h1:HaW9xtz0+kOcWKwli0ZXy79Ix+UW/vOfmWI5QVd2tgI=
golang.org/x/mod v0.31.0/go.mod h1:43JraMp9cGx1Rx3AqioxrbrhNsLl2l/iNAvuBkrezpg=
golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU=
golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY=
golang.org/x/crypto v0.47.0 h1:V6e3FRj+n4dbpw86FJ8Fv7XVOql7TEwpHapKoMJ/GO8=
golang.org/x/crypto v0.47.0/go.mod h1:ff3Y9VzzKbwSSEzWqJsJVBnWmRwRSHt/6Op5n9bQc4A=
golang.org/x/exp v0.0.0-20260112195511-716be5621a96 h1:Z/6YuSHTLOHfNFdb8zVZomZr7cqNgTJvA8+Qz75D8gU=
golang.org/x/exp v0.0.0-20260112195511-716be5621a96/go.mod h1:nzimsREAkjBCIEFtHiYkrJyT+2uy9YZJB7H1k68CXZU=
golang.org/x/mod v0.32.0 h1:9F4d3PHLljb6x//jOyokMv3eX+YDeepZSEo3mFJy93c=
golang.org/x/mod v0.32.0/go.mod h1:SgipZ/3h2Ci89DlEtEXWUk/HteuRin+HHhN+WbNhguU=
golang.org/x/net v0.49.0 h1:eeHFmOGUTtaaPSGNmjBKpbng9MulQsJURQUAfUwY++o=
golang.org/x/net v0.49.0/go.mod h1:/ysNB2EvaqvesRkuLAyjI1ycPZlQHM3q01F02UY/MV8=
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk=
golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU=
golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY=
golang.org/x/tools v0.40.0 h1:yLkxfA+Qnul4cs9QA3KnlFu0lVmd8JJfoq+E41uSutA=
golang.org/x/tools v0.40.0/go.mod h1:Ik/tzLRlbscWpqqMRjyWYDisX8bG13FrdXp3o4Sr9lc=
golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ=
golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE=
golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8=
golang.org/x/tools v0.41.0 h1:a9b8iMweWG+S0OBnlU36rzLp20z1Rp10w+IY2czHTQc=
golang.org/x/tools v0.41.0/go.mod h1:XSY6eDqxVNiYgezAVqqCeihT4j1U2CCsqvH3WhQpnlg=
google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE=
google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+20 -20
View File
@@ -15,26 +15,26 @@ import (
type EVMChain string
const (
Ethereum EVMChain = "ethereum"
BSC EVMChain = "bsc"
Polygon EVMChain = "polygon"
Lux EVMChain = "lux"
Arbitrum EVMChain = "arbitrum"
Optimism EVMChain = "optimism"
Base EVMChain = "base"
Fantom EVMChain = "fantom"
Cronos EVMChain = "cronos"
Harmony EVMChain = "harmony"
Moonbeam EVMChain = "moonbeam"
Aurora EVMChain = "aurora"
Gnosis EVMChain = "gnosis"
Scroll EVMChain = "scroll"
zkSync EVMChain = "zksync"
Linea EVMChain = "linea"
Mantle EVMChain = "mantle"
Celo EVMChain = "celo"
Kava EVMChain = "kava"
Metis EVMChain = "metis"
Ethereum EVMChain = "ethereum"
BSC EVMChain = "bsc"
Polygon EVMChain = "polygon"
Lux EVMChain = "lux"
Arbitrum EVMChain = "arbitrum"
Optimism EVMChain = "optimism"
Base EVMChain = "base"
Fantom EVMChain = "fantom"
Cronos EVMChain = "cronos"
Harmony EVMChain = "harmony"
Moonbeam EVMChain = "moonbeam"
Aurora EVMChain = "aurora"
Gnosis EVMChain = "gnosis"
Scroll EVMChain = "scroll"
zkSync EVMChain = "zksync"
Linea EVMChain = "linea"
Mantle EVMChain = "mantle"
Celo EVMChain = "celo"
Kava EVMChain = "kava"
Metis EVMChain = "metis"
)
// ChainConfig contains chain-specific configuration
+22 -22
View File
@@ -14,28 +14,28 @@ type Chain string
// All supported blockchains (top 100+ by market cap and usage)
const (
// Layer 1 Blockchains
Bitcoin Chain = "bitcoin"
Ethereum Chain = "ethereum"
BNBChain Chain = "bnb"
Solana Chain = "solana"
Cardano Chain = "cardano"
Lux Chain = "lux"
Polygon Chain = "polygon"
TRON Chain = "tron"
TON Chain = "ton"
Sui Chain = "sui"
Aptos Chain = "aptos"
Near Chain = "near"
Cosmos Chain = "cosmos"
Algorand Chain = "algorand"
Stellar Chain = "stellar"
Hedera Chain = "hedera"
Flow Chain = "flow"
Tezos Chain = "tezos"
EOS Chain = "eos"
XRPL Chain = "xrpl"
Polkadot Chain = "polkadot"
Kusama Chain = "kusama"
Bitcoin Chain = "bitcoin"
Ethereum Chain = "ethereum"
BNBChain Chain = "bnb"
Solana Chain = "solana"
Cardano Chain = "cardano"
Lux Chain = "lux"
Polygon Chain = "polygon"
TRON Chain = "tron"
TON Chain = "ton"
Sui Chain = "sui"
Aptos Chain = "aptos"
Near Chain = "near"
Cosmos Chain = "cosmos"
Algorand Chain = "algorand"
Stellar Chain = "stellar"
Hedera Chain = "hedera"
Flow Chain = "flow"
Tezos Chain = "tezos"
EOS Chain = "eos"
XRPL Chain = "xrpl"
Polkadot Chain = "polkadot"
Kusama Chain = "kusama"
// Layer 2 & Sidechains
Arbitrum Chain = "arbitrum"
+3 -3
View File
@@ -155,9 +155,9 @@ func TestLSSSignMultipleSubsets(t *testing.T) {
// Test different signer subsets
subsets := [][]party.ID{
partyIDs[:threshold], // First 3
partyIDs[len(partyIDs)-threshold:], // Last 3
{partyIDs[0], partyIDs[2], partyIDs[4]}, // Every other
partyIDs[:threshold], // First 3
partyIDs[len(partyIDs)-threshold:], // Last 3
{partyIDs[0], partyIDs[2], partyIDs[4]}, // Every other
}
for i, signers := range subsets {
+6 -6
View File
@@ -20,21 +20,21 @@ func TestRound1IsBroadcastRound(t *testing.T) {
"c": {ECDSA: curve.Secp256k1{}.NewScalar().ActOnBase()},
},
}
signers := []party.ID{"a", "b", "c"}
startFunc := Start(cfg, signers, make([]byte, 32), nil)
session, err := startFunc([]byte("test"))
if err != nil {
t.Fatalf("Failed to start: %v", err)
}
// Check if round 1 is a BroadcastRound
br, isBR := session.(round.BroadcastRound)
t.Logf("Round 1 implements BroadcastRound: %v", isBR)
if !isBR {
t.Fatal("Round 1 should implement BroadcastRound")
}
bc := br.BroadcastContent()
t.Logf("BroadcastContent type: %T", bc)
if bc == nil {
@@ -51,12 +51,12 @@ func TestRound2IsBroadcastRound(t *testing.T) {
Threshold: 2,
},
}
r2 := &round2{
round1: r1,
nonces: make(map[party.ID]curve.Point),
}
// Check if round 2 is a BroadcastRound
var session round.Session = r2
br, isBR := session.(round.BroadcastRound)
@@ -64,7 +64,7 @@ func TestRound2IsBroadcastRound(t *testing.T) {
if !isBR {
t.Fatal("Round 2 should implement BroadcastRound")
}
bc := br.BroadcastContent()
t.Logf("BroadcastContent type: %T", bc)
if bc == nil {
+1 -1
View File
@@ -34,8 +34,8 @@ import (
"github.com/luxfi/crypto/bls"
"github.com/luxfi/corona/threshold"
blsThreshold "github.com/luxfi/threshold/protocols/bls"
"github.com/luxfi/threshold/pkg/party"
blsThreshold "github.com/luxfi/threshold/protocols/bls"
)
var (