tcheeric / nostr-java

A nostr library, written in java, for generating, signing and publishing events.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nostr-java

Introducing the nostr-java library, a solution written in java for generating, signing, and publishing nostr events to relays.

Requirements

  • Maven
  • Java 19+

Usage

To use the library in your project, add the following dependency to your pom.xml file:

<dependency>
    <groupId>com.github.tcheeric.nostr-java</groupId>
    <artifactId>nostr-java-api</artifactId>
    <version>${nostr.java.version}</version>
</dependency>

I recommend having a look at the nostr-example module and the nostr-client project for a simple example on how to use the library.

Supported NIPs

The following NIPs are supported by the API out-of-the-box:

Dev Discussion Group:

  • Nostr Public Channel: nostr:nevent1qqszqdmxg26sehmnyrcu2ler8azz6wyj6fh0qg3ad5fnnm6xfqqvhzcppamhxue69uhkummnw3ezumt0d5pzpl7nwh45p66gvet2q28dhjpcyh6clux4cjsm5gh7waza9pzjnmgglv06ew

About

A nostr library, written in java, for generating, signing and publishing events.

License:MIT License


Languages

Language:Java 100.0%