Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
45 changes: 0 additions & 45 deletions .github/pull_request_template.md

This file was deleted.

79 changes: 0 additions & 79 deletions .github/workflows/release.yml

This file was deleted.

37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.2.0] - 2026-02-24

### Changed

- Upgraded nostr-java from 1.2.0 to 2.0.0
- Migrated dependency artifacts to nostr-java 2.0 module structure:
- `nostr-java-api` replaced by `nostr-java-core`
- `nostr-java-crypto` replaced by `nostr-java-core`
- `nostr-java-id` replaced by `nostr-java-identity`
- `nostr-java-encryption` replaced by `nostr-java-identity`
- Removed `nostr-java-base` (merged into core)
- Replaced `PubKeyTag` with `GenericTag` for NIP-46 event tag handling

## [0.1.1] - 2025-01-01

### Fixed

- Handle null passphrase in key management methods
- Address Qodana and SpotBugs static analysis issues
- Update Bottin repository link in README.md

### Changed

- Update Java version requirement to 21

## [0.1.0] - 2025-01-01

- Initial release
2 changes: 1 addition & 1 deletion nsecbunker-account/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nsecbunker-java</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
</parent>

<artifactId>nsecbunker-account</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions nsecbunker-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nsecbunker-java</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
</parent>

<artifactId>nsecbunker-admin</artifactId>
Expand All @@ -35,11 +35,11 @@
<!-- Nostr Java -->
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-id</artifactId>
<artifactId>nostr-java-identity</artifactId>
</dependency>
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-crypto</artifactId>
<artifactId>nostr-java-core</artifactId>
</dependency>
<dependency>
<groupId>xyz.tcheeric</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,7 @@ private String createAdminEventJson(String encryptedContent) {
event.setCreatedAt(createdAt);

// Add p tag for recipient
nostr.event.tag.PubKeyTag pTag = new nostr.event.tag.PubKeyTag(
new nostr.base.PublicKey(bunkerPubkeyHex));
event.addTag(pTag);
event.addTag(nostr.event.tag.GenericTag.of("p", bunkerPubkeyHex));

// Update and sign
event.update();
Expand All @@ -540,9 +538,10 @@ private String serializeEvent(nostr.event.impl.GenericEvent event) {
if (i > 0) sb.append(",");
nostr.event.BaseTag tag = tags.get(i);
sb.append("[\"").append(tag.getCode()).append("\"");
// Handle p tag
if (tag instanceof nostr.event.tag.PubKeyTag pt) {
sb.append(",\"").append(pt.getPublicKey().toString()).append("\"");
if (tag instanceof nostr.event.tag.GenericTag gt) {
for (String param : gt.getParams()) {
sb.append(",\"").append(param).append("\"");
}
}
sb.append("]");
}
Expand Down
10 changes: 7 additions & 3 deletions nsecbunker-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nsecbunker-java</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
</parent>

<artifactId>nsecbunker-client</artifactId>
Expand All @@ -35,11 +35,15 @@
<!-- Nostr Java -->
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-api</artifactId>
<artifactId>nostr-java-event</artifactId>
</dependency>
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-crypto</artifactId>
<artifactId>nostr-java-identity</artifactId>
</dependency>
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-core</artifactId>
</dependency>

<!-- Logging -->
Expand Down
4 changes: 2 additions & 2 deletions nsecbunker-connection/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nsecbunker-java</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
</parent>

<artifactId>nsecbunker-connection</artifactId>
Expand All @@ -27,7 +27,7 @@
<!-- Nostr Java -->
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-api</artifactId>
<artifactId>nostr-java-event</artifactId>
</dependency>

<!-- OkHttp for WebSocket -->
Expand Down
6 changes: 1 addition & 5 deletions nsecbunker-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nsecbunker-java</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
</parent>

<artifactId>nsecbunker-core</artifactId>
Expand All @@ -19,10 +19,6 @@

<dependencies>
<!-- Nostr Java -->
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-api</artifactId>
</dependency>
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-event</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion nsecbunker-monitoring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nsecbunker-java</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
</parent>

<artifactId>nsecbunker-monitoring</artifactId>
Expand Down
10 changes: 3 additions & 7 deletions nsecbunker-protocol/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nsecbunker-java</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
</parent>

<artifactId>nsecbunker-protocol</artifactId>
Expand All @@ -31,15 +31,11 @@
<!-- Nostr Java -->
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-api</artifactId>
<artifactId>nostr-java-core</artifactId>
</dependency>
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-crypto</artifactId>
</dependency>
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-encryption</artifactId>
<artifactId>nostr-java-identity</artifactId>
</dependency>

<!-- Jackson -->
Expand Down
2 changes: 1 addition & 1 deletion nsecbunker-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nsecbunker-java</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
</parent>

<artifactId>nsecbunker-spring-boot-starter</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion nsecbunker-tests/nsecbunker-chaos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nsecbunker-tests</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
</parent>

<artifactId>nsecbunker-chaos</artifactId>
Expand Down
10 changes: 3 additions & 7 deletions nsecbunker-tests/nsecbunker-e2e/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nsecbunker-tests</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
</parent>

<artifactId>nsecbunker-e2e</artifactId>
Expand Down Expand Up @@ -51,21 +51,17 @@
</dependency>

<!-- nostr-java -->
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-api</artifactId>
</dependency>
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-event</artifactId>
</dependency>
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-id</artifactId>
<artifactId>nostr-java-identity</artifactId>
</dependency>
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-crypto</artifactId>
<artifactId>nostr-java-core</artifactId>
</dependency>

<!-- Logging -->
Expand Down
2 changes: 1 addition & 1 deletion nsecbunker-tests/nsecbunker-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nsecbunker-tests</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
</parent>

<artifactId>nsecbunker-it</artifactId>
Expand Down
Loading
Loading