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

@ -3,15 +3,14 @@ package crypto
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestSignAndValidateEd25519(t *testing.T) {
privKey := GenPrivKeyEd25519()
pubKey, err := privKey.PubKey()
require.Nil(t, err)
pubKey := privKey.PubKey()
msg := CRandBytes(128)
sig, err := privKey.Sign(msg)
@ -30,8 +29,7 @@ func TestSignAndValidateEd25519(t *testing.T) {
func TestSignAndValidateSecp256k1(t *testing.T) {
privKey := GenPrivKeySecp256k1()
pubKey, err := privKey.PubKey()
require.Nil(t, err)
pubKey := privKey.PubKey()
msg := CRandBytes(128)
sig, err := privKey.Sign(msg)