fix: bad return on PublicKeyRaw

This commit is contained in:
Derrick Hammer 2024-01-07 05:22:00 -05:00
parent 6597a78e51
commit 3218167b83
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ func (kp *KeyPairEd25519) PublicKey() []byte {
}
func (kp *KeyPairEd25519) PublicKeyRaw() []byte {
return (ed25519.PrivateKey(kp.Bytes).Public()).([]byte)
publicKey := ed25519.PrivateKey(kp.Bytes).Public()
return publicKey.(ed25519.PublicKey)
}
func (kp *KeyPairEd25519) ExtractBytes() []byte {