File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,8 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G
317317github.com/modern-go/reflect2 v1.0.2 /go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk =
318318github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A =
319319github.com/morikuni/aec v1.0.0 /go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc =
320+ github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o =
321+ github.com/mr-tron/base58 v1.2.0 /go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc =
320322github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA =
321323github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 /go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ =
322324github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus =
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ commitment: finalized
2929`
3030
3131const (
32- // DefaultSolanaPrivateKey is the base58-encoded private key matching the keypair
33- // written to the test validator's /root/.config/solana/cli/id.json.
32+ // DefaultSolanaPrivateKey is the base58-encoded 64-byte Solana keypair (secret key)
33+ // matching the keypair written to the test validator's /root/.config/solana/cli/id.json.
3434 // The corresponding public key is DefaultSolanaPublicKey.
3535 DefaultSolanaPrivateKey = "DmPfeHBC8Brf8s5qQXi25bmJ996v6BHRtaLc6AH51yFGSqQpUMy1oHkbbXobPNBdgGH2F29PAmoq9ZZua4K9vCc"
3636 // DefaultSolanaPublicKey is the public key derived from DefaultSolanaPrivateKey.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
1010// TestDefaultSolanaKeypairConsistency verifies that the exported DefaultSolanaPrivateKey
1111// and DefaultSolanaPublicKey constants stay in sync with the idJSONRaw keypair bytes
1212// written to the test validator's identity file.
13- // Uses mr-tron/base58 (transitive dep via solana-go) to avoid vendoring base58 encoding .
13+ // Uses mr-tron/base58 for base58 encoding of the keypair bytes in this test .
1414func TestDefaultSolanaKeypairConsistency (t * testing.T ) {
1515 // Parse idJSONRaw into byte slice
1616 var raw []byte
Original file line number Diff line number Diff line change @@ -264,6 +264,8 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G
264264github.com/modern-go/reflect2 v1.0.2 /go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk =
265265github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A =
266266github.com/morikuni/aec v1.0.0 /go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc =
267+ github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o =
268+ github.com/mr-tron/base58 v1.2.0 /go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc =
267269github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA =
268270github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 /go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ =
269271github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus =
You can’t perform that action at this time.
0 commit comments