mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
genkeys/testkeys: rehome ZAP mnemonic import to luxfi/keys (was luxfi/kms)
KMS = generic secret store; mnemonic semantics live in luxfi/keys. Same signature, same behavior — import line only. Deps: luxfi/keys v1.0.8→v1.0.9, luxfi/kms v1.9.12→v1.9.13. Build clean.
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
// genkeys generates mainnet validator keys from a BIP-39 mnemonic.
|
||||
//
|
||||
// Mnemonic source (priority order, handled inside the shared luxfi/kms
|
||||
// zapclient.LoadMnemonic loader so every Lux-derived tool resolves keys
|
||||
// keys.LoadMnemonic loader so every Lux-derived tool resolves keys
|
||||
// the same way):
|
||||
//
|
||||
// 1. MNEMONIC env var — local dev + CI test seam
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/keys"
|
||||
"github.com/luxfi/kms/pkg/zapclient"
|
||||
"github.com/luxfi/keys"
|
||||
)
|
||||
|
||||
type ValidatorBackup struct {
|
||||
@@ -36,7 +36,7 @@ type ValidatorBackup struct {
|
||||
func main() {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
|
||||
defer cancel()
|
||||
mnemonic, err := zapclient.LoadMnemonic(ctx,
|
||||
mnemonic, err := keys.LoadMnemonic(ctx,
|
||||
os.Getenv("KMS_ADDR"),
|
||||
os.Getenv("KMS_ENV"),
|
||||
envOr("KMS_MNEMONIC_PATH", "/mnemonic"))
|
||||
|
||||
@@ -9,13 +9,13 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/keys"
|
||||
"github.com/luxfi/kms/pkg/zapclient"
|
||||
"github.com/luxfi/keys"
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
|
||||
defer cancel()
|
||||
mnemonic, err := zapclient.LoadMnemonic(ctx,
|
||||
mnemonic, err := keys.LoadMnemonic(ctx,
|
||||
os.Getenv("KMS_ADDR"),
|
||||
os.Getenv("KMS_ENV"),
|
||||
envOr("KMS_MNEMONIC_PATH", "/mnemonic"))
|
||||
|
||||
@@ -19,8 +19,7 @@ require (
|
||||
github.com/luxfi/geth v1.16.98
|
||||
github.com/luxfi/go-bip39 v1.1.2
|
||||
github.com/luxfi/ids v1.2.10
|
||||
github.com/luxfi/keys v1.0.8
|
||||
github.com/luxfi/kms v1.9.12
|
||||
github.com/luxfi/keys v1.0.9
|
||||
github.com/luxfi/log v1.4.1
|
||||
github.com/luxfi/math v1.4.1
|
||||
github.com/luxfi/metric v1.5.5
|
||||
@@ -91,10 +90,10 @@ require (
|
||||
github.com/luxfi/crypto/ipa v1.2.4 // indirect
|
||||
github.com/luxfi/filesystem v0.0.1 // indirect
|
||||
github.com/luxfi/formatting v1.0.1 // indirect
|
||||
github.com/luxfi/kms v1.9.13 // indirect
|
||||
github.com/luxfi/mdns v0.1.0 // indirect
|
||||
github.com/luxfi/net v0.0.4 // indirect
|
||||
github.com/luxfi/pq v1.0.3 // indirect
|
||||
github.com/luxfi/protocol v0.0.4 // indirect
|
||||
github.com/luxfi/runtime v1.1.0 // indirect
|
||||
github.com/luxfi/staking v1.1.0 // indirect
|
||||
github.com/luxfi/sys v0.0.0-20260110090042-50187ec5ffd8 // indirect
|
||||
|
||||
@@ -300,10 +300,10 @@ github.com/luxfi/ids v1.2.10 h1:f1WILZE199ayMuqnEyB2WP1qfMZkmozOQXSVYtB3e5k=
|
||||
github.com/luxfi/ids v1.2.10/go.mod h1:QBIwy3OHvrtskbUqKh1+OYRa6PsyR7f7oNX33sOfK7w=
|
||||
github.com/luxfi/keychain v1.0.2 h1:uQgmjs37/VBIALEiYrrszTpxvtqr07/YvS9TnmxGafs=
|
||||
github.com/luxfi/keychain v1.0.2/go.mod h1:q/4ULgZBlstKkwzOzG/0T6y73BDPgnkrcibbJyTvmbU=
|
||||
github.com/luxfi/keys v1.0.8 h1:fANl6qZInndyCcXHAWiHTQ50LHhU8pJlF0Ix3phTo4A=
|
||||
github.com/luxfi/keys v1.0.8/go.mod h1:XbSCtgLyzEEVz2oZsYxnhRrNTGBxqrAm2Zu0uu06+qA=
|
||||
github.com/luxfi/kms v1.9.12 h1:o+9Ssqln/24EDJJVmuLGm2q9ehqO08h/fGqjyyCEXVw=
|
||||
github.com/luxfi/kms v1.9.12/go.mod h1:qGuK95av+MRUFsCr44FUuico4bX5lvO8pAq/lULeSas=
|
||||
github.com/luxfi/keys v1.0.9 h1:RlwhWZA+OwK54jCmV6qz36I7/DX+GJrWrQ717uNqZiA=
|
||||
github.com/luxfi/keys v1.0.9/go.mod h1:U3tZNDmv3nXkPoZwLtq9RNjwyN0XyoN29worigfT+c0=
|
||||
github.com/luxfi/kms v1.9.13 h1:b3kRaKcorBS508VUf3B/TMOr1nnHO0jOatwvci1uZWU=
|
||||
github.com/luxfi/kms v1.9.13/go.mod h1:qGuK95av+MRUFsCr44FUuico4bX5lvO8pAq/lULeSas=
|
||||
github.com/luxfi/lattice/v7 v7.1.0 h1:mr3HvN6olNTS2LT/xAW/JBhTqfvpsGmsopDMeR7BSJs=
|
||||
github.com/luxfi/lattice/v7 v7.1.0/go.mod h1:IaaUN+3ysnBG4BA8ILRYG0j80+qtYDP4C5lkaDb2pDE=
|
||||
github.com/luxfi/log v1.4.1 h1:rIfFRodb9jrD/w7KayaUk0Oc+37PaQQdKEEMJCjR8gw=
|
||||
@@ -332,8 +332,6 @@ github.com/luxfi/precompile v0.5.27 h1:lEF5gXY8ny5xXp8Qg8PK0Y2RQlaRNOZeDU+wP6Sj2
|
||||
github.com/luxfi/precompile v0.5.27/go.mod h1:boKRJeoa4XEhCoylRnPI/0IGfBgm5bZnFNI9llDktWo=
|
||||
github.com/luxfi/proto v1.1.0 h1:XIi0TEHfYXLv/vqrS21WloYImkVhVAkcmCwr/aX2FL0=
|
||||
github.com/luxfi/proto v1.1.0/go.mod h1:bpGV0Z0CTJhSEzx4exAmci+8Lm9Isa7VO+I6RT7IHlY=
|
||||
github.com/luxfi/protocol v0.0.4 h1:wf3JSyeNMEabOUG0vExtIAtjfpJAyHXlepGBwv5g9NE=
|
||||
github.com/luxfi/protocol v0.0.4/go.mod h1:9f35GLNlcHAz6LCvFBDZP5fTD2QnN0URXWGUOcD1JPU=
|
||||
github.com/luxfi/rpc v1.0.2 h1:NLRcOYRW+io0d1d33RMkgOZea8nlhK09MbPgCXcU5wU=
|
||||
github.com/luxfi/rpc v1.0.2/go.mod h1:pgiHwMWgOuxYYIa0vsUBvrBI+Op6bhZ39guM9vtMUcE=
|
||||
github.com/luxfi/runtime v1.1.0 h1:6TrvzAmZVCTVbR1ebntHTO3/kVBaogPUSkxdDMnrTiw=
|
||||
|
||||
Reference in New Issue
Block a user