Fix private key marshal
This commit is contained in:
parent
f6c4d0a0fd
commit
8a4ed528b8
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user