mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
* refactor: update import paths in gateway handlers * refactor: remove obsolete devtools Makefile and README * build: optimize build process for improved efficiency * refactor: remove obsolete pkl files related to Matrix and Sonr network configurations * refactor: move embed code to x/dwn/types
23 lines
513 B
Go
23 lines
513 B
Go
package ecies_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/onsonr/sonr/internal/crypto/ecies"
|
|
)
|
|
|
|
func TestGenerateKey(t *testing.T) {
|
|
_, err := ecies.GenerateKey()
|
|
assert.NoError(t, err)
|
|
}
|
|
|
|
func TestGenerateFromSeed(t *testing.T) {
|
|
seed := ecies.HashSeed([]byte("testasdfasdfasdfasdfasdfw234453412341testasdfasdfasdfasdfasdfw234453412341"))
|
|
_, err := ecies.GenerateKeyFromSeed(seed)
|
|
assert.NoError(t, err)
|
|
_, err = ecies.GenerateKeyFromSeed(seed)
|
|
assert.NoError(t, err)
|
|
}
|