mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-08 08:13:08 +00:00
add make_tag and produce_ephemeral_key_holder implementations for AccountPublicMask
This commit is contained in:
parent
df2c2c84d3
commit
036585d747
@ -43,6 +43,13 @@ impl AccountPublicMask {
|
||||
ephemeral_key_holder.encrypt_data(viewing_public_key_receiver, data)
|
||||
}
|
||||
|
||||
pub fn make_tag(&self) -> Tag {
|
||||
self.address[0]
|
||||
}
|
||||
|
||||
pub fn produce_ephemeral_key_holder(&self) -> EphemeralKeyHolder {
|
||||
EphemeralKeyHolder::new_os_random()
|
||||
}
|
||||
}
|
||||
|
||||
impl Account {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user