Fix saving Matrix key

This commit is contained in:
Neil Alexander 2022-08-31 10:17:42 +01:00
parent 6edfc1cb22
commit 184e8cec98
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -67,7 +67,7 @@ func SaveMatrixKey(matrixKeyPath string, data ed25519.PrivateKey) error {
Headers: map[string]string{
"Key-ID": fmt.Sprintf("ed25519:%s", keyID[:6]),
},
Bytes: data[3:],
Bytes: data,
})
return err
}