Add (again) the Bytes function for PrivateKeyPair

This commit is contained in:
Marcin Górny
2021-10-23 21:44:23 +02:00
parent bc71e58233
commit 20aee0be8f

View File

@@ -113,6 +113,10 @@ func (kp *PrivateKeyPair) AddressBytes() []byte {
return addr
}
func (kp *PrivateKeyPair) Bytes() []byte {
return kp.sk.key.Bytes()
}
func (kp *PrivateKeyPair) Address() Address {
return Address(EncodeMoneroBase58(kp.AddressBytes()))
}