17 lines
347 B
Go
17 lines
347 B
Go
package secp256k1
|
|
|
|
import (
|
|
"encoding/hex"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestSuite(t *testing.T) {
|
|
s := NewBlakeKeccackSecp256k1()
|
|
emptyHashAsHex := hex.EncodeToString(s.Hash().Sum(nil))
|
|
require.Equal(t, emptyHashAsHex,
|
|
"c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470")
|
|
_ = s.RandomStream()
|
|
}
|