You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var keyHex string = "08011260499228645d120d15b5008b1da0b9dba898df328001ea03c0be84a64c41d205ff1b8339a303cd8cf2945b66c89ac29fa90e79731d67000694284791af404eeb1f1b8339a303cd8cf2945b66c89ac29fa90e79731d67000694284791af404eeb1f"
func TestIdentityKeyFromSeed(t *testing.T) {
seed := bip39.NewSeed("mule track design catch stairs remain produce evidence cannon opera hamster burst", "Secret Passphrase")
key, err := IdentityKeyFromSeed(seed, 4096)
if err != nil {
t.Error(err)
}
keyBytes, err := hex.DecodeString(keyHex)
if err != nil {
t.Error(err)
}
if !bytes.Equal(key, keyBytes) {
t.Error("Failed to extract correct private key from seed")