* clear

* feat: Add everything

* fix: Commenht
This commit is contained in:
Prad Nukala
2025-10-03 14:45:52 -04:00
committed by GitHub
parent 43b4a11c06
commit 13e6c3e84d
1935 changed files with 655061 additions and 40058 deletions
+24
View File
@@ -0,0 +1,24 @@
package ecies_test
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/sonr-io/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)
}