Fix private key marshal

This commit is contained in:
mcrakhman 2023-03-27 22:28:49 +02:00 committed by Mikhail Iudin
parent f6c4d0a0fd
commit 8a4ed528b8
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -129,7 +129,7 @@ func (k *Ed25519PrivKey) Sign(msg []byte) ([]byte, error) {
// Marshall marshalls the key into proto
func (k *Ed25519PrivKey) Marshall() ([]byte, error) {
msg := &cryptoproto.Key{
Type: cryptoproto.KeyType_Ed25519Public,
Type: cryptoproto.KeyType_Ed25519Private,
Data: k.privKey,
}
return msg.Marshal()