mirror of
https://github.com/AthanorLabs/atomic-swap.git
synced 2026-01-10 06:38:04 -05:00
Add (again) the Bytes function for PrivateKeyPair
This commit is contained in:
@@ -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()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user