Remove error from priv.PubKey() (#131)

* Remove error from priv.PubKey()

* Update changelog
This commit is contained in:
Christopher Goes
2018-06-12 22:35:22 +02:00
committed by Ismail Khoffi
parent 42c6a64e04
commit 8e273220a3
11 changed files with 37 additions and 70 deletions

View File

@ -33,8 +33,7 @@ func TestPubKeySecp256k1Address(t *testing.T) {
var priv PrivKeySecp256k1
copy(priv[:], privB)
pubKey, err := priv.PubKey()
assert.NoError(t, err)
pubKey := priv.PubKey()
pubT, _ := pubKey.(PubKeySecp256k1)
pub := pubT[:]
addr := pubKey.Address()