Add Bytes() method on PublicKey

This commit is contained in:
Slavomir 2021-08-25 22:38:28 +02:00
parent 3f027cc64e
commit ef67b408d2
1 changed files with 4 additions and 0 deletions

View File

@ -157,6 +157,10 @@ func (p PublicKey) ToPointer() *PublicKey {
return &p
}
func (p PublicKey) Bytes() []byte {
return []byte(p[:])
}
var zeroPublicKey = PublicKey{}
// IsZero returns whether the public key is zero.