Update for nostr-types

This commit is contained in:
Mike Dilger 2024-01-26 08:53:28 +13:00
parent b548cfb66c
commit 43cf37b6f2

View File

@ -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,