Skip to content

Commit fc5327b

Browse files
committed
ffi(nostr): add nip47
1 parent cf63904 commit fc5327b

File tree

5 files changed

+618
-6
lines changed

5 files changed

+618
-6
lines changed

bindings/nostr-ffi/src/error.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ impl From<nostr::nips::nip46::Error> for NostrError {
139139
}
140140
}
141141

142+
impl From<nostr::nips::nip47::Error> for NostrError {
143+
fn from(e: nostr::nips::nip47::Error) -> NostrError {
144+
Self::Generic { err: e.to_string() }
145+
}
146+
}
147+
142148
impl From<nostr::nips::nip53::Error> for NostrError {
143149
fn from(e: nostr::nips::nip53::Error) -> NostrError {
144150
Self::Generic { err: e.to_string() }

bindings/nostr-ffi/src/nips/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub mod nip21;
1313
pub mod nip26;
1414
pub mod nip44;
1515
pub mod nip46;
16+
pub mod nip47;
1617
pub mod nip48;
1718
pub mod nip53;
1819
pub mod nip57;

0 commit comments

Comments
 (0)