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
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.1] - 2026-02-25

### Removed
- Removed nostr-java dependency; replaced `Identity.generateRandomIdentity()` with `SecureRandom` + `HexFormat`

## [0.2.0] - 2026-01-30

### Added
Expand Down Expand Up @@ -43,6 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Spring Boot starter for easy integration
- Docker support with Jib

[Unreleased]: https://github.com/tcheeric/bottin/compare/v0.2.0...HEAD
[Unreleased]: https://github.com/tcheeric/bottin/compare/v0.2.1...HEAD
[0.2.1]: https://github.com/tcheeric/bottin/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/tcheeric/bottin/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/tcheeric/bottin/releases/tag/v0.1.0
2 changes: 1 addition & 1 deletion bottin-admin-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>bottin</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
</parent>

<artifactId>bottin-admin-ui</artifactId>
Expand Down
8 changes: 1 addition & 7 deletions bottin-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>bottin</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
</parent>

<artifactId>bottin-core</artifactId>
Expand All @@ -18,12 +18,6 @@
<description>Core domain models, interfaces, and exceptions for Bottin NIP-05 registry</description>

<dependencies>
<!-- nostr-java for key handling -->
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-id</artifactId>
</dependency>

<!-- Jackson for JSON -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
2 changes: 1 addition & 1 deletion bottin-persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>bottin</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
</parent>

<artifactId>bottin-persistence</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bottin-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>bottin</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
</parent>

<artifactId>bottin-service</artifactId>
Expand Down
8 changes: 1 addition & 7 deletions bottin-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>bottin</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
</parent>

<artifactId>bottin-spring-boot-starter</artifactId>
Expand Down Expand Up @@ -45,12 +45,6 @@
<version>${nsecbunker-java.version}</version>
</dependency>

<!-- nostr-java for key generation -->
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-id</artifactId>
</dependency>

<!-- Spring Boot -->
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public CompletableFuture<AccountRegistrationResult> registerAccount(String usern
log.debug("persistent_account_register username={} domain={}", username, domain);

// For bottin, registerAccount and createAccount are equivalent
// since key management is handled by nostr-java
return createAccount(username, domain);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import nostr.id.Identity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import xyz.tcheeric.bottin.core.exception.DomainNotFoundException;
Expand All @@ -17,7 +16,9 @@
import xyz.tcheeric.nsecbunker.account.nip05.Nip05Manager;
import xyz.tcheeric.nsecbunker.account.nip05.Nip05Record;

import java.security.SecureRandom;
import java.util.HashMap;
import java.util.HexFormat;
import java.util.List;
import java.util.Map;
import java.util.Optional;
Expand Down Expand Up @@ -60,9 +61,10 @@ public CompletableFuture<Nip05Record> setupNip05(String username, String domain)
throw new Nip05RecordExistsException(normalizedUsername + "@" + normalizedDomain);
}

// Generate new identity using nostr-java
Identity identity = Identity.generateRandomIdentity();
String pubkey = identity.getPublicKey().toString();
// Generate a random 32-byte public key placeholder
byte[] randomBytes = new byte[32];
new SecureRandom().nextBytes(randomBytes);
String pubkey = HexFormat.of().formatHex(randomBytes);

// Create and persist record
Nip05RecordEntity entity = Nip05RecordEntity.builder()
Expand Down
2 changes: 1 addition & 1 deletion bottin-tests/bottin-e2e/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>bottin-tests</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
</parent>

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

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

<artifactId>bottin-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bottin-verification/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>bottin</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
</parent>

<artifactId>bottin-verification</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bottin-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>bottin</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
</parent>

<artifactId>bottin-web</artifactId>
Expand Down
21 changes: 1 addition & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>xyz.tcheeric</groupId>
<artifactId>bottin</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
<packaging>pom</packaging>

<name>Bottin - NIP-05 Registry Service</name>
Expand Down Expand Up @@ -57,8 +57,6 @@

<!-- nsecbunker-java integration -->
<nsecbunker-java.version>0.1.0</nsecbunker-java.version>
<nostr-java.version>1.3.0</nostr-java.version>

<!-- Database -->
<flyway.version>10.10.0</flyway.version>
<h2.version>2.2.224</h2.version>
Expand Down Expand Up @@ -168,23 +166,6 @@
<version>${nsecbunker-java.version}</version>
</dependency>

<!-- nostr-java -->
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-api</artifactId>
<version>${nostr-java.version}</version>
</dependency>
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-id</artifactId>
<version>${nostr-java.version}</version>
</dependency>
<dependency>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java-crypto</artifactId>
<version>${nostr-java.version}</version>
</dependency>

<!-- Jackson BOM -->
<dependency>
<groupId>com.fasterxml.jackson</groupId>
Expand Down
Loading