diff options
Diffstat (limited to 'internal/fmtio')
-rw-r--r-- | internal/fmtio/fmtio.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/fmtio/fmtio.go b/internal/fmtio/fmtio.go index 0e252d4..f900e42 100644 --- a/internal/fmtio/fmtio.go +++ b/internal/fmtio/fmtio.go @@ -36,10 +36,10 @@ func SignerFromHex(s string) (crypto.Signer, error) { if err != nil { return nil, err } - if n := len(b); n != ed25519.PrivateKeySize { + if n := len(b); n != ed25519.SeedSize { return nil, fmt.Errorf("invalid size %d", n) } - return ed25519.PrivateKey(b), nil + return ed25519.NewKeyFromSeed(b), nil } func PublicKeyFromHex(s string) (pub types.PublicKey, err error) { |