fix: Refactor crypto

This commit is contained in:
Prad N
2025-03-11 13:57:03 -04:00
parent 090ee30ba3
commit 00b23353c9
285 changed files with 0 additions and 68698 deletions
-22
View File
@@ -1,22 +0,0 @@
package ecies_test
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/onsonr/sonr/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)
}