mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-22 01:11:32 +00:00
Remove error from priv.PubKey() (#131)
* Remove error from priv.PubKey() * Update changelog
This commit is contained in:
committed by
Ismail Khoffi
parent
42c6a64e04
commit
8e273220a3
@ -19,8 +19,7 @@ func TestRealLedgerSecp256k1(t *testing.T) {
|
||||
|
||||
priv, err := NewPrivKeyLedgerSecp256k1(path)
|
||||
require.Nil(t, err, "%+v", err)
|
||||
pub, err := priv.PubKey()
|
||||
require.Nil(t, err)
|
||||
pub := priv.PubKey()
|
||||
sig, err := priv.Sign(msg)
|
||||
require.Nil(t, err)
|
||||
|
||||
@ -33,8 +32,7 @@ func TestRealLedgerSecp256k1(t *testing.T) {
|
||||
require.Nil(t, err, "%+v", err)
|
||||
|
||||
// make sure we get the same pubkey when we load from disk
|
||||
pub2, err := priv2.PubKey()
|
||||
require.Nil(t, err)
|
||||
pub2 := priv2.PubKey()
|
||||
require.Equal(t, pub, pub2)
|
||||
|
||||
// signing with the loaded key should match the original pubkey
|
||||
|
Reference in New Issue
Block a user