Skip to content

theborakompanioni/nostr-proto

Repository files navigation

Build GitHub Release Maven Central License

Logo

nostr-proto

See nostr-proto for protobuf definitions of core nostr messages.

message Event {
  bytes id = 1 [json_name = "id"];
  bytes pubkey = 2 [json_name = "pubkey"];
  uint64 created_at = 3 [json_name = "created_at"];
  uint32 kind = 4 [json_name = "kind"];
  repeated TagValue tags = 5 [json_name = "tags"];
  string content = 6 [json_name = "content"];
  bytes sig = 7 [json_name = "sig"];
}

[...]

Table of Contents

Install

Download from Maven Central.

Gradle

repositories {
    mavenCentral()
}
implementation "io.github.theborakompanioni:nostr-proto:${nostrProtoVersion}"
implementation "io.github.theborakompanioni:nostr-proto-json:${nostrProtoVersion}"

Development

Requirements

  • java >=21

Build

./gradlew build -x test

Test

./gradlew test integrationTest --rerun-tasks --no-parallel

Run full test suite:

CI=true ./gradlew test integrationTest e2eTest --rerun-tasks --no-parallel

Contributing

All contributions and ideas are always welcome. For any question, bug or feature request, please create an issue. Before you start, please read the contributing guidelines.

Resources


License

The project is licensed under the Apache License. See LICENSE for details.

About

Protobuf definitions of core nostr messages

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages