mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-15 12:36:48 +00:00
accounts/scwallet: fix crypto API change
This commit is contained in:
parent
7d5886dcf4
commit
a900e80a89
1 changed files with 5 additions and 1 deletions
|
|
@ -907,7 +907,11 @@ func (s *Session) derive(path accounts.DerivationPath) (accounts.Account, error)
|
||||||
return accounts.Account{}, err
|
return accounts.Account{}, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return s.Wallet.makeAccount(crypto.PubkeyToAddress(*crypto.ToECDSAPub(pubkey)), path), nil
|
pub, err := crypto.UnmarshalPubkey(pubkey)
|
||||||
|
if err != nil {
|
||||||
|
return accounts.Account{}, err
|
||||||
|
}
|
||||||
|
return s.Wallet.makeAccount(crypto.PubkeyToAddress(*pub), path), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// keyDerivationInfo contains information on the current key derivation step.
|
// keyDerivationInfo contains information on the current key derivation step.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue