Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
3c720bb
nostr: start rework `Tag`
yukibtc Mar 12, 2026
4eb04a3
nostr: add tag codec
yukibtc Mar 12, 2026
927465f
nostr: rework NIP-01 tags
yukibtc Mar 12, 2026
318bf4c
nostr: rework NIP-02 tags
yukibtc Mar 12, 2026
bb79002
nostr: rework NIP-17 tags
yukibtc Mar 12, 2026
da8e43b
nostr: rework NIP-40 tags
yukibtc Mar 13, 2026
c0ed90e
nostr: rework NIP-42 tags
yukibtc Mar 13, 2026
ea40f5f
nostr: rework NIP-65 tags
yukibtc Mar 13, 2026
519f0e3
nostr: rework NIP-22 tags
yukibtc Mar 17, 2026
d3b2b85
nostr: rework NIP-34 tags
yukibtc Apr 20, 2026
461f7d3
nostr: rework NIP-18 tags
yukibtc Apr 20, 2026
5440264
nostr: rework NIP-70 tags
yukibtc Apr 21, 2026
46050aa
nostr: rework NIP-62 tags
yukibtc Apr 22, 2026
f8c6115
nostr: rework NIP-10 tags
yukibtc Apr 30, 2026
9109767
nostr: rework NIP-94 tags
yukibtc Apr 30, 2026
424ecf2
nostr: rework NIP-88 tags
yukibtc Apr 30, 2026
195964e
nostr: rework NIP-53 tags
yukibtc Apr 30, 2026
fa482dd
nostr: rework NIP-98 tags
yukibtc Apr 30, 2026
6ef7cf7
nostr: rework NIP-57 tags
yukibtc May 1, 2026
fcad6ea
nostr: rework NIP-25 tags
yukibtc May 1, 2026
2bc42eb
nostr: rework NIP-51 tags
yukibtc May 1, 2026
c64dbe0
nostr: rework NIP-30 tags
yukibtc May 1, 2026
8e1cf2d
nostr: rework NIP-B0 tags
yukibtc May 4, 2026
2bd09e0
nostr: rework NIP-C0 tags
yukibtc May 4, 2026
fecad24
nostr: rework NIP-13 tags
yukibtc May 4, 2026
6a9ec52
nostr: rework NIP-31 tags
yukibtc May 4, 2026
e9033f7
nostr: rework NIP-56 tags
yukibtc May 4, 2026
057c372
nostr: rework NIP-89 tags
yukibtc May 4, 2026
f86cdd6
nostr: rework NIP-23 tags
yukibtc May 4, 2026
33116c7
nostr: rework NIP-7D tags
yukibtc May 4, 2026
ecd74a4
nostr: rework NIP-32 tags
yukibtc May 4, 2026
101ba40
nostr: rework NIP-90 tags
yukibtc May 5, 2026
f94dd9d
nostr: fix NIP-58 kinds
yukibtc May 5, 2026
054f124
nostr: rework NIP-58 tags
yukibtc May 5, 2026
ce5cbed
nostr: rework NIP-B7 tags
yukibtc May 5, 2026
89d088b
nostr: rework NIP-39 tags
yukibtc May 5, 2026
fc1593f
nostr: remove TagStandard
yukibtc May 5, 2026
1b5b793
nostr: remove TagKind
yukibtc May 5, 2026
de3800c
nostr: add NIP-73 tags
yukibtc May 12, 2026
6eb0321
nostr: refactor NIP-22 tag serialization with `maybe_uppercase` helper
yukibtc May 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/nostr-relay-builder/src/local/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ impl InnerLocalRelay {
// Check mode
if let LocalRelayBuilderMode::PublicKey(pk) = self.mode {
let authored: bool = event.pubkey == pk;
let tagged: bool = event.tags.public_keys().any(|p| p == &pk);
let tagged: bool = event.tags.public_keys().any(|p| p == pk);

if !authored && !tagged {
return send_msg(
Expand Down Expand Up @@ -965,7 +965,7 @@ impl InnerLocalRelay {
let now = Timestamp::now();
// Add events
json_msgs.extend(events.into_iter().filter_map(|event| {
if event.is_expired_at(&now) {
if event.is_expired_at(now) {
return None;
}
Some(
Expand Down
2 changes: 1 addition & 1 deletion crates/nostr-relay-builder/src/local/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Nip42Session {
match event.tags.challenge() {
Some(challenge) => {
// Tried to remove challenge but wasn't in the set: return false.
if !self.challenges.remove(challenge) {
if !self.challenges.remove(&challenge) {
return Err(String::from("received invalid challenge"));
}

Expand Down
2 changes: 2 additions & 0 deletions crates/nostr/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
- Remove `EventBuilder::pow` in favor of `UnsignedEvent::mine` and `UnsignedEvent::mine_async` (https://github.com/rust-nostr/nostr/pull/1334)
- Replace `kinds: Option<Vec<String>>` in `FeeSchedule` with `kinds: Option<Vec<u16>>` in `RelayInformationDocument` (https://github.com/rust-nostr/nostr/pull/1336)
- Drop support for NIP-96
- Remove TagStandard enum in favor of per-NIP tag enums (https://github.com/rust-nostr/nostr/pull/1347)
- Remove TagKind (https://github.com/rust-nostr/nostr/pull/1347)

### Changed

Expand Down
Loading
Loading