mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-20 03:57:03 +00:00
Update for nostr-types
This commit is contained in:
parent
b548cfb66c
commit
43cf37b6f2
@ -229,6 +229,10 @@ impl GossipIdentity {
|
||||
Ok(self.inner.read().decrypt_nip44(other, ciphertext)?)
|
||||
}
|
||||
|
||||
pub fn nip44_conversation_key(&self, other: &PublicKey) -> Result<[u8; 32], Error> {
|
||||
Ok(self.inner.read().nip44_conversation_key(other)?)
|
||||
}
|
||||
|
||||
pub fn encrypt(
|
||||
&self,
|
||||
other: &PublicKey,
|
||||
@ -278,10 +282,6 @@ impl GossipIdentity {
|
||||
Ok(self.inner.read().giftwrap(input, pubkey)?)
|
||||
}
|
||||
|
||||
pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error> {
|
||||
Ok(self.inner.read().verify(message, signature)?)
|
||||
}
|
||||
|
||||
pub fn verify_delegation_signature(
|
||||
&self,
|
||||
delegated_pubkey: PublicKey,
|
||||
|
Loading…
Reference in New Issue
Block a user