Fix private key marshal

This commit is contained in:
mcrakhman 2023-03-27 22:28:49 +02:00
parent 6d70bc3786
commit f4bc677d02
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B

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()