fix: bad return on PublicKeyRaw
This commit is contained in:
parent
6597a78e51
commit
3218167b83
|
@ -19,7 +19,9 @@ func (kp *KeyPairEd25519) PublicKey() []byte {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (kp *KeyPairEd25519) PublicKeyRaw() []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 {
|
func (kp *KeyPairEd25519) ExtractBytes() []byte {
|
||||||
|
|
Loading…
Reference in New Issue