more punishment cleanup
This commit is contained in:
@@ -330,7 +330,15 @@ impl Envelope {
|
||||
self.sender_id
|
||||
}
|
||||
|
||||
pub fn get_sender_typed_id(&self) -> TypedKey {
|
||||
TypedKey::new(self.crypto_kind, self.sender_id)
|
||||
}
|
||||
|
||||
pub fn get_recipient_id(&self) -> PublicKey {
|
||||
self.recipient_id
|
||||
}
|
||||
|
||||
pub fn get_recipient_typed_id(&self) -> TypedKey {
|
||||
TypedKey::new(self.crypto_kind, self.recipient_id)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -207,6 +207,11 @@ impl Receipt {
|
||||
pub fn get_sender_id(&self) -> PublicKey {
|
||||
self.sender_id
|
||||
}
|
||||
|
||||
pub fn get_sender_typed_id(&self) -> TypedKey {
|
||||
TypedKey::new(self.crypto_kind, self.sender_id)
|
||||
}
|
||||
|
||||
pub fn get_extra_data(&self) -> &[u8] {
|
||||
&self.extra_data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user