diff options
Diffstat (limited to 'pkg/oaddr/oaddr_test.go')
-rw-r--r-- | pkg/oaddr/oaddr_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/oaddr/oaddr_test.go b/pkg/oaddr/oaddr_test.go index a37d4de..549bd67 100644 --- a/pkg/oaddr/oaddr_test.go +++ b/pkg/oaddr/oaddr_test.go @@ -5,6 +5,7 @@ import ( "crypto/ed25519" "testing" + bed25519 "github.com/cretz/bine/torutil/ed25519" "sauteed-onions.org/onion-csr/internal/testonly" ) @@ -45,6 +46,7 @@ func TestNewFromSigner(t *testing.T) { }{ {"rsa key", testonly.RSAPriv(t), OnionAddress{}}, {"valid", testonly.Ed25519Priv(t, testPriv), newAddr(t, testPub)}, + {"valid", bed25519.FromCryptoPrivateKey(testonly.Ed25519Priv(t, testPriv)).PrivateKey(), newAddr(t, testPub)}, } { addr, err := NewFromSigner(table.priv) if got, want := err != nil, table.desc != "valid"; got != want { |