<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated></updated>
  <generator>https://njump.me</generator>

  <title>Nostr notes by </title>
  <author>
    <name></name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://njump.me/npub1cmuzgr3n6jzdesruz8k53yknngxgh6g64j9u725698ta049zahhsd4tt0y.rss" />
  <link href="https://njump.me/npub1cmuzgr3n6jzdesruz8k53yknngxgh6g64j9u725698ta049zahhsd4tt0y" />
  <id>https://njump.me/npub1cmuzgr3n6jzdesruz8k53yknngxgh6g64j9u725698ta049zahhsd4tt0y</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://njump.me/nevent1qqswyvg983h4rsfj4hv9ztl8pdcamccj0vhalalfu5nre6jvqwrq0uczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77u4fv5e</id>
    
      <title type="html">[workspace] members = [&amp;#34;cargo:.&amp;#34;] # Config for ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqswyvg983h4rsfj4hv9ztl8pdcamccj0vhalalfu5nre6jvqwrq0uczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77u4fv5e" />
    <content type="html">
      [workspace]&lt;br/&gt;members = [&amp;#34;cargo:.&amp;#34;]&lt;br/&gt;&lt;br/&gt;# Config for &amp;#39;dist&amp;#39;&lt;br/&gt;[dist]&lt;br/&gt;# The preferred dist version to use in CI (Cargo.toml SemVer syntax)&lt;br/&gt;cargo-dist-version = &amp;#34;0.30.3&amp;#34;&lt;br/&gt;# CI backends to support&lt;br/&gt;ci = &amp;#34;github&amp;#34;&lt;br/&gt;# The installers to generate for each app&lt;br/&gt;installers = [&amp;#34;shell&amp;#34;, &amp;#34;powershell&amp;#34;, &amp;#34;homebrew&amp;#34;, &amp;#34;msi&amp;#34;]&lt;br/&gt;# A GitHub repo to push Homebrew formulas to&lt;br/&gt;tap = &amp;#34;gnostr-org/homebrew-gnostr-org&amp;#34;&lt;br/&gt;# Target platforms to build apps for (Rust target-triple syntax)&lt;br/&gt;targets = [&amp;#34;aarch64-apple-darwin&amp;#34;, &amp;#34;x86_64-apple-darwin&amp;#34;, &amp;#34;x86_64-unknown-linux-gnu&amp;#34;, &amp;#34;x86_64-pc-windows-msvc&amp;#34;]&lt;br/&gt;# Path that installers should place binaries in&lt;br/&gt;install-path = &amp;#34;CARGO_HOME&amp;#34;&lt;br/&gt;# Publish jobs to run in CI&lt;br/&gt;publish-jobs = [&amp;#34;homebrew&amp;#34;]&lt;br/&gt;# Whether to install an updater program&lt;br/&gt;install-updater = true&lt;br/&gt;# Skip checking whether the specified configuration files are up to date&lt;br/&gt;allow-dirty = [&amp;#34;ci&amp;#34;]&lt;br/&gt;
    </content>
    <updated>2026-10-08T23:08:16Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqszkaz2xj08clhslak04hfcjf4hfvqwd8erymv4es389xd8ezf66ngzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77yfdpdh</id>
    
      <title type="html">Build manifest for get_file_hash v0.4.7</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqszkaz2xj08clhslak04hfcjf4hfvqwd8erymv4es389xd8ezf66ngzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77yfdpdh" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqs95gnseqtt052tnkdrr7c63uy2vjmt0wd7vvj2k52qfrpfp2lnnwqjx30xf&#39;&gt;nevent1q…30xf&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;Build manifest for get_file_hash v0.4.7
    </content>
    <updated>2026-10-08T22:53:10Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs0amkxzj5u79sypv6ckxphln32m4pzx4f3gkfhalrks8lvq0hpepgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk774kmlqz</id>
    
      <title type="html"># This justfile is for the contrbutors of this project, not for ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs0amkxzj5u79sypv6ckxphln32m4pzx4f3gkfhalrks8lvq0hpepgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk774kmlqz" />
    <content type="html">
      # This justfile is for the contrbutors of this project, not for the end user.&lt;br/&gt;#&lt;br/&gt;# Requirements for this justfile:&lt;br/&gt;# - Linux distribution&lt;br/&gt;# - just (Of course) &amp;lt;&lt;a href=&#34;https://github.com/casey/just&amp;gt&#34;&gt;https://github.com/casey/just&amp;gt&lt;/a&gt;;&lt;br/&gt;# - cargo (For the build and tests) &amp;lt;&lt;a href=&#34;https://doc.rust-lang.org/cargo/getting-started/installation.html&amp;gt&#34;&gt;https://doc.rust-lang.org/cargo/getting-started/installation.html&amp;gt&lt;/a&gt;;&lt;br/&gt;# - mdbook (&amp;lt;&lt;a href=&#34;https://rust-lang.github.io/mdBook&amp;gt&#34;&gt;https://rust-lang.github.io/mdBook&amp;gt&lt;/a&gt;;)&lt;br/&gt;# - git-cliff (&amp;lt;&lt;a href=&#34;https://git-cliff.org&amp;gt&#34;&gt;https://git-cliff.org&amp;gt&lt;/a&gt;;)&lt;br/&gt;# - taplo (&amp;lt;&lt;a href=&#34;https://taplo.tamasfe.dev/&amp;gt&#34;&gt;https://taplo.tamasfe.dev/&amp;gt&lt;/a&gt;;)&lt;br/&gt;# - cargo-msrv (&amp;lt;&lt;a href=&#34;https://github.com/foresterre/cargo-msrv&amp;gt&#34;&gt;https://github.com/foresterre/cargo-msrv&amp;gt&lt;/a&gt;;)&lt;br/&gt;# - nushell (&amp;lt;&lt;a href=&#34;https://nushell.sh&amp;gt&#34;&gt;https://nushell.sh&amp;gt&lt;/a&gt;;)&lt;br/&gt;&lt;br/&gt;set quiet&lt;br/&gt;set unstable&lt;br/&gt;set shell := [&amp;#34;/usr/bin/env&amp;#34;, &amp;#34;bash&amp;#34;, &amp;#34;-c&amp;#34;]&lt;br/&gt;set script-interpreter := [&amp;#34;/usr/bin/env&amp;#34;, &amp;#34;nu&amp;#34;]&lt;br/&gt;&lt;br/&gt;JUST_EXECUTABLE := &amp;#34;just -u -f &amp;#34; &#43; justfile()&lt;br/&gt;header := &amp;#34;Available tasks:\n&amp;#34;&lt;br/&gt;BOOK_DEST_DIR := &amp;#34;dest&amp;#34;&lt;br/&gt;tag_change_body := &amp;#39;&amp;#39;&amp;#39;{% for group, commits in commits | group_by(attribute=&amp;#34;group&amp;#34;) %}&lt;br/&gt;&lt;br/&gt;{{ group | upper_first }}&lt;br/&gt;&lt;br/&gt;{% for commit in commits %}&lt;br/&gt;- {{ commit.message | split(pat=&amp;#34;\n&amp;#34;) | first | split(pat=&amp;#34;:&amp;#34;) | slice(start=1) | join(sep=&amp;#34;:&amp;#34;) | upper_first | trim }} - by {{ commit.author.name}}{% endfor %}{% endfor %}&lt;br/&gt;&amp;#39;&amp;#39;&amp;#39;&lt;br/&gt;&lt;br/&gt;export TZ := &amp;#34;UTC&amp;#34;&lt;br/&gt;&lt;br/&gt;_default:&lt;br/&gt;    @{{JUST_EXECUTABLE}} --list-heading &amp;#34;{{header}}&amp;#34; --list&lt;br/&gt;&lt;br/&gt;# Run the CI&lt;br/&gt;ci: &amp;amp;&amp;amp; msrv _done_ci&lt;br/&gt;    echo &amp;#34;🔨 Building n34...&amp;#34;&lt;br/&gt;    cargo build -q&lt;br/&gt;    echo &amp;#34;🔍 Checking code formatting...&amp;#34;&lt;br/&gt;    cargo fmt -q -- --check&lt;br/&gt;    RUST_LOG=none taplo fmt --check --config &amp;#34;./.taplo.toml&amp;#34; || (echo &amp;#34;❌Toml files is not properly formatted&amp;#34; &amp;amp;&amp;amp; exit 1)&lt;br/&gt;    echo &amp;#34;🧹 Running linter checks...&amp;#34;&lt;br/&gt;    cargo clippy -q -- -D warnings&lt;br/&gt;    echo &amp;#34;🧪 Running tests...&amp;#34;&lt;br/&gt;    cargo test -q&lt;br/&gt;&lt;br/&gt;# Check that the current MSRV is correct&lt;br/&gt;msrv:&lt;br/&gt;    echo &amp;#34;🔧 Verifying MSRV...&amp;#34;&lt;br/&gt;    cargo-msrv verify&lt;br/&gt;    echo &amp;#34;✅ MSRV verification passed&amp;#34;&lt;br/&gt;&lt;br/&gt;_done_ci:&lt;br/&gt;    echo &amp;#34;🎉 CI pipeline completed successfully&amp;#34;&lt;br/&gt;&lt;br/&gt;# Update the changelog&lt;br/&gt;[script]&lt;br/&gt;changelog:&lt;br/&gt;    def get_hash [] { open &amp;#34;./CHANGELOG.md&amp;#34; | hash sha256 }&lt;br/&gt;&lt;br/&gt;    let old_hash = get_hash&lt;br/&gt;    git-cliff out&amp;gt; &amp;#34;CHANGELOG.md&amp;#34;&lt;br/&gt;&lt;br/&gt;    if old_hash != get_hash {&lt;br/&gt;        git add &amp;#34;CHANGELOG.md&amp;#34;&lt;br/&gt;        git commit -m &amp;#34;chore(changelog): Update the changelog&amp;#34;&lt;br/&gt;        print &amp;#34;The changes have been added to the changelog file and committed&amp;#34;&lt;br/&gt;    } else {&lt;br/&gt;        print &amp;#34;No changes have been added to the changelog&amp;#34;&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;# Releases a new version of n34. Requires a clean file tree with no uncommitted changes.&lt;br/&gt;[script]&lt;br/&gt;release version:&lt;br/&gt;    let tag_msg = &amp;#34;Version {{ version }}&amp;#34; &#43; (git-cliff --strip all --unreleased --body &amp;#39;{{ tag_change_body }}&amp;#39;)&lt;br/&gt;    mut cargo_file = open &amp;#34;Cargo.toml&amp;#34;&lt;br/&gt;&lt;br/&gt;    $cargo_file.package.version = &amp;#34;{{ version }}&amp;#34;&lt;br/&gt;    $cargo_file | save -f &amp;#34;Cargo.toml&amp;#34;&lt;br/&gt;&lt;br/&gt;    RUST_LOG=none taplo fmt --config &amp;#34;./.taplo.toml&amp;#34;&lt;br/&gt;    {{ JUST_EXECUTABLE }} ci&lt;br/&gt;    git-cliff -t &amp;#34;v{{ version }}&amp;#34; out&amp;gt; &amp;#34;./CHANGELOG.md&amp;#34;&lt;br/&gt;    git add .&lt;br/&gt;    git commit -m &amp;#34;chore: Bump the version to `v{{ version }}`&amp;#34;&lt;br/&gt;    git tag -s -m $tag_msg &amp;#34;v{{ version }}&amp;#34;&lt;br/&gt;    git push origin master --tags&lt;br/&gt;    cargo publish&lt;br/&gt;&lt;br/&gt;# Deploy the book to Github Pages&lt;br/&gt;deploy:&lt;br/&gt;    mdbook build --dest-dir {{ BOOK_DEST_DIR }}&lt;br/&gt;    cd {{ BOOK_DEST_DIR }}&lt;br/&gt;    git init .&lt;br/&gt;    git checkout -B gh-pages&lt;br/&gt;    touch &amp;#34;.nojekyll&amp;#34;&lt;br/&gt;    echo &amp;#34;n34.dev&amp;#34; &amp;gt; &amp;#34;CNAME&amp;#34;&lt;br/&gt;&lt;br/&gt;    git add .&lt;br/&gt;    git commit -m &amp;#34;Deploy the book to github pages&amp;#34;&lt;br/&gt;    git remote add origin &amp;#34;git@github.com:TheAwiteb/n34-book&amp;#34;&lt;br/&gt;    git push origin gh-pages -f&lt;br/&gt;    cd ..&lt;br/&gt;    rm -fr {{ BOOK_DEST_DIR }}&lt;br/&gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs0er2uqyzhlapejxgxce2v2kjw4l76nh6wf0nleryzrcjgjs4r95qzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk770magfu</id>
    
      <title type="html"># GRASP-01 - Core Service Requirements Status: DRAFT - expect ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs0er2uqyzhlapejxgxce2v2kjw4l76nh6wf0nleryzrcjgjs4r95qzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk770magfu" />
    <content type="html">
      # GRASP-01 - Core Service Requirements&lt;br/&gt;&lt;br/&gt;Status: DRAFT - expect breaking changes&lt;br/&gt;&lt;br/&gt;## Nostr Relay&lt;br/&gt;&lt;br/&gt;MUST serve a [NIP-01](&lt;a href=&#34;https://nips.nostr.com/1&#34;&gt;https://nips.nostr.com/1&lt;/a&gt;) compliant nostr relay at `/` that accepts [git repository announcements](&lt;a href=&#34;https://nips.nostr.com/34#repository-announcements&#34;&gt;https://nips.nostr.com/34#repository-announcements&lt;/a&gt;) and their corresponding [repo state announcements](&lt;a href=&#34;https://nips.nostr.com/34#repository-state-announcements&#34;&gt;https://nips.nostr.com/34#repository-state-announcements&lt;/a&gt;).&lt;br/&gt;&lt;br/&gt;MUST reject [git repository announcements](&lt;a href=&#34;https://nips.nostr.com/34#repository-announcements&#34;&gt;https://nips.nostr.com/34#repository-announcements&lt;/a&gt;) that do not list the service in both `clone` and `relays` tags unless implementing `GRASP-05`.&lt;br/&gt;&lt;br/&gt;MAY reject [git repository announcements](&lt;a href=&#34;https://nips.nostr.com/34#repository-announcements&#34;&gt;https://nips.nostr.com/34#repository-announcements&lt;/a&gt;) based on other criteria such as pre-payment, quotas, WoT, whitelist, SPAM prevention, etc.&lt;br/&gt;&lt;br/&gt;MUST accept other events that tag, or are tagged by, either:&lt;br/&gt;&lt;br/&gt;1. accepted [git repository announcements](&lt;a href=&#34;https://nips.nostr.com/34#repository-announcements&#34;&gt;https://nips.nostr.com/34#repository-announcements&lt;/a&gt;); or&lt;br/&gt;2. accepted [issues](&lt;a href=&#34;https://nips.nostr.com/34#issues&#34;&gt;https://nips.nostr.com/34#issues&lt;/a&gt;) or [patches](&lt;a href=&#34;https://nips.nostr.com/34#patches&#34;&gt;https://nips.nostr.com/34#patches&lt;/a&gt;)&lt;br/&gt;&lt;br/&gt;MAY reject or delete events for generic SPAM prevention reasons or curation eg. WoT, whitelist, user bans and banned topics.&lt;br/&gt;&lt;br/&gt;MUST serve a [NIP-11](&lt;a href=&#34;https://nips.nostr.com/11&#34;&gt;https://nips.nostr.com/11&lt;/a&gt;) document:&lt;br/&gt;&lt;br/&gt;1. MUST list each supported GRASP under `supported_grasps` in format `GRASP-XX` eg `GRASP-01` as a string array&lt;br/&gt;2. MUST list repository acceptance criteria under `repo_acceptance_criteria` as a human readable string&lt;br/&gt;3. MUST list brief summary of curation policy under `curation` if events are curated beyond generic SPAM prevention; otherwise `curation` MUST be ommitted&lt;br/&gt;&lt;br/&gt;## Git Smart HTTP Service&lt;br/&gt;&lt;br/&gt;MUST serve a git repository via an unauthenticated [git smart http service](&lt;a href=&#34;https://github.com/git/git/blob/master/Documentation/gitprotocol-http.adoc&#34;&gt;https://github.com/git/git/blob/master/Documentation/gitprotocol-http.adoc&lt;/a&gt;) at `/&amp;lt;npub&amp;gt;/&amp;lt;identifier&amp;gt;.git` for each accepted [git repository announcement](&lt;a href=&#34;https://nips.nostr.com/34#repository-announcements&#34;&gt;https://nips.nostr.com/34#repository-announcements&lt;/a&gt;).&lt;br/&gt;&lt;br/&gt;MUST accept pushes via this service that match the latest [repo state announcement](&lt;a href=&#34;https://nips.nostr.com/34#repository-state-announcements&#34;&gt;https://nips.nostr.com/34#repository-state-announcements&lt;/a&gt;) on the relay, respecting the recursive maintainer set.&lt;br/&gt;&lt;br/&gt;MUST set repository HEAD per [repo state announcement](&lt;a href=&#34;https://nips.nostr.com/34#repository-state-announcements&#34;&gt;https://nips.nostr.com/34#repository-state-announcements&lt;/a&gt;) as soon as the git data related to that branch has been received.&lt;br/&gt;&lt;br/&gt;MUST accept pushes via this service to `refs/nostr/&amp;lt;event-id&amp;gt;` but SHOULD reject if event exists on relay listing a different tip and MAY reject based on criteria such as size, SPAM prevention, etc. SHOULD delete and MAY garbage collect these refs if no corresponding [git PR event](&lt;a href=&#34;https://nips.nostr.com/34#pull-requests&#34;&gt;https://nips.nostr.com/34#pull-requests&lt;/a&gt;) or [git PR update event](&lt;a href=&#34;https://nips.nostr.com/34#pull-request-updates&#34;&gt;https://nips.nostr.com/34#pull-request-updates&lt;/a&gt;), with a `c` tag that matches the ref tip, is accepted by relay with 20 minutes.&lt;br/&gt;&lt;br/&gt;MUST include `allow-reachable-sha1-in-want` and `allow-tip-sha1-in-want` in advertisement and serve available oids.&lt;br/&gt;&lt;br/&gt;SHOULD serve a webpage at the same endpoint linking to git nostr client(s) to browse the repository and a 404 page for repositories it doesn&amp;#39;t host.&lt;br/&gt;&lt;br/&gt;### CORS Support&lt;br/&gt;&lt;br/&gt;To enable cross-origin access for web-based Git clients, implementations MUST support the following CORS configuration:&lt;br/&gt;&lt;br/&gt;1. Set `Access-Control-Allow-Origin: *` on ALL responses&lt;br/&gt;2. Set `Access-Control-Allow-Methods: GET, POST` on ALL responses&lt;br/&gt;3. Set `Access-Control-Allow-Headers: Content-Type` on ALL responses&lt;br/&gt;4. Respond to OPTIONS requests with 204 No Content&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs0k2u4aknys8mgnkpdkj72ej277fa2g9hkecr69weg39flrw002gqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk778uhyt0</id>
    
      <title type="html"># NIP-46 Bunker &amp;gt; `n34 config bunker` command **Usage:** ``` ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs0k2u4aknys8mgnkpdkj72ej277fa2g9hkecr69weg39flrw002gqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk778uhyt0" />
    <content type="html">
      # NIP-46 Bunker&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 config bunker` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Sets a URL of NIP-46 bunker server used for signing events&lt;br/&gt;&lt;br/&gt;Usage: n34 config bunker [BUNKER_URL]&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  [BUNKER_URL]  Nostr Connect URL for the bunker. Omit this to remove the current bunker URL&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;This command configures `n34` to use a remote signer ([NIP-46]), known as a&lt;br/&gt;bunker, for all cryptographic operations.&lt;br/&gt;&lt;br/&gt;When `n34` communicates with the bunker, it uses a persistent, locally-generated&lt;br/&gt;keypair. You should add this keypair&amp;#39;s public key to your bunker&amp;#39;s list of&lt;br/&gt;authorized applications. This allows `n34` to operate securely without needing&lt;br/&gt;direct access to your main private key.&lt;br/&gt;&lt;br/&gt;Once configured, actions such as fetching your public key or signing events are&lt;br/&gt;delegated to the bunker. To remove the bunker configuration, run the command&lt;br/&gt;again without providing a URL.&lt;br/&gt;&lt;br/&gt;[NIP-46]: &lt;a href=&#34;https://github.com/nostr-protocol/nips/blob/master/46.md&#34;&gt;https://github.com/nostr-protocol/nips/blob/master/46.md&lt;/a&gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs0kfha3n0alpey862fhvka78lukdthx744evg05vxpzydg44vvmeczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77a985vf</id>
    
      <title type="html">domain = &amp;#34;&amp;#34; nip42 = false min_pow = 0 max_event_size = ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs0kfha3n0alpey862fhvka78lukdthx744evg05vxpzydg44vvmeczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77a985vf" />
    <content type="html">
      domain = &amp;#34;&amp;#34;&lt;br/&gt;nip42 = false&lt;br/&gt;min_pow = 0&lt;br/&gt;max_event_size = 153600&lt;br/&gt;max_limit = 5000&lt;br/&gt;default_limit = 500&lt;br/&gt;max_subid_length = 150&lt;br/&gt;whitelist = []&lt;br/&gt;blacklist = []&lt;br/&gt;admins = []&lt;br/&gt;allowed_kinds = []&lt;br/&gt;disallowed_kinds = []&lt;br/&gt;&lt;br/&gt;[net]&lt;br/&gt;ip = &amp;#34;127.0.0.1&amp;#34;&lt;br/&gt;port = 3598&lt;br/&gt;&lt;br/&gt;[lmdb]&lt;br/&gt;dir = &amp;#34;./lmdb&amp;#34;&lt;br/&gt;map_size = 34359738368&lt;br/&gt;max_readers = 126&lt;br/&gt;additional_dbs = 0&lt;br/&gt;&lt;br/&gt;[ratelimit]&lt;br/&gt;max_queries = 500&lt;br/&gt;events_per_minute = 120&lt;br/&gt;&lt;br/&gt;[nip11.limitation]&lt;br/&gt;payment_required = false&lt;br/&gt;&lt;br/&gt;[plugins.rhai]&lt;br/&gt;workers = 3&lt;br/&gt;plugins = []&lt;br/&gt;&lt;br/&gt;[grasp]&lt;br/&gt;enable = true&lt;br/&gt;git_path = &amp;#34;git&amp;#34;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs0vmq5du9uqhnck9nwzcxgxs6asvhep2snxplc8397xtucyzxzh5szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77cdxqw9</id>
    
      <title type="html">{ &amp;#34;nodes&amp;#34;: { &amp;#34;flake-utils&amp;#34;: { &amp;#34;inputs&amp;#34;: { ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs0vmq5du9uqhnck9nwzcxgxs6asvhep2snxplc8397xtucyzxzh5szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77cdxqw9" />
    <content type="html">
      {&lt;br/&gt;  &amp;#34;nodes&amp;#34;: {&lt;br/&gt;    &amp;#34;flake-utils&amp;#34;: {&lt;br/&gt;      &amp;#34;inputs&amp;#34;: {&lt;br/&gt;        &amp;#34;systems&amp;#34;: &amp;#34;systems&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;locked&amp;#34;: {&lt;br/&gt;        &amp;#34;lastModified&amp;#34;: 1731533236,&lt;br/&gt;        &amp;#34;narHash&amp;#34;: &amp;#34;sha256-l0KFg5HjrsfsO/JpG&#43;r7fRrqm12kzFHyUHqHCVpMMbI=&amp;#34;,&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;numtide&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;flake-utils&amp;#34;,&lt;br/&gt;        &amp;#34;rev&amp;#34;: &amp;#34;11707dc2f618dd54ca8739b309ec4fc024de578b&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;original&amp;#34;: {&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;numtide&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;flake-utils&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    &amp;#34;nixpkgs&amp;#34;: {&lt;br/&gt;      &amp;#34;locked&amp;#34;: {&lt;br/&gt;        &amp;#34;lastModified&amp;#34;: 1774106199,&lt;br/&gt;        &amp;#34;narHash&amp;#34;: &amp;#34;sha256-US5Tda2sKmjrg2lNHQL3jRQ6p96cgfWh3J1QBliQ8Ws=&amp;#34;,&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;NixOS&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;nixpkgs&amp;#34;,&lt;br/&gt;        &amp;#34;rev&amp;#34;: &amp;#34;6c9a78c09ff4d6c21d0319114873508a6ec01655&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;original&amp;#34;: {&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;NixOS&amp;#34;,&lt;br/&gt;        &amp;#34;ref&amp;#34;: &amp;#34;nixos-unstable&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;nixpkgs&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    &amp;#34;nixpkgs_2&amp;#34;: {&lt;br/&gt;      &amp;#34;locked&amp;#34;: {&lt;br/&gt;        &amp;#34;lastModified&amp;#34;: 1744536153,&lt;br/&gt;        &amp;#34;narHash&amp;#34;: &amp;#34;sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=&amp;#34;,&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;NixOS&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;nixpkgs&amp;#34;,&lt;br/&gt;        &amp;#34;rev&amp;#34;: &amp;#34;18dd725c29603f582cf1900e0d25f9f1063dbf11&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;original&amp;#34;: {&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;NixOS&amp;#34;,&lt;br/&gt;        &amp;#34;ref&amp;#34;: &amp;#34;nixpkgs-unstable&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;nixpkgs&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    &amp;#34;root&amp;#34;: {&lt;br/&gt;      &amp;#34;inputs&amp;#34;: {&lt;br/&gt;        &amp;#34;flake-utils&amp;#34;: &amp;#34;flake-utils&amp;#34;,&lt;br/&gt;        &amp;#34;nixpkgs&amp;#34;: &amp;#34;nixpkgs&amp;#34;,&lt;br/&gt;        &amp;#34;rust-overlay&amp;#34;: &amp;#34;rust-overlay&amp;#34;&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    &amp;#34;rust-overlay&amp;#34;: {&lt;br/&gt;      &amp;#34;inputs&amp;#34;: {&lt;br/&gt;        &amp;#34;nixpkgs&amp;#34;: &amp;#34;nixpkgs_2&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;locked&amp;#34;: {&lt;br/&gt;        &amp;#34;lastModified&amp;#34;: 1774408260,&lt;br/&gt;        &amp;#34;narHash&amp;#34;: &amp;#34;sha256-Jn9d9r85dmf3gTMnSRt6t&#43;DP2nQ5uJns/MMXg2FpzfM=&amp;#34;,&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;oxalica&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;rust-overlay&amp;#34;,&lt;br/&gt;        &amp;#34;rev&amp;#34;: &amp;#34;d6471ee5a8f470251e6e5b83a20a182eb6c46c9b&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;original&amp;#34;: {&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;oxalica&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;rust-overlay&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    &amp;#34;systems&amp;#34;: {&lt;br/&gt;      &amp;#34;locked&amp;#34;: {&lt;br/&gt;        &amp;#34;lastModified&amp;#34;: 1681028828,&lt;br/&gt;        &amp;#34;narHash&amp;#34;: &amp;#34;sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=&amp;#34;,&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;nix-systems&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;default&amp;#34;,&lt;br/&gt;        &amp;#34;rev&amp;#34;: &amp;#34;da67096a3b9bf56a91d16901293e51ba5b49a27e&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;original&amp;#34;: {&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;nix-systems&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;default&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      }&lt;br/&gt;    }&lt;br/&gt;  },&lt;br/&gt;  &amp;#34;root&amp;#34;: &amp;#34;root&amp;#34;,&lt;br/&gt;  &amp;#34;version&amp;#34;: 7&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs0vjup4z3yef3zlnzhduhtw3zzpkqdha9l9c8v7naahv49rdt2s3szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77vmkaxg</id>
    
      <title type="html"># Merge an Open Patch &amp;gt; `n34 patch merge` command **Usage:** ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs0vjup4z3yef3zlnzhduhtw3zzpkqdha9l9c8v7naahv49rdt2s3szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77vmkaxg" />
    <content type="html">
      # Merge an Open Patch&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 patch merge` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Set an open patch status to merged&lt;br/&gt;&lt;br/&gt;Usage: n34 patch merge [OPTIONS] &amp;lt;PATCH_ID&amp;gt; &amp;lt;MERGE_COMMIT&amp;gt;&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  &amp;lt;PATCH_ID&amp;gt;      The open patch id to merge it. Must be orignal root patch or revision root&lt;br/&gt;  &amp;lt;MERGE_COMMIT&amp;gt;  The merge commit id&lt;br/&gt;&lt;br/&gt;Options:&lt;br/&gt;      --repo &amp;lt;NADDR-NIP05-OR-SET&amp;gt;  Repository address in `naddr` format (`naddr1...`), NIP-05 format (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`&lt;br/&gt;      --patches &amp;lt;PATCH-EVENT-ID&amp;gt;   Patches that have been merged. Use this when only some patches have been merged, not all&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;Creates a kind `1631` event (Applied/Merged status) for the specified patch. The&lt;br/&gt;patch must be in open status.&lt;br/&gt;&lt;br/&gt;You can specify either an original patch or revision patch ID, but the status&lt;br/&gt;event will only reference the original patch. Revision patches will be mentioned&lt;br/&gt;in the event.&lt;br/&gt;&lt;br/&gt;You can get the `MERGE_COMMIT` commit using `git rev-parse HEAD` command if&lt;br/&gt;the merge commit in the `HEAD` or use `HEAD~n` where the `n` is the number of&lt;br/&gt;commits the merge commit before the HEAD&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs0t6n5x4naqrn826h3cdmaq5rafveupaufzhy6jet9phl5ws8nsjczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77vxf5sh</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs0t6n5x4naqrn826h3cdmaq5rafveupaufzhy6jet9phl5ws8nsjczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77vxf5sh" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::path::{Component, PathBuf};&lt;br/&gt;&lt;br/&gt;use axum::{extract::FromRequestParts, http::request::Parts};&lt;br/&gt;use hyper::StatusCode;&lt;br/&gt;use nostr::key::PublicKey;&lt;br/&gt;&lt;br/&gt;/// Parameters containing a repository author&amp;#39;s public key and repository name.&lt;br/&gt;#[derive(serde::Deserialize)]&lt;br/&gt;pub struct PublicKeyAndRepoPath {&lt;br/&gt;    /// The author&amp;#39;s Nostr public key.&lt;br/&gt;    pub public_key: PublicKey,&lt;br/&gt;    /// The full repository name.&lt;br/&gt;    pub repo_name:  String,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Either `git-upload-pack` or `git-receive-pack`&lt;br/&gt;#[derive(serde::Deserialize)]&lt;br/&gt;#[serde(rename_all = &amp;#34;kebab-case&amp;#34;)]&lt;br/&gt;pub enum ServiceName {&lt;br/&gt;    GitUploadPack,&lt;br/&gt;    GitReceivePack,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Query parameter containing the service name (`?service=&amp;lt;string&amp;gt;`)&lt;br/&gt;#[derive(serde::Deserialize)]&lt;br/&gt;pub struct ServiceQuery {&lt;br/&gt;    /// The service name&lt;br/&gt;    pub service: ServiceName,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// An extractor that indecates what file to return its content, it&amp;#39;s used with&lt;br/&gt;/// `get_file_content` endpoint only.&lt;br/&gt;pub struct GitFilePath(pub PathBuf);&lt;br/&gt;&lt;br/&gt;impl ServiceName {&lt;br/&gt;    /// Gets the service name without the `git-` prefix&lt;br/&gt;    pub const fn name(&amp;amp;self) -&amp;gt; &amp;amp;&amp;#39;static str {&lt;br/&gt;        match self {&lt;br/&gt;            Self::GitUploadPack =&amp;gt; &amp;#34;upload-pack&amp;#34;,&lt;br/&gt;            Self::GitReceivePack =&amp;gt; &amp;#34;receive-pack&amp;#34;,&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Gets the pkt-line header of the service&lt;br/&gt;    pub const fn pkt_line_header(&amp;amp;self) -&amp;gt; &amp;amp;[u8] {&lt;br/&gt;        match self {&lt;br/&gt;            Self::GitUploadPack =&amp;gt; &amp;#34;001e# service=git-upload-pack\n0000&amp;#34;.as_bytes(),&lt;br/&gt;            Self::GitReceivePack =&amp;gt; &amp;#34;001f# service=git-receive-pack\n0000&amp;#34;.as_bytes(),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;S&amp;gt; FromRequestParts&amp;lt;S&amp;gt; for GitFilePath&lt;br/&gt;where&lt;br/&gt;    S: Send &#43; Sync,&lt;br/&gt;{&lt;br/&gt;    type Rejection = (StatusCode, &amp;amp;&amp;#39;static str);&lt;br/&gt;&lt;br/&gt;    async fn from_request_parts(parts: &amp;amp;mut Parts, _state: &amp;amp;S) -&amp;gt; Result&amp;lt;Self, Self::Rejection&amp;gt; {&lt;br/&gt;        // Skip `/&amp;lt;npub&amp;gt;/repo.git/`&lt;br/&gt;        let path = PathBuf::from(&lt;br/&gt;            parts&lt;br/&gt;                .uri&lt;br/&gt;                .path()&lt;br/&gt;                .trim_matches(&amp;#39;/&amp;#39;)&lt;br/&gt;                .split(&amp;#39;/&amp;#39;)&lt;br/&gt;                .skip(2)&lt;br/&gt;                .collect::&amp;lt;Vec&amp;lt;_&amp;gt;&amp;gt;()&lt;br/&gt;                .join(&amp;#34;/&amp;#34;),&lt;br/&gt;        );&lt;br/&gt;&lt;br/&gt;        if path.components().any(|component| {&lt;br/&gt;            matches!(&lt;br/&gt;                component,&lt;br/&gt;                Component::CurDir | Component::ParentDir | Component::Prefix(..)&lt;br/&gt;            )&lt;br/&gt;        }) {&lt;br/&gt;            return Err((StatusCode::BAD_REQUEST, &amp;#34;Invalid path&amp;#34;));&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        if path.as_os_str() == &amp;#34;HEAD&amp;#34;&lt;br/&gt;            || path.starts_with(&amp;#34;objects/info/&amp;#34;)&lt;br/&gt;            || path.starts_with(&amp;#34;objects/pack/&amp;#34;)&lt;br/&gt;        {&lt;br/&gt;            Ok(Self(path.to_path_buf()))&lt;br/&gt;        } else {&lt;br/&gt;            Err((StatusCode::BAD_REQUEST, &amp;#34;Unknown path&amp;#34;))&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;S&amp;gt; FromRequestParts&amp;lt;S&amp;gt; for PublicKeyAndRepoPath&lt;br/&gt;where&lt;br/&gt;    S: Send &#43; Sync,&lt;br/&gt;{&lt;br/&gt;    type Rejection = (StatusCode, String);&lt;br/&gt;&lt;br/&gt;    async fn from_request_parts(parts: &amp;amp;mut Parts, state: &amp;amp;S) -&amp;gt; Result&amp;lt;Self, Self::Rejection&amp;gt; {&lt;br/&gt;        use axum::extract::Path;&lt;br/&gt;&lt;br/&gt;        let Path(mut pkey_and_repo) =&lt;br/&gt;            Path::&amp;lt;PublicKeyAndRepoPath&amp;gt;::from_request_parts(parts, state)&lt;br/&gt;                .await&lt;br/&gt;                .map_err(|err| (StatusCode::BAD_REQUEST, err.to_string()))?;&lt;br/&gt;&lt;br/&gt;        if pkey_and_repo.repo_name.ends_with(&amp;#34;.git&amp;#34;) {&lt;br/&gt;            pkey_and_repo.repo_name = pkey_and_repo.repo_name.trim_end_matches(&amp;#34;.git&amp;#34;).to_owned();&lt;br/&gt;            return Ok(pkey_and_repo);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        Err((&lt;br/&gt;            StatusCode::BAD_REQUEST,&lt;br/&gt;            &amp;#34;The repository name must ends with `.git`&amp;#34;.to_owned(),&lt;br/&gt;        ))&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs0xezqjd0hdl9xz5p6ck44hl7y4ef544p2w46qc03mp93k6cktp0qzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77fqzpwk</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] use frost_secp256k1_tr as ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs0xezqjd0hdl9xz5p6ck44hl7y4ef544p2w46qc03mp93k6cktp0qzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77fqzpwk" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use frost_secp256k1_tr as frost;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use rand::thread_rng;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use std::collections::BTreeMap;&lt;br/&gt;&lt;br/&gt;/// A simplified ROAST Coordinator that manages signing sessions&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;struct RoastCoordinator {&lt;br/&gt;    min_signers: u16,&lt;br/&gt;    _message: Vec&amp;lt;u8&amp;gt;,&lt;br/&gt;    commitments: BTreeMap&amp;lt;frost::Identifier, frost::round1::SigningCommitments&amp;gt;,&lt;br/&gt;    nonces: BTreeMap&amp;lt;frost::Identifier, frost::round1::SigningNonces&amp;gt;,&lt;br/&gt;    shares: BTreeMap&amp;lt;frost::Identifier, frost::round2::SignatureShare&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;impl RoastCoordinator {&lt;br/&gt;    fn new(min_signers: u16, message: &amp;amp;[u8]) -&amp;gt; Self {&lt;br/&gt;        Self {&lt;br/&gt;            min_signers,&lt;br/&gt;            _message: message.to_vec(),&lt;br/&gt;            commitments: BTreeMap::new(),&lt;br/&gt;            nonces: BTreeMap::new(),&lt;br/&gt;            shares: BTreeMap::new(),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// ROAST Logic: Collect commitments until we hit the threshold.&lt;br/&gt;    /// In a real P2P system, this would be an async stream handler.&lt;br/&gt;    fn add_commitment(&amp;amp;mut self, id: frost::Identifier, comms: frost::round1::SigningCommitments, nonces: frost::round1::SigningNonces) {&lt;br/&gt;        if self.commitments.len() &amp;lt; self.min_signers as usize {&lt;br/&gt;            self.commitments.insert(id, comms);&lt;br/&gt;            self.nonces.insert(id, nonces);&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// ROAST Logic: Collect signature shares.&lt;br/&gt;    fn add_share(&amp;amp;mut self, id: frost::Identifier, share: frost::round2::SignatureShare) {&lt;br/&gt;        if self.shares.len() &amp;lt; self.min_signers as usize {&lt;br/&gt;            self.shares.insert(id, share);&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    fn is_ready_to_sign(&amp;amp;self) -&amp;gt; bool {&lt;br/&gt;        self.commitments.len() &amp;gt;= self.min_signers as usize&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    fn is_ready_to_aggregate(&amp;amp;self) -&amp;gt; bool {&lt;br/&gt;        self.shares.len() &amp;gt;= self.min_signers as usize&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    let mut rng = thread_rng();&lt;br/&gt;    let (max_signers, min_signers) = (5, 3);&lt;br/&gt;    let message = b&amp;#34;BIP-64MOD Context: ROAST Coordination&amp;#34;;&lt;br/&gt;&lt;br/&gt;    // 1. Setup: Generate keys (Dealer mode for simulation)&lt;br/&gt;    let (key_shares, pubkey_package) = frost::keys::generate_with_dealer(&lt;br/&gt;        max_signers,&lt;br/&gt;        min_signers,&lt;br/&gt;        frost::keys::IdentifierList::Default,&lt;br/&gt;        &amp;amp;mut rng,&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    let mut coordinator = RoastCoordinator::new(min_signers, message);&lt;br/&gt;&lt;br/&gt;    // 2. Round 1: Asynchronous Commitment Collection&lt;br/&gt;    // Simulate signers 1, 3, and 5 responding first (ROAST skips 2 and 4)&lt;br/&gt;    for &amp;amp;id_num in &amp;amp;[1, 3, 5] {&lt;br/&gt;        let id = frost::Identifier::try_from(id_num as u16)?;&lt;br/&gt;        let (nonces, comms) = frost::round1::commit(key_shares[&amp;amp;id].signing_share(), &amp;amp;mut rng);&lt;br/&gt;        &lt;br/&gt;        // Signers store their nonces locally, send comms to coordinator&lt;br/&gt;        coordinator.add_commitment(id, comms, nonces);&lt;br/&gt;        &lt;br/&gt;        // Note: Signer 2 was &amp;#34;offline&amp;#34;, but ROAST doesn&amp;#39;t care because we hit 3/5.&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // 3. Round 2: Signing&lt;br/&gt;    if coordinator.is_ready_to_sign() {&lt;br/&gt;        let signing_package = frost::SigningPackage::new(coordinator.commitments.clone(), message);&lt;br/&gt;        &lt;br/&gt;        let mut temp_shares = BTreeMap::new();&lt;br/&gt;        for &amp;amp;id in coordinator.commitments.keys() {&lt;br/&gt;            // In reality, coordinator sends signing_package to signers&lt;br/&gt;            // Here we simulate the signers producing shares&lt;br/&gt;&lt;br/&gt;            let nonces = &amp;amp;coordinator.nonces[&amp;amp;id];&lt;br/&gt;            &lt;br/&gt;            let key_package: frost::keys::KeyPackage = key_shares[&amp;amp;id].clone().try_into()?;&lt;br/&gt;            let share = frost::round2::sign(&amp;amp;signing_package, &amp;amp;nonces, &amp;amp;key_package)?;&lt;br/&gt;            temp_shares.insert(id, share);&lt;br/&gt;        }&lt;br/&gt;        for (id, share) in temp_shares {&lt;br/&gt;            coordinator.add_share(id, share);&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // 4. Finalization: Aggregation&lt;br/&gt;    if coordinator.is_ready_to_aggregate() {&lt;br/&gt;        let signing_package = frost::SigningPackage::new(coordinator.commitments.clone(), message);&lt;br/&gt;        let group_signature = frost::aggregate(&lt;br/&gt;            &amp;amp;signing_package,&lt;br/&gt;            &amp;amp;coordinator.shares,&lt;br/&gt;            &amp;amp;pubkey_package,&lt;br/&gt;        )?;&lt;br/&gt;&lt;br/&gt;        pubkey_package.verifying_key().verify(message, &amp;amp;group_signature)?;&lt;br/&gt;        println!(&amp;#34;ROAST-coordinated signature verified!&amp;#34;);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example roast-experiment --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs0pyd5ghcfuvj9qtv3juea96rgm8p6h67q48lx645lkeyz0wly6eszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77jxt4re</id>
    
      <title type="html"># Closes an Open or Drafted Patch &amp;gt; `n34 patch close` command ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs0pyd5ghcfuvj9qtv3juea96rgm8p6h67q48lx645lkeyz0wly6eszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77jxt4re" />
    <content type="html">
      # Closes an Open or Drafted Patch&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 patch close` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Closes an open or drafted patch&lt;br/&gt;&lt;br/&gt;Usage: n34 patch close [OPTIONS] &amp;lt;PATCH_ID&amp;gt;&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  &amp;lt;PATCH_ID&amp;gt;  The open/drafted patch id to close it. Must be orignal root patch&lt;br/&gt;&lt;br/&gt;Options:&lt;br/&gt;      --repo &amp;lt;NADDR-NIP05-OR-SET&amp;gt;  Repository address in `naddr` format (`naddr1...`), NIP-05 format (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;Issue a kind `1632` (Close status) for the specified patch. The patch have to&lt;br/&gt;be open or drafted.&lt;br/&gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqswlsm4rpuku387yvkqm36s539f48qpzuy3r4e5ux37wgpdmhjtymczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77r50afm</id>
    
      <title type="html">/// BIP-64MOD &#43; GCC: Complete Git Empty &amp;amp; Genesis Constants ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqswlsm4rpuku387yvkqm36s539f48qpzuy3r4e5ux37wgpdmhjtymczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77r50afm" />
    <content type="html">
      /// BIP-64MOD &#43; GCC: Complete Git Empty &amp;amp; Genesis Constants&lt;br/&gt;/// &lt;br/&gt;/// This module provides the standard cryptographic identifiers for &amp;#34;null&amp;#34;, &lt;br/&gt;/// &amp;#34;empty&amp;#34;, and &amp;#34;genesis&amp;#34; states, including NIP-19 (Bech32) identities.&lt;br/&gt;pub struct GitEmptyState;&lt;br/&gt;&lt;br/&gt;impl GitEmptyState {&lt;br/&gt;    // === NULL REFERENCE (Zero Hash) ===&lt;br/&gt;    pub const NULL_SHA256: &amp;amp;&amp;#39;static str = &amp;#34;0000000000000000000000000000000000000000000000000000000000000000&amp;#34;;&lt;br/&gt;&lt;br/&gt;    // === EMPTY BLOB (Empty File) ===&lt;br/&gt;    pub const BLOB_SHA1: &amp;amp;&amp;#39;static str = &amp;#34;e69de29bb2d1d6434b8b29ae775ad8c2e48c5391&amp;#34;;&lt;br/&gt;    pub const BLOB_SHA256: &amp;amp;&amp;#39;static str = &amp;#34;473a0f4c3be8a93681a267e3b1e9a7dcda1185436fe141f7749120a303721813&amp;#34;;&lt;br/&gt;    pub const BLOB_NSEC: &amp;amp;&amp;#39;static str = &amp;#34;nsec1guaq7npmaz5ndqdzvl3mr6d8mndprp2rdls5ram5jys2xqmjrqfsdzhrp6&amp;#34;;&lt;br/&gt;    pub const BLOB_NPUB: &amp;amp;&amp;#39;static str = &amp;#34;npub180cvv07tjdrghvkyh6964p7w9vsqpf3p05868v399v86p8y6f69sq5fdp0&amp;#34;;&lt;br/&gt;&lt;br/&gt;    // === EMPTY TREE (Empty Directory) ===&lt;br/&gt;    pub const TREE_SHA1: &amp;amp;&amp;#39;static str = &amp;#34;4b825dc642cb6eb9a060e54bf8d69288fbee4904&amp;#34;;&lt;br/&gt;    pub const TREE_SHA256: &amp;amp;&amp;#39;static str = &amp;#34;6ef19b41225c5369f1c104d45d8d85efa9b057b53b14b4b9b939dd74decc5321&amp;#34;;&lt;br/&gt;    pub const TREE_NSEC: &amp;amp;&amp;#39;static str = &amp;#34;nsec1dmceksfzt3fknuwpqn29mrv9a75mq4a48v2tfwde88whfhkv2vsslsc46c&amp;#34;;&lt;br/&gt;    pub const TREE_NPUB: &amp;amp;&amp;#39;static str = &amp;#34;npub1pxmpep6yk7z6p332u9588k0vscg26rv29pynvscg26rv29pynvsq6erdfh&amp;#34;;&lt;br/&gt;&lt;br/&gt;    // === GENESIS COMMIT (DeepSpaceM1 @ Epoch 0) ===&lt;br/&gt;    /// Result of: git commit --allow-empty -m &amp;#39;Initial commit&amp;#39; &lt;br/&gt;    /// With Author/Committer: DeepSpaceM1 &amp;lt;ds_m1@gnostr.org&amp;gt; @ 1970-01-01T00:00:00Z&lt;br/&gt;    pub const GENESIS_AUTHOR_NAME: &amp;amp;&amp;#39;static str = &amp;#34;DeepSpaceM1&amp;#34;;&lt;br/&gt;    pub const GENESIS_AUTHOR_EMAIL: &amp;amp;&amp;#39;static str = &amp;#34;ds_m1@gnostr.org&amp;#34;;&lt;br/&gt;    pub const GENESIS_DATE_UNIX: i64 = 0;&lt;br/&gt;    pub const GENESIS_MESSAGE: &amp;amp;&amp;#39;static str = &amp;#34;Initial commit&amp;#34;;&lt;br/&gt;&lt;br/&gt;    /// The resulting SHA-256 Commit Hash for this specific configuration&lt;br/&gt;    pub const GENESIS_COMMIT_SHA256: &amp;amp;&amp;#39;static str = &amp;#34;e9768652d87e07663479a0ad402513f56d953930b659c2ef389d4d03d3623910&amp;#34;;&lt;br/&gt;    &lt;br/&gt;    /// The NIP-19 Identity associated with the Genesis Commit&lt;br/&gt;    pub const GENESIS_NSEC: &amp;amp;&amp;#39;static str = &amp;#34;nsec1jpxmpep6yk7z6p332u9588k0vscg26rv29pynvscg26rv29pynvsq68at9d&amp;#34;;&lt;br/&gt;    pub const GENESIS_NPUB: &amp;amp;&amp;#39;static str = &amp;#34;npub1pxmpep6yk7z6p332u9588k0vscg26rv29pynvscg26rv29pynvsq6erdfh&amp;#34;;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Helper for constructing the commit object string for hashing&lt;br/&gt;pub mod builders {&lt;br/&gt;    use super::GitEmptyState;&lt;br/&gt;&lt;br/&gt;    pub fn build_genesis_commit_object() -&amp;gt; String {&lt;br/&gt;        format!(&lt;br/&gt;            &amp;#34;tree {}\nauthor {} &amp;lt;{}&amp;gt; {} &#43;0000\ncommitter {} &amp;lt;{}&amp;gt; {} &#43;0000\n\n{}\n&amp;#34;,&lt;br/&gt;            GitEmptyState::TREE_SHA256,&lt;br/&gt;            GitEmptyState::GENESIS_AUTHOR_NAME,&lt;br/&gt;            GitEmptyState::GENESIS_AUTHOR_EMAIL,&lt;br/&gt;            GitEmptyState::GENESIS_DATE_UNIX,&lt;br/&gt;            GitEmptyState::GENESIS_AUTHOR_NAME,&lt;br/&gt;            GitEmptyState::GENESIS_AUTHOR_EMAIL,&lt;br/&gt;            GitEmptyState::GENESIS_DATE_UNIX,&lt;br/&gt;            GitEmptyState::GENESIS_MESSAGE&lt;br/&gt;        )&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;--- BIP-64MOD &#43; GCC Genesis State ---&amp;#34;);&lt;br/&gt;    println!(&amp;#34;Commit Hash: {}&amp;#34;, GitEmptyState::GENESIS_COMMIT_SHA256);&lt;br/&gt;    println!(&amp;#34;Author:      {} &amp;lt;{}&amp;gt;&amp;#34;, GitEmptyState::GENESIS_AUTHOR_NAME, GitEmptyState::GENESIS_AUTHOR_EMAIL);&lt;br/&gt;    println!(&amp;#34;Timestamp:   {}&amp;#34;, GitEmptyState::GENESIS_DATE_UNIX);&lt;br/&gt;    println!(&amp;#34;NSEC:        {}&amp;#34;, GitEmptyState::GENESIS_NSEC);&lt;br/&gt;    &lt;br/&gt;    let object_raw = builders::build_genesis_commit_object();&lt;br/&gt;    println!(&amp;#34;\nRaw Git Commit Object:\n---\n{}---&amp;#34;, object_raw);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqswl8ke5y0ehx6arfe3p0afhw3fa6padx0z3740gz640hhxpsd6zcczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77zx3j0t</id>
    
      <title type="html">// n34 - A CLI to interact with NIP-34 and other stuff related to ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqswl8ke5y0ehx6arfe3p0afhw3fa6padx0z3740gz640hhxpsd6zcczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77zx3j0t" />
    <content type="html">
      // n34 - A CLI to interact with NIP-34 and other stuff related to codes in nostr&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU General Public License as published by&lt;br/&gt;// the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/gpl-3.0.html&amp;gt&#34;&gt;https://gnu.org/licenses/gpl-3.0.html&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use clap::Args;&lt;br/&gt;use nostr::nips::nip46::NostrConnectURI;&lt;br/&gt;&lt;br/&gt;use crate::{&lt;br/&gt;    cli::{CliOptions, traits::CommandRunner},&lt;br/&gt;    error::{N34Error, N34Result},&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;#[derive(Args, Debug)]&lt;br/&gt;pub struct BunkerArgs {&lt;br/&gt;    /// Nostr Connect URL for the bunker. Omit this to remove the current bunker&lt;br/&gt;    /// URL.&lt;br/&gt;    bunker_url: Option&amp;lt;NostrConnectURI&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;impl CommandRunner for BunkerArgs {&lt;br/&gt;    const NEED_SIGNER: bool = false;&lt;br/&gt;&lt;br/&gt;    async fn run(self, mut options: CliOptions) -&amp;gt; N34Result&amp;lt;()&amp;gt; {&lt;br/&gt;        if let Some(ref bunker_url) = self.bunker_url&lt;br/&gt;            &amp;amp;&amp;amp; !bunker_url.is_bunker()&lt;br/&gt;        {&lt;br/&gt;            return Err(N34Error::NotBunkerUrl);&lt;br/&gt;        }&lt;br/&gt;        options.config.bunker_url = self.bunker_url;&lt;br/&gt;        options.config.dump()&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsw4p2myfvdlzhlrczjpyfygzwh70vysz5ctf8zrf9rp6w2kxjf4dczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk777vjtf7</id>
    
      <title type="html">// n34 - A CLI to interact with NIP-34 and other stuff related to ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsw4p2myfvdlzhlrczjpyfygzwh70vysz5ctf8zrf9rp6w2kxjf4dczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk777vjtf7" />
    <content type="html">
      // n34 - A CLI to interact with NIP-34 and other stuff related to codes in nostr&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU General Public License as published by&lt;br/&gt;// the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/gpl-3.0.html&amp;gt&#34;&gt;https://gnu.org/licenses/gpl-3.0.html&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::num::NonZeroUsize;&lt;br/&gt;&lt;br/&gt;use clap::Args;&lt;br/&gt;&lt;br/&gt;use crate::{&lt;br/&gt;    cli::{CliOptions, common_commands, traits::CommandRunner, types::NaddrOrSet},&lt;br/&gt;    error::N34Result,&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;#[derive(Debug, Args)]&lt;br/&gt;pub struct ListArgs {&lt;br/&gt;    /// Repository address in `naddr` format (`naddr1...`), NIP-05 format&lt;br/&gt;    /// (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`.&lt;br/&gt;    ///&lt;br/&gt;    /// If omitted, looks for a `nostr-address` file.&lt;br/&gt;    #[arg(value_name = &amp;#34;NADDR-NIP05-OR-SET&amp;#34;)]&lt;br/&gt;    naddrs: Option&amp;lt;Vec&amp;lt;NaddrOrSet&amp;gt;&amp;gt;,&lt;br/&gt;    /// Maximum number of issues to list&lt;br/&gt;    #[arg(long, default_value = &amp;#34;15&amp;#34;)]&lt;br/&gt;    limit:  NonZeroUsize,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl CommandRunner for ListArgs {&lt;br/&gt;    const NEED_SIGNER: bool = false;&lt;br/&gt;&lt;br/&gt;    async fn run(self, options: CliOptions) -&amp;gt; N34Result&amp;lt;()&amp;gt; {&lt;br/&gt;        common_commands::list_patches_and_issues(options, self.naddrs, false, self.limit.into())&lt;br/&gt;            .await&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsw5skjxfpumywr52fxxe84yeyzzkka6ss9mrt2sh8vrh7tenhcmlqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7778ffxs</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsw5skjxfpumywr52fxxe84yeyzzkka6ss9mrt2sh8vrh7tenhcmlqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7778ffxs" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::sync::Arc;&lt;br/&gt;&lt;br/&gt;use nostr::{&lt;br/&gt;    event::{Event, Kind, TagStandard, Tags},&lt;br/&gt;    key::PublicKey,&lt;br/&gt;    util::BoxedFuture,&lt;br/&gt;};&lt;br/&gt;use nostr_relay_builder::builder::WritePolicyResult;&lt;br/&gt;use parking_lot::RwLock;&lt;br/&gt;&lt;br/&gt;use crate::{&lt;br/&gt;    ext_traits::{RwlockVecExt, WritePolicyResultExt},&lt;br/&gt;    relay::plugins_manager::RelayPlugin,&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;type ArcRwVec&amp;lt;T&amp;gt; = Arc&amp;lt;RwLock&amp;lt;Vec&amp;lt;T&amp;gt;&amp;gt;&amp;gt;;&lt;br/&gt;&lt;br/&gt;/// A blacklist of public keys. Events are accepted only if their public key is&lt;br/&gt;/// not in this list.&lt;br/&gt;pub struct PubKeyBlacklist(&lt;br/&gt;    /// The set of blacklisted public keys.&lt;br/&gt;    pub ArcRwVec&amp;lt;PublicKey&amp;gt;,&lt;br/&gt;);&lt;br/&gt;&lt;br/&gt;/// A whitelist of public keys. Events are accepted only if the whitelist is&lt;br/&gt;/// empty or their public key is in it.&lt;br/&gt;pub struct PubKeyWhiteList(&lt;br/&gt;    /// The set of whitelisted public keys.&lt;br/&gt;    pub ArcRwVec&amp;lt;PublicKey&amp;gt;,&lt;br/&gt;);&lt;br/&gt;&lt;br/&gt;/// Verifies if the event tags contain any of the whitelisted public keys.&lt;br/&gt;/// Events with such mentions are accepted.&lt;br/&gt;pub struct MentionedPubKey(&lt;br/&gt;    /// The collection of public keys to search for in the event tags.&lt;br/&gt;    pub ArcRwVec&amp;lt;PublicKey&amp;gt;,&lt;br/&gt;);&lt;br/&gt;&lt;br/&gt;/// Accepts events if their kind is in the whitelist or if the whitelist is&lt;br/&gt;/// empty.&lt;br/&gt;pub struct KindWhitelist(&lt;br/&gt;    /// The list of allowed event kinds.&lt;br/&gt;    pub ArcRwVec&amp;lt;Kind&amp;gt;,&lt;br/&gt;);&lt;br/&gt;&lt;br/&gt;/// Accepts events if their kind is not in the blacklist.&lt;br/&gt;pub struct KindBlacklist(&lt;br/&gt;    /// The list of disallowed event kinds.&lt;br/&gt;    pub ArcRwVec&amp;lt;Kind&amp;gt;,&lt;br/&gt;);&lt;br/&gt;&lt;br/&gt;impl RelayPlugin for PubKeyBlacklist {&lt;br/&gt;    fn check_event&amp;lt;&amp;#39;a&amp;gt;(&amp;amp;&amp;#39;a self, event: &amp;amp;&amp;#39;a Event) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, Option&amp;lt;WritePolicyResult&amp;gt;&amp;gt; {&lt;br/&gt;        Box::pin(async {&lt;br/&gt;            if self.0.contains(&amp;amp;event.pubkey) {&lt;br/&gt;                return Some(WritePolicyResult::blocked_reject(&lt;br/&gt;                    &amp;#34;this public key is blacklisted&amp;#34;,&lt;br/&gt;                ));&lt;br/&gt;            }&lt;br/&gt;            Some(WritePolicyResult::Accept)&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl RelayPlugin for PubKeyWhiteList {&lt;br/&gt;    fn check_event&amp;lt;&amp;#39;a&amp;gt;(&amp;amp;&amp;#39;a self, event: &amp;amp;&amp;#39;a Event) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, Option&amp;lt;WritePolicyResult&amp;gt;&amp;gt; {&lt;br/&gt;        Box::pin(async {&lt;br/&gt;            if self.0.is_empty() || self.0.contains(&amp;amp;event.pubkey) {&lt;br/&gt;                return Some(WritePolicyResult::Accept);&lt;br/&gt;            }&lt;br/&gt;            Some(WritePolicyResult::blocked_reject(&lt;br/&gt;                &amp;#34;this public key is not whitelisted&amp;#34;,&lt;br/&gt;            ))&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl RelayPlugin for MentionedPubKey {&lt;br/&gt;    fn check_event&amp;lt;&amp;#39;a&amp;gt;(&amp;amp;&amp;#39;a self, event: &amp;amp;&amp;#39;a Event) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, Option&amp;lt;WritePolicyResult&amp;gt;&amp;gt; {&lt;br/&gt;        Box::pin(async {&lt;br/&gt;            let whitelist_lock = self.0.read();&lt;br/&gt;&lt;br/&gt;            if whitelist_lock.is_empty()&lt;br/&gt;                || public_keys(&amp;amp;event.tags).any(|p| whitelist_lock.contains(p))&lt;br/&gt;            {&lt;br/&gt;                return Some(WritePolicyResult::Accept);&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            Some(WritePolicyResult::blocked_reject(&lt;br/&gt;                &amp;#34;this public key is not whitelisted&amp;#34;,&lt;br/&gt;            ))&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl RelayPlugin for KindWhitelist {&lt;br/&gt;    fn check_event&amp;lt;&amp;#39;a&amp;gt;(&amp;amp;&amp;#39;a self, event: &amp;amp;&amp;#39;a Event) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, Option&amp;lt;WritePolicyResult&amp;gt;&amp;gt; {&lt;br/&gt;        Box::pin(async {&lt;br/&gt;            if self.0.is_empty() || self.0.contains(&amp;amp;event.kind) {&lt;br/&gt;                return Some(WritePolicyResult::Accept);&lt;br/&gt;            }&lt;br/&gt;            Some(WritePolicyResult::blocked_reject(&amp;#34;not allowed event kind&amp;#34;))&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl RelayPlugin for KindBlacklist {&lt;br/&gt;    fn check_event&amp;lt;&amp;#39;a&amp;gt;(&amp;amp;&amp;#39;a self, event: &amp;amp;&amp;#39;a Event) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, Option&amp;lt;WritePolicyResult&amp;gt;&amp;gt; {&lt;br/&gt;        Box::pin(async {&lt;br/&gt;            if !self.0.contains(&amp;amp;event.kind) {&lt;br/&gt;                return Some(WritePolicyResult::Accept);&lt;br/&gt;            }&lt;br/&gt;            Some(WritePolicyResult::blocked_reject(&amp;#34;event kind is blocked&amp;#34;))&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Returns all the public keys in the tags&lt;br/&gt;#[inline]&lt;br/&gt;fn public_keys(tags: &amp;amp;Tags) -&amp;gt; impl Iterator&amp;lt;Item = &amp;amp;PublicKey&amp;gt; {&lt;br/&gt;    tags.iter().filter_map(|tag| {&lt;br/&gt;        match tag.as_standardized()? {&lt;br/&gt;            TagStandard::PublicKey { public_key, .. } =&amp;gt; Some(public_key),&lt;br/&gt;            TagStandard::PublicKeyReport(pkey, ..) =&amp;gt; Some(pkey),&lt;br/&gt;            TagStandard::Coordinate { coordinate, .. } =&amp;gt; Some(&amp;amp;coordinate.public_key),&lt;br/&gt;            _ =&amp;gt; None,&lt;br/&gt;        }&lt;br/&gt;    })&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqswncywp0z6354jv0uzp7dpznm3lj77ww6jaklllutw97n4sekm5ggzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77np86w3</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqswncywp0z6354jv0uzp7dpznm3lj77ww6jaklllutw97n4sekm5ggzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77np86w3" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::sync::Arc;&lt;br/&gt;&lt;br/&gt;use parking_lot::RwLock;&lt;br/&gt;use serde::Deserialize;&lt;br/&gt;use strum::VariantNames;&lt;br/&gt;&lt;br/&gt;use crate::{&lt;br/&gt;    endpoints::nip86::{&lt;br/&gt;        errors::ApiResult,&lt;br/&gt;        params::{KindParam, PubKeyWithReason, PublicKeyParam, StringParam, UrlParam},&lt;br/&gt;        responses::Nip86Result,&lt;br/&gt;    },&lt;br/&gt;    router_state::RouterState,&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;type EmptyParams = [u8; 0];&lt;br/&gt;&lt;br/&gt;/// The request body of the API&lt;br/&gt;#[derive(Deserialize, VariantNames)]&lt;br/&gt;#[serde(rename_all = &amp;#34;lowercase&amp;#34;, tag = &amp;#34;method&amp;#34;)]&lt;br/&gt;#[strum(serialize_all = &amp;#34;lowercase&amp;#34;)]&lt;br/&gt;#[allow(dead_code)] // `EmptyParams` will never read&lt;br/&gt;pub enum Nip86Request {&lt;br/&gt;    SupportedMethods { params: EmptyParams },&lt;br/&gt;    ChangeRelayName { params: StringParam },&lt;br/&gt;    ChangeRelayDescription { params: StringParam },&lt;br/&gt;    ChangeRelayIcon { params: UrlParam },&lt;br/&gt;    ChangeRelayBanner { params: UrlParam },&lt;br/&gt;    AllowPubkey { params: PubKeyWithReason },&lt;br/&gt;    AllowKind { params: KindParam },&lt;br/&gt;    AddAdmin { params: PublicKeyParam },&lt;br/&gt;    BanPubkey { params: PubKeyWithReason },&lt;br/&gt;    DisallowKind { params: KindParam },&lt;br/&gt;    RemoveAdmin { params: PublicKeyParam },&lt;br/&gt;    ListAllowedPubkeys { params: EmptyParams },&lt;br/&gt;    ListBannedPubkeys { params: EmptyParams },&lt;br/&gt;    ListAllowedKinds { params: EmptyParams },&lt;br/&gt;    ListDisallowedKinds { params: EmptyParams },&lt;br/&gt;    ListAdmins { params: EmptyParams },&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl Nip86Request {&lt;br/&gt;    /// Processes the request and returns the response.&lt;br/&gt;    pub async fn run(self, state: Arc&amp;lt;RouterState&amp;gt;) -&amp;gt; ApiResult&amp;lt;Nip86Result&amp;gt; {&lt;br/&gt;        match self {&lt;br/&gt;            Nip86Request::SupportedMethods { .. } =&amp;gt; {&lt;br/&gt;                Ok(Nip86Result::SupportedMethods(Self::VARIANTS))&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::ChangeRelayName {&lt;br/&gt;                params: StringParam(new_name),&lt;br/&gt;            } =&amp;gt; {&lt;br/&gt;                *state.config.nip11.name.write() = Some(new_name);&lt;br/&gt;                Ok(Nip86Result::True)&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::ChangeRelayDescription {&lt;br/&gt;                params: StringParam(new_description),&lt;br/&gt;            } =&amp;gt; {&lt;br/&gt;                *state.config.nip11.description.write() = Some(new_description);&lt;br/&gt;                Ok(Nip86Result::True)&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::ChangeRelayIcon {&lt;br/&gt;                params: UrlParam(new_icon),&lt;br/&gt;            } =&amp;gt; {&lt;br/&gt;                *state.config.nip11.icon.write() = Some(new_icon);&lt;br/&gt;                Ok(Nip86Result::True)&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::ChangeRelayBanner {&lt;br/&gt;                params: UrlParam(new_banner),&lt;br/&gt;            } =&amp;gt; {&lt;br/&gt;                *state.config.nip11.banner.write() = Some(new_banner);&lt;br/&gt;                Ok(Nip86Result::True)&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::AllowPubkey { params } =&amp;gt; {&lt;br/&gt;                list_value(&lt;br/&gt;                    Some(Arc::clone(&amp;amp;state.config.relay.whitelist)),&lt;br/&gt;                    Some(Arc::clone(&amp;amp;state.config.relay.blacklist)),&lt;br/&gt;                    params.pubkey,&lt;br/&gt;                )&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::BanPubkey { params } =&amp;gt; {&lt;br/&gt;                list_value(&lt;br/&gt;                    Some(Arc::clone(&amp;amp;state.config.relay.blacklist)),&lt;br/&gt;                    Some(Arc::clone(&amp;amp;state.config.relay.whitelist)),&lt;br/&gt;                    params.pubkey,&lt;br/&gt;                )&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::AllowKind {&lt;br/&gt;                params: KindParam(kind),&lt;br/&gt;            } =&amp;gt; {&lt;br/&gt;                list_value(&lt;br/&gt;                    Some(Arc::clone(&amp;amp;state.config.relay.allowed_kinds)),&lt;br/&gt;                    Some(Arc::clone(&amp;amp;state.config.relay.disallowed_kinds)),&lt;br/&gt;                    kind,&lt;br/&gt;                )&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::DisallowKind {&lt;br/&gt;                params: KindParam(kind),&lt;br/&gt;            } =&amp;gt; {&lt;br/&gt;                list_value(&lt;br/&gt;                    Some(Arc::clone(&amp;amp;state.config.relay.disallowed_kinds)),&lt;br/&gt;                    Some(Arc::clone(&amp;amp;state.config.relay.allowed_kinds)),&lt;br/&gt;                    kind,&lt;br/&gt;                )&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::AddAdmin {&lt;br/&gt;                params: PublicKeyParam(pkey),&lt;br/&gt;            } =&amp;gt; list_value(Some(Arc::clone(&amp;amp;state.config.relay.admins)), None, pkey),&lt;br/&gt;            Nip86Request::RemoveAdmin {&lt;br/&gt;                params: PublicKeyParam(pkey),&lt;br/&gt;            } =&amp;gt; list_value(None, Some(Arc::clone(&amp;amp;state.config.relay.admins)), pkey),&lt;br/&gt;            Nip86Request::ListAllowedPubkeys { .. } =&amp;gt; {&lt;br/&gt;                list_values(Arc::clone(&amp;amp;state.config.relay.whitelist), |pkeys| {&lt;br/&gt;                    Nip86Result::PublicKeysAndReason(&lt;br/&gt;                        pkeys.into_iter().map(PubKeyWithReason::from).collect(),&lt;br/&gt;                    )&lt;br/&gt;                })&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::ListBannedPubkeys { .. } =&amp;gt; {&lt;br/&gt;                list_values(Arc::clone(&amp;amp;state.config.relay.blacklist), |pkeys| {&lt;br/&gt;                    Nip86Result::PublicKeysAndReason(&lt;br/&gt;                        pkeys.into_iter().map(PubKeyWithReason::from).collect(),&lt;br/&gt;                    )&lt;br/&gt;                })&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::ListAllowedKinds { .. } =&amp;gt; {&lt;br/&gt;                list_values(&lt;br/&gt;                    Arc::clone(&amp;amp;state.config.relay.allowed_kinds),&lt;br/&gt;                    Nip86Result::Kinds,&lt;br/&gt;                )&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::ListDisallowedKinds { .. } =&amp;gt; {&lt;br/&gt;                list_values(&lt;br/&gt;                    Arc::clone(&amp;amp;state.config.relay.disallowed_kinds),&lt;br/&gt;                    Nip86Result::Kinds,&lt;br/&gt;                )&lt;br/&gt;            }&lt;br/&gt;            Nip86Request::ListAdmins { .. } =&amp;gt; {&lt;br/&gt;                list_values(&lt;br/&gt;                    Arc::clone(&amp;amp;state.config.relay.admins),&lt;br/&gt;                    Nip86Result::PublicKeys,&lt;br/&gt;                )&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Checks if the request can only be performed by the super admin (the&lt;br/&gt;    /// first admin in the list).&lt;br/&gt;    #[inline]&lt;br/&gt;    pub fn only_superadmin(&amp;amp;self) -&amp;gt; bool {&lt;br/&gt;        matches!(&lt;br/&gt;            self,&lt;br/&gt;            Self::AddAdmin { .. } | Self::RemoveAdmin { .. } | Self::ListAdmins { .. }&lt;br/&gt;        )&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Adds a value to either the whitelist or blacklist, perhaps :).&lt;br/&gt;fn list_value&amp;lt;T: PartialEq&amp;gt;(&lt;br/&gt;    add_to: Option&amp;lt;Arc&amp;lt;RwLock&amp;lt;Vec&amp;lt;T&amp;gt;&amp;gt;&amp;gt;&amp;gt;,&lt;br/&gt;    remove_from: Option&amp;lt;Arc&amp;lt;RwLock&amp;lt;Vec&amp;lt;T&amp;gt;&amp;gt;&amp;gt;&amp;gt;,&lt;br/&gt;    value: T,&lt;br/&gt;) -&amp;gt; ApiResult&amp;lt;Nip86Result&amp;gt; {&lt;br/&gt;    if let Some(remove_from) = remove_from {&lt;br/&gt;        let mut remove_from_lock = remove_from.write();&lt;br/&gt;        if remove_from_lock.contains(&amp;amp;value) {&lt;br/&gt;            remove_from_lock.retain(|p| p != &amp;amp;value)&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    if let Some(add_to) = add_to {&lt;br/&gt;        let mut add_to_lock = add_to.write();&lt;br/&gt;        if !add_to_lock.contains(&amp;amp;value) {&lt;br/&gt;            add_to_lock.push(value);&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    Ok(Nip86Result::True)&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// List values. Whitelist or blacklist, perhaps :)&lt;br/&gt;fn list_values&amp;lt;T: Copy&amp;gt;(&lt;br/&gt;    list_from: Arc&amp;lt;RwLock&amp;lt;Vec&amp;lt;T&amp;gt;&amp;gt;&amp;gt;,&lt;br/&gt;    result_fn: impl FnOnce(Vec&amp;lt;T&amp;gt;) -&amp;gt; Nip86Result,&lt;br/&gt;) -&amp;gt; ApiResult&amp;lt;Nip86Result&amp;gt; {&lt;br/&gt;    Ok(result_fn(list_from.read().iter().copied().collect()))&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsw3fef4m0vjqf5mnxas2wvale385j0yc9dv3zfm2rax8lpfa0rcjczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77trz54x</id>
    
      <title type="html">unstable_features = true style_edition = &amp;#34;2024&amp;#34; ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsw3fef4m0vjqf5mnxas2wvale385j0yc9dv3zfm2rax8lpfa0rcjczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77trz54x" />
    <content type="html">
      unstable_features = true&lt;br/&gt;style_edition     = &amp;#34;2024&amp;#34;&lt;br/&gt;&lt;br/&gt;blank_lines_upper_bound        = 2&lt;br/&gt;combine_control_expr           = false&lt;br/&gt;wrap_comments                  = true&lt;br/&gt;condense_wildcard_suffixes     = true&lt;br/&gt;edition                        = &amp;#34;2024&amp;#34;&lt;br/&gt;enum_discrim_align_threshold   = 20&lt;br/&gt;force_multiline_blocks         = true&lt;br/&gt;format_code_in_doc_comments    = true&lt;br/&gt;format_generated_files         = false&lt;br/&gt;format_macro_matchers          = true&lt;br/&gt;format_strings                 = true&lt;br/&gt;imports_layout                 = &amp;#34;HorizontalVertical&amp;#34;&lt;br/&gt;newline_style                  = &amp;#34;Unix&amp;#34;&lt;br/&gt;normalize_comments             = true&lt;br/&gt;reorder_impl_items             = true&lt;br/&gt;group_imports                  = &amp;#34;StdExternalCrate&amp;#34;&lt;br/&gt;single_line_let_else_max_width = 0&lt;br/&gt;struct_field_align_threshold   = 20&lt;br/&gt;use_try_shorthand              = true&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqswsqa3yczauj2vgs35c6m4nnagnc8v0d6z96lmxrg6c0sap72eglszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77x65w75</id>
    
      <title>Nostr event nevent1qqswsqa3yczauj2vgs35c6m4nnagnc8v0d6z96lmxrg6c0sap72eglszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77x65w75</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqswsqa3yczauj2vgs35c6m4nnagnc8v0d6z96lmxrg6c0sap72eglszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77x65w75" />
    <content type="html">
      
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsw0l6tx35n0cg6eenr0r670qfw5ghgfdhgwwznjtd2zy657gmdevgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77h7lu2d</id>
    
      <title type="html">use rand_chacha::ChaCha20Rng; use ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsw0l6tx35n0cg6eenr0r670qfw5ghgfdhgwwznjtd2zy657gmdevgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77h7lu2d" />
    <content type="html">
      use rand_chacha::ChaCha20Rng;&lt;br/&gt;use rand_chacha::rand_core::SeedableRng;&lt;br/&gt;use frost_secp256k1_tr as frost;&lt;br/&gt;use frost::{Identifier, keys::IdentifierList, round1, round2};&lt;br/&gt;use std::collections::BTreeMap;&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    // 1. Dealer Setup&lt;br/&gt;    let mut dealer_rng = ChaCha20Rng::from_seed([0u8; 32]);&lt;br/&gt;    let min_signers = 2;&lt;br/&gt;    let (shares, pubkey_package) = frost::keys::generate_with_dealer(&lt;br/&gt;        3, min_signers, IdentifierList::Default, &amp;amp;mut dealer_rng&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    // 2. Setup Participant Identifiers&lt;br/&gt;    let p1_id = Identifier::try_from(1u16)?;&lt;br/&gt;    let p2_id = Identifier::try_from(2u16)?;&lt;br/&gt;&lt;br/&gt;    // 3. Construct KeyPackages manually for RC.0&lt;br/&gt;    let p1_verifying_share = frost::keys::VerifyingShare::from(*shares[&amp;amp;p1_id].signing_share());&lt;br/&gt;    let p1_key_package = frost::keys::KeyPackage::new(&lt;br/&gt;        p1_id,&lt;br/&gt;        *shares[&amp;amp;p1_id].signing_share(),&lt;br/&gt;        p1_verifying_share,&lt;br/&gt;        *pubkey_package.verifying_key(),&lt;br/&gt;        min_signers,&lt;br/&gt;    );&lt;br/&gt;&lt;br/&gt;    let p2_verifying_share = frost::keys::VerifyingShare::from(*shares[&amp;amp;p2_id].signing_share());&lt;br/&gt;    let p2_key_package = frost::keys::KeyPackage::new(&lt;br/&gt;        p2_id,&lt;br/&gt;        *shares[&amp;amp;p2_id].signing_share(),&lt;br/&gt;        p2_verifying_share,&lt;br/&gt;        *pubkey_package.verifying_key(),&lt;br/&gt;        min_signers,&lt;br/&gt;    );&lt;br/&gt;&lt;br/&gt;    // 4. Round 1: Commitments&lt;br/&gt;    let mut rng1 = ChaCha20Rng::from_seed([1u8; 32]);&lt;br/&gt;    let (p1_nonces, p1_commitments) = round1::commit(p1_key_package.signing_share(), &amp;amp;mut rng1);&lt;br/&gt;&lt;br/&gt;    let mut rng2 = ChaCha20Rng::from_seed([2u8; 32]);&lt;br/&gt;    let (p2_nonces, p2_commitments) = round1::commit(p2_key_package.signing_share(), &amp;amp;mut rng2);&lt;br/&gt;&lt;br/&gt;    // 5. Coordinator: Signing Package&lt;br/&gt;    let message = b&amp;#34;gnostr-commit-7445bd727dbce5bac004861a45c35ccd4f4a195bfb1cc39f2a7c9fd3aa3b6547&amp;#34;;&lt;br/&gt;    let mut commitments_map = BTreeMap::new();&lt;br/&gt;    commitments_map.insert(p1_id, p1_commitments);&lt;br/&gt;    commitments_map.insert(p2_id, p2_commitments);&lt;br/&gt;&lt;br/&gt;    let signing_package = frost::SigningPackage::new(commitments_map, message);&lt;br/&gt;&lt;br/&gt;    // 6. Round 2: Partial Signatures&lt;br/&gt;    let p1_signature_share = round2::sign(&amp;amp;signing_package, &amp;amp;p1_nonces, &amp;amp;p1_key_package)?;&lt;br/&gt;    let p2_signature_share = round2::sign(&amp;amp;signing_package, &amp;amp;p2_nonces, &amp;amp;p2_key_package)?;&lt;br/&gt;&lt;br/&gt;    // 7. Aggregation&lt;br/&gt;    let mut signature_shares = BTreeMap::new();&lt;br/&gt;    signature_shares.insert(p1_id, p1_signature_share);&lt;br/&gt;    signature_shares.insert(p2_id, p2_signature_share);&lt;br/&gt;&lt;br/&gt;    let group_signature = frost::aggregate(&amp;amp;signing_package, &amp;amp;signature_shares, &amp;amp;pubkey_package)?;&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;--- BIP-64MOD Aggregated Signature ---&amp;#34;);&lt;br/&gt;    println!(&amp;#34;Final Signature (Hex): {}&amp;#34;, hex::encode(group_signature.serialize()?));&lt;br/&gt;&lt;br/&gt;    // Final Verification&lt;br/&gt;    pubkey_package.verifying_key().verify(message, &amp;amp;group_signature)?;&lt;br/&gt;    println!(&amp;#34;🛡️  Signature is valid for the 2nd generation group!&amp;#34;);&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() { println!(&amp;#34;Run with --features nostr&amp;#34;); }&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsww06n4vawhsmj8mhct4qa2djlchxpezynwzzj6rz9xhrvgc3mxyszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk777a6p7z</id>
    
      <title type="html">use rand_chacha::ChaCha20Rng; use ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsww06n4vawhsmj8mhct4qa2djlchxpezynwzzj6rz9xhrvgc3mxyszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk777a6p7z" />
    <content type="html">
      use rand_chacha::ChaCha20Rng;&lt;br/&gt;use rand_chacha::rand_core::SeedableRng;&lt;br/&gt;use frost_secp256k1_tr as frost;&lt;br/&gt;use frost::{Identifier, keys::IdentifierList};&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    // 1. We need the dealer setup first to get a real SigningShare&lt;br/&gt;    let dealer_seed = [0u8; 32]; &lt;br/&gt;    let mut dealer_rng = ChaCha20Rng::from_seed(dealer_seed);&lt;br/&gt;    &lt;br/&gt;    let (shares, _pubkey_package) = frost::keys::generate_with_dealer(&lt;br/&gt;        3, 2, IdentifierList::Default, &amp;amp;mut dealer_rng&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    // 2. Setup nonce RNG&lt;br/&gt;    let nonce_seed = [1u8; 32]; &lt;br/&gt;    let mut rng = ChaCha20Rng::from_seed(nonce_seed);&lt;br/&gt;&lt;br/&gt;    // 3. Get Participant 1&amp;#39;s share&lt;br/&gt;    let p1_id = Identifier::try_from(1u16)?;&lt;br/&gt;    let p1_share = shares.get(&amp;amp;p1_id).ok_or(&amp;#34;Share not found&amp;#34;)?;&lt;br/&gt;&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    // Round 1: Commitments &amp;amp; Nonces&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    &lt;br/&gt;    // In RC.0, commit() requires the secret share reference&lt;br/&gt;    let (p1_nonces, p1_commitments) = frost::round1::commit(p1_share.signing_share(), &amp;amp;mut rng);&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;--- BIP-64MOD Round 1: Nonce Generation ---&amp;#34;);&lt;br/&gt;    println!(&amp;#34;Participant Identifier: {:?}&amp;#34;, p1_id);&lt;br/&gt;    &lt;br/&gt;    // 4. Handle Results for serialization&lt;br/&gt;    println!(&amp;#34;\nPublic Signing Commitments (To be shared):&amp;#34;);&lt;br/&gt;    println!(&amp;#34;  Hiding:  {}&amp;#34;, hex::encode(p1_commitments.hiding().serialize()?));&lt;br/&gt;    println!(&amp;#34;  Binding: {}&amp;#34;, hex::encode(p1_commitments.binding().serialize()?));&lt;br/&gt;&lt;br/&gt;    // Keep nonces in memory for the next step&lt;br/&gt;    let _p1_secret_nonces = p1_nonces; &lt;br/&gt;    &lt;br/&gt;    println!(&amp;#34;\n✅ Nonces generated and tied to Participant 1&amp;#39;s share.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;Run with --features nostr to enable this example.&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqswyre8235xpdzu4fwvzdtsshf0quj9vhev6hlvsvwg8n05pe7epeczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77e2waqg</id>
    
      <title type="html">GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqswyre8235xpdzu4fwvzdtsshf0quj9vhev6hlvsvwg8n05pe7epeczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77e2waqg" />
    <content type="html">
                          GNU AFFERO GENERAL PUBLIC LICENSE&lt;br/&gt;                       Version 3, 19 November 2007&lt;br/&gt;&lt;br/&gt; Copyright (C) 2007 Free Software Foundation, Inc. &amp;lt;&lt;a href=&#34;https://fsf.org/&amp;gt&#34;&gt;https://fsf.org/&amp;gt&lt;/a&gt;;&lt;br/&gt; Everyone is permitted to copy and distribute verbatim copies&lt;br/&gt; of this license document, but changing it is not allowed.&lt;br/&gt;&lt;br/&gt;                            Preamble&lt;br/&gt;&lt;br/&gt;  The GNU Affero General Public License is a free, copyleft license for&lt;br/&gt;software and other kinds of works, specifically designed to ensure&lt;br/&gt;cooperation with the community in the case of network server software.&lt;br/&gt;&lt;br/&gt;  The licenses for most software and other practical works are designed&lt;br/&gt;to take away your freedom to share and change the works.  By contrast,&lt;br/&gt;our General Public Licenses are intended to guarantee your freedom to&lt;br/&gt;share and change all versions of a program--to make sure it remains free&lt;br/&gt;software for all its users.&lt;br/&gt;&lt;br/&gt;  When we speak of free software, we are referring to freedom, not&lt;br/&gt;price.  Our General Public Licenses are designed to make sure that you&lt;br/&gt;have the freedom to distribute copies of free software (and charge for&lt;br/&gt;them if you wish), that you receive source code or can get it if you&lt;br/&gt;want it, that you can change the software or use pieces of it in new&lt;br/&gt;free programs, and that you know you can do these things.&lt;br/&gt;&lt;br/&gt;  Developers that use our General Public Licenses protect your rights&lt;br/&gt;with two steps: (1) assert copyright on the software, and (2) offer&lt;br/&gt;you this License which gives you legal permission to copy, distribute&lt;br/&gt;and/or modify the software.&lt;br/&gt;&lt;br/&gt;  A secondary benefit of defending all users&amp;#39; freedom is that&lt;br/&gt;improvements made in alternate versions of the program, if they&lt;br/&gt;receive widespread use, become available for other developers to&lt;br/&gt;incorporate.  Many developers of free software are heartened and&lt;br/&gt;encouraged by the resulting cooperation.  However, in the case of&lt;br/&gt;software used on network servers, this result may fail to come about.&lt;br/&gt;The GNU General Public License permits making a modified version and&lt;br/&gt;letting the public access it on a server without ever releasing its&lt;br/&gt;source code to the public.&lt;br/&gt;&lt;br/&gt;  The GNU Affero General Public License is designed specifically to&lt;br/&gt;ensure that, in such cases, the modified source code becomes available&lt;br/&gt;to the community.  It requires the operator of a network server to&lt;br/&gt;provide the source code of the modified version running there to the&lt;br/&gt;users of that server.  Therefore, public use of a modified version, on&lt;br/&gt;a publicly accessible server, gives the public access to the source&lt;br/&gt;code of the modified version.&lt;br/&gt;&lt;br/&gt;  An older license, called the Affero General Public License and&lt;br/&gt;published by Affero, was designed to accomplish similar goals.  This is&lt;br/&gt;a different license, not a version of the Affero GPL, but Affero has&lt;br/&gt;released a new version of the Affero GPL which permits relicensing under&lt;br/&gt;this license.&lt;br/&gt;&lt;br/&gt;  The precise terms and conditions for copying, distribution and&lt;br/&gt;modification follow.&lt;br/&gt;&lt;br/&gt;                       TERMS AND CONDITIONS&lt;br/&gt;&lt;br/&gt;  0. Definitions.&lt;br/&gt;&lt;br/&gt;  &amp;#34;This License&amp;#34; refers to version 3 of the GNU Affero General Public License.&lt;br/&gt;&lt;br/&gt;  &amp;#34;Copyright&amp;#34; also means copyright-like laws that apply to other kinds of&lt;br/&gt;works, such as semiconductor masks.&lt;br/&gt;&lt;br/&gt;  &amp;#34;The Program&amp;#34; refers to any copyrightable work licensed under this&lt;br/&gt;License.  Each licensee is addressed as &amp;#34;you&amp;#34;.  &amp;#34;Licensees&amp;#34; and&lt;br/&gt;&amp;#34;recipients&amp;#34; may be individuals or organizations.&lt;br/&gt;&lt;br/&gt;  To &amp;#34;modify&amp;#34; a work means to copy from or adapt all or part of the work&lt;br/&gt;in a fashion requiring copyright permission, other than the making of an&lt;br/&gt;exact copy.  The resulting work is called a &amp;#34;modified version&amp;#34; of the&lt;br/&gt;earlier work or a work &amp;#34;based on&amp;#34; the earlier work.&lt;br/&gt;&lt;br/&gt;  A &amp;#34;covered work&amp;#34; means either the unmodified Program or a work based&lt;br/&gt;on the Program.&lt;br/&gt;&lt;br/&gt;  To &amp;#34;propagate&amp;#34; a work means to do anything with it that, without&lt;br/&gt;permission, would make you directly or secondarily liable for&lt;br/&gt;infringement under applicable copyright law, except executing it on a&lt;br/&gt;computer or modifying a private copy.  Propagation includes copying,&lt;br/&gt;distribution (with or without modification), making available to the&lt;br/&gt;public, and in some countries other activities as well.&lt;br/&gt;&lt;br/&gt;  To &amp;#34;convey&amp;#34; a work means any kind of propagation that enables other&lt;br/&gt;parties to make or receive copies.  Mere interaction with a user through&lt;br/&gt;a computer network, with no transfer of a copy, is not conveying.&lt;br/&gt;&lt;br/&gt;  An interactive user interface displays &amp;#34;Appropriate Legal Notices&amp;#34;&lt;br/&gt;to the extent that it includes a convenient and prominently visible&lt;br/&gt;feature that (1) displays an appropriate copyright notice, and (2)&lt;br/&gt;tells the user that there is no warranty for the work (except to the&lt;br/&gt;extent that warranties are provided), that licensees may convey the&lt;br/&gt;work under this License, and how to view a copy of this License.  If&lt;br/&gt;the interface presents a list of user commands or options, such as a&lt;br/&gt;menu, a prominent item in the list meets this criterion.&lt;br/&gt;&lt;br/&gt;  1. Source Code.&lt;br/&gt;&lt;br/&gt;  The &amp;#34;source code&amp;#34; for a work means the preferred form of the work&lt;br/&gt;for making modifications to it.  &amp;#34;Object code&amp;#34; means any non-source&lt;br/&gt;form of a work.&lt;br/&gt;&lt;br/&gt;  A &amp;#34;Standard Interface&amp;#34; means an interface that either is an official&lt;br/&gt;standard defined by a recognized standards body, or, in the case of&lt;br/&gt;interfaces specified for a particular programming language, one that&lt;br/&gt;is widely used among developers working in that language.&lt;br/&gt;&lt;br/&gt;  The &amp;#34;System Libraries&amp;#34; of an executable work include anything, other&lt;br/&gt;than the work as a whole, that (a) is included in the normal form of&lt;br/&gt;packaging a Major Component, but which is not part of that Major&lt;br/&gt;Component, and (b) serves only to enable use of the work with that&lt;br/&gt;Major Component, or to implement a Standard Interface for which an&lt;br/&gt;implementation is available to the public in source code form.  A&lt;br/&gt;&amp;#34;Major Component&amp;#34;, in this context, means a major essential component&lt;br/&gt;(kernel, window system, and so on) of the specific operating system&lt;br/&gt;(if any) on which the executable work runs, or a compiler used to&lt;br/&gt;produce the work, or an object code interpreter used to run it.&lt;br/&gt;&lt;br/&gt;  The &amp;#34;Corresponding Source&amp;#34; for a work in object code form means all&lt;br/&gt;the source code needed to generate, install, and (for an executable&lt;br/&gt;work) run the object code and to modify the work, including scripts to&lt;br/&gt;control those activities.  However, it does not include the work&amp;#39;s&lt;br/&gt;System Libraries, or general-purpose tools or generally available free&lt;br/&gt;programs which are used unmodified in performing those activities but&lt;br/&gt;which are not part of the work.  For example, Corresponding Source&lt;br/&gt;includes interface definition files associated with source files for&lt;br/&gt;the work, and the source code for shared libraries and dynamically&lt;br/&gt;linked subprograms that the work is specifically designed to require,&lt;br/&gt;such as by intimate data communication or control flow between those&lt;br/&gt;subprograms and other parts of the work.&lt;br/&gt;&lt;br/&gt;  The Corresponding Source need not include anything that users&lt;br/&gt;can regenerate automatically from other parts of the Corresponding&lt;br/&gt;Source.&lt;br/&gt;&lt;br/&gt;  The Corresponding Source for a work in source code form is that&lt;br/&gt;same work.&lt;br/&gt;&lt;br/&gt;  2. Basic Permissions.&lt;br/&gt;&lt;br/&gt;  All rights granted under this License are granted for the term of&lt;br/&gt;copyright on the Program, and are irrevocable provided the stated&lt;br/&gt;conditions are met.  This License explicitly affirms your unlimited&lt;br/&gt;permission to run the unmodified Program.  The output from running a&lt;br/&gt;covered work is covered by this License only if the output, given its&lt;br/&gt;content, constitutes a covered work.  This License acknowledges your&lt;br/&gt;rights of fair use or other equivalent, as provided by copyright law.&lt;br/&gt;&lt;br/&gt;  You may make, run and propagate covered works that you do not&lt;br/&gt;convey, without conditions so long as your license otherwise remains&lt;br/&gt;in force.  You may convey covered works to others for the sole purpose&lt;br/&gt;of having them make modifications exclusively for you, or provide you&lt;br/&gt;with facilities for running those works, provided that you comply with&lt;br/&gt;the terms of this License in conveying all material for which you do&lt;br/&gt;not control copyright.  Those thus making or running the covered works&lt;br/&gt;for you must do so exclusively on your behalf, under your direction&lt;br/&gt;and control, on terms that prohibit them from making any copies of&lt;br/&gt;your copyrighted material outside their relationship with you.&lt;br/&gt;&lt;br/&gt;  Conveying under any other circumstances is permitted solely under&lt;br/&gt;the conditions stated below.  Sublicensing is not allowed; section 10&lt;br/&gt;makes it unnecessary.&lt;br/&gt;&lt;br/&gt;  3. Protecting Users&amp;#39; Legal Rights From Anti-Circumvention Law.&lt;br/&gt;&lt;br/&gt;  No covered work shall be deemed part of an effective technological&lt;br/&gt;measure under any applicable law fulfilling obligations under article&lt;br/&gt;11 of the WIPO copyright treaty adopted on 20 December 1996, or&lt;br/&gt;similar laws prohibiting or restricting circumvention of such&lt;br/&gt;measures.&lt;br/&gt;&lt;br/&gt;  When you convey a covered work, you waive any legal power to forbid&lt;br/&gt;circumvention of technological measures to the extent such circumvention&lt;br/&gt;is effected by exercising rights under this License with respect to&lt;br/&gt;the covered work, and you disclaim any intention to limit operation or&lt;br/&gt;modification of the work as a means of enforcing, against the work&amp;#39;s&lt;br/&gt;users, your or third parties&amp;#39; legal rights to forbid circumvention of&lt;br/&gt;technological measures.&lt;br/&gt;&lt;br/&gt;  4. Conveying Verbatim Copies.&lt;br/&gt;&lt;br/&gt;  You may convey verbatim copies of the Program&amp;#39;s source code as you&lt;br/&gt;receive it, in any medium, provided that you conspicuously and&lt;br/&gt;appropriately publish on each copy an appropriate copyright notice;&lt;br/&gt;keep intact all notices stating that this License and any&lt;br/&gt;non-permissive terms added in accord with section 7 apply to the code;&lt;br/&gt;keep intact all notices of the absence of any warranty; and give all&lt;br/&gt;recipients a copy of this License along with the Program.&lt;br/&gt;&lt;br/&gt;  You may charge any price or no price for each copy that you convey,&lt;br/&gt;and you may offer support or warranty protection for a fee.&lt;br/&gt;&lt;br/&gt;  5. Conveying Modified Source Versions.&lt;br/&gt;&lt;br/&gt;  You may convey a work based on the Program, or the modifications to&lt;br/&gt;produce it from the Program, in the form of source code under the&lt;br/&gt;terms of section 4, provided that you also meet all of these conditions:&lt;br/&gt;&lt;br/&gt;    a) The work must carry prominent notices stating that you modified&lt;br/&gt;    it, and giving a relevant date.&lt;br/&gt;&lt;br/&gt;    b) The work must carry prominent notices stating that it is&lt;br/&gt;    released under this License and any conditions added under section&lt;br/&gt;    7.  This requirement modifies the requirement in section 4 to&lt;br/&gt;    &amp;#34;keep intact all notices&amp;#34;.&lt;br/&gt;&lt;br/&gt;    c) You must license the entire work, as a whole, under this&lt;br/&gt;    License to anyone who comes into possession of a copy.  This&lt;br/&gt;    License will therefore apply, along with any applicable section 7&lt;br/&gt;    additional terms, to the whole of the work, and all its parts,&lt;br/&gt;    regardless of how they are packaged.  This License gives no&lt;br/&gt;    permission to license the work in any other way, but it does not&lt;br/&gt;    invalidate such permission if you have separately received it.&lt;br/&gt;&lt;br/&gt;    d) If the work has interactive user interfaces, each must display&lt;br/&gt;    Appropriate Legal Notices; however, if the Program has interactive&lt;br/&gt;    interfaces that do not display Appropriate Legal Notices, your&lt;br/&gt;    work need not make them do so.&lt;br/&gt;&lt;br/&gt;  A compilation of a covered work with other separate and independent&lt;br/&gt;works, which are not by their nature extensions of the covered work,&lt;br/&gt;and which are not combined with it such as to form a larger program,&lt;br/&gt;in or on a volume of a storage or distribution medium, is called an&lt;br/&gt;&amp;#34;aggregate&amp;#34; if the compilation and its resulting copyright are not&lt;br/&gt;used to limit the access or legal rights of the compilation&amp;#39;s users&lt;br/&gt;beyond what the individual works permit.  Inclusion of a covered work&lt;br/&gt;in an aggregate does not cause this License to apply to the other&lt;br/&gt;parts of the aggregate.&lt;br/&gt;&lt;br/&gt;  6. Conveying Non-Source Forms.&lt;br/&gt;&lt;br/&gt;  You may convey a covered work in object code form under the terms&lt;br/&gt;of sections 4 and 5, provided that you also convey the&lt;br/&gt;machine-readable Corresponding Source under the terms of this License,&lt;br/&gt;in one of these ways:&lt;br/&gt;&lt;br/&gt;    a) Convey the object code in, or embodied in, a physical product&lt;br/&gt;    (including a physical distribution medium), accompanied by the&lt;br/&gt;    Corresponding Source fixed on a durable physical medium&lt;br/&gt;    customarily used for software interchange.&lt;br/&gt;&lt;br/&gt;    b) Convey the object code in, or embodied in, a physical product&lt;br/&gt;    (including a physical distribution medium), accompanied by a&lt;br/&gt;    written offer, valid for at least three years and valid for as&lt;br/&gt;    long as you offer spare parts or customer support for that product&lt;br/&gt;    model, to give anyone who possesses the object code either (1) a&lt;br/&gt;    copy of the Corresponding Source for all the software in the&lt;br/&gt;    product that is covered by this License, on a durable physical&lt;br/&gt;    medium customarily used for software interchange, for a price no&lt;br/&gt;    more than your reasonable cost of physically performing this&lt;br/&gt;    conveying of source, or (2) access to copy the&lt;br/&gt;    Corresponding Source from a network server at no charge.&lt;br/&gt;&lt;br/&gt;    c) Convey individual copies of the object code with a copy of the&lt;br/&gt;    written offer to provide the Corresponding Source.  This&lt;br/&gt;    alternative is allowed only occasionally and noncommercially, and&lt;br/&gt;    only if you received the object code with such an offer, in accord&lt;br/&gt;    with subsection 6b.&lt;br/&gt;&lt;br/&gt;    d) Convey the object code by offering access from a designated&lt;br/&gt;    place (gratis or for a charge), and offer equivalent access to the&lt;br/&gt;    Corresponding Source in the same way through the same place at no&lt;br/&gt;    further charge.  You need not require recipients to copy the&lt;br/&gt;    Corresponding Source along with the object code.  If the place to&lt;br/&gt;    copy the object code is a network server, the Corresponding Source&lt;br/&gt;    may be on a different server (operated by you or a third party)&lt;br/&gt;    that supports equivalent copying facilities, provided you maintain&lt;br/&gt;    clear directions next to the object code saying where to find the&lt;br/&gt;    Corresponding Source.  Regardless of what server hosts the&lt;br/&gt;    Corresponding Source, you remain obligated to ensure that it is&lt;br/&gt;    available for as long as needed to satisfy these requirements.&lt;br/&gt;&lt;br/&gt;    e) Convey the object code using peer-to-peer transmission, provided&lt;br/&gt;    you inform other peers where the object code and Corresponding&lt;br/&gt;    Source of the work are being offered to the general public at no&lt;br/&gt;    charge under subsection 6d.&lt;br/&gt;&lt;br/&gt;  A separable portion of the object code, whose source code is excluded&lt;br/&gt;from the Corresponding Source as a System Library, need not be&lt;br/&gt;included in conveying the object code work.&lt;br/&gt;&lt;br/&gt;  A &amp;#34;User Product&amp;#34; is either (1) a &amp;#34;consumer product&amp;#34;, which means any&lt;br/&gt;tangible personal property which is normally used for personal, family,&lt;br/&gt;or household purposes, or (2) anything designed or sold for incorporation&lt;br/&gt;into a dwelling.  In determining whether a product is a consumer product,&lt;br/&gt;doubtful cases shall be resolved in favor of coverage.  For a particular&lt;br/&gt;product received by a particular user, &amp;#34;normally used&amp;#34; refers to a&lt;br/&gt;typical or common use of that class of product, regardless of the status&lt;br/&gt;of the particular user or of the way in which the particular user&lt;br/&gt;actually uses, or expects or is expected to use, the product.  A product&lt;br/&gt;is a consumer product regardless of whether the product has substantial&lt;br/&gt;commercial, industrial or non-consumer uses, unless such uses represent&lt;br/&gt;the only significant mode of use of the product.&lt;br/&gt;&lt;br/&gt;  &amp;#34;Installation Information&amp;#34; for a User Product means any methods,&lt;br/&gt;procedures, authorization keys, or other information required to install&lt;br/&gt;and execute modified versions of a covered work in that User Product from&lt;br/&gt;a modified version of its Corresponding Source.  The information must&lt;br/&gt;suffice to ensure that the continued functioning of the modified object&lt;br/&gt;code is in no case prevented or interfered with solely because&lt;br/&gt;modification has been made.&lt;br/&gt;&lt;br/&gt;  If you convey an object code work under this section in, or with, or&lt;br/&gt;specifically for use in, a User Product, and the conveying occurs as&lt;br/&gt;part of a transaction in which the right of possession and use of the&lt;br/&gt;User Product is transferred to the recipient in perpetuity or for a&lt;br/&gt;fixed term (regardless of how the transaction is characterized), the&lt;br/&gt;Corresponding Source conveyed under this section must be accompanied&lt;br/&gt;by the Installation Information.  But this requirement does not apply&lt;br/&gt;if neither you nor any third party retains the ability to install&lt;br/&gt;modified object code on the User Product (for example, the work has&lt;br/&gt;been installed in ROM).&lt;br/&gt;&lt;br/&gt;  The requirement to provide Installation Information does not include a&lt;br/&gt;requirement to continue to provide support service, warranty, or updates&lt;br/&gt;for a work that has been modified or installed by the recipient, or for&lt;br/&gt;the User Product in which it has been modified or installed.  Access to a&lt;br/&gt;network may be denied when the modification itself materially and&lt;br/&gt;adversely affects the operation of the network or violates the rules and&lt;br/&gt;protocols for communication across the network.&lt;br/&gt;&lt;br/&gt;  Corresponding Source conveyed, and Installation Information provided,&lt;br/&gt;in accord with this section must be in a format that is publicly&lt;br/&gt;documented (and with an implementation available to the public in&lt;br/&gt;source code form), and must require no special password or key for&lt;br/&gt;unpacking, reading or copying.&lt;br/&gt;&lt;br/&gt;  7. Additional Terms.&lt;br/&gt;&lt;br/&gt;  &amp;#34;Additional permissions&amp;#34; are terms that supplement the terms of this&lt;br/&gt;License by making exceptions from one or more of its conditions.&lt;br/&gt;Additional permissions that are applicable to the entire Program shall&lt;br/&gt;be treated as though they were included in this License, to the extent&lt;br/&gt;that they are valid under applicable law.  If additional permissions&lt;br/&gt;apply only to part of the Program, that part may be used separately&lt;br/&gt;under those permissions, but the entire Program remains governed by&lt;br/&gt;this License without regard to the additional permissions.&lt;br/&gt;&lt;br/&gt;  When you convey a copy of a covered work, you may at your option&lt;br/&gt;remove any additional permissions from that copy, or from any part of&lt;br/&gt;it.  (Additional permissions may be written to require their own&lt;br/&gt;removal in certain cases when you modify the work.)  You may place&lt;br/&gt;additional permissions on material, added by you to a covered work,&lt;br/&gt;for which you have or can give appropriate copyright permission.&lt;br/&gt;&lt;br/&gt;  Notwithstanding any other provision of this License, for material you&lt;br/&gt;add to a covered work, you may (if authorized by the copyright holders of&lt;br/&gt;that material) supplement the terms of this License with terms:&lt;br/&gt;&lt;br/&gt;    a) Disclaiming warranty or limiting liability differently from the&lt;br/&gt;    terms of sections 15 and 16 of this License; or&lt;br/&gt;&lt;br/&gt;    b) Requiring preservation of specified reasonable legal notices or&lt;br/&gt;    author attributions in that material or in the Appropriate Legal&lt;br/&gt;    Notices displayed by works containing it; or&lt;br/&gt;&lt;br/&gt;    c) Prohibiting misrepresentation of the origin of that material, or&lt;br/&gt;    requiring that modified versions of such material be marked in&lt;br/&gt;    reasonable ways as different from the original version; or&lt;br/&gt;&lt;br/&gt;    d) Limiting the use for publicity purposes of names of licensors or&lt;br/&gt;    authors of the material; or&lt;br/&gt;&lt;br/&gt;    e) Declining to grant rights under trademark law for use of some&lt;br/&gt;    trade names, trademarks, or service marks; or&lt;br/&gt;&lt;br/&gt;    f) Requiring indemnification of licensors and authors of that&lt;br/&gt;    material by anyone who conveys the material (or modified versions of&lt;br/&gt;    it) with contractual assumptions of liability to the recipient, for&lt;br/&gt;    any liability that these contractual assumptions directly impose on&lt;br/&gt;    those licensors and authors.&lt;br/&gt;&lt;br/&gt;  All other non-permissive additional terms are considered &amp;#34;further&lt;br/&gt;restrictions&amp;#34; within the meaning of section 10.  If the Program as you&lt;br/&gt;received it, or any part of it, contains a notice stating that it is&lt;br/&gt;governed by this License along with a term that is a further&lt;br/&gt;restriction, you may remove that term.  If a license document contains&lt;br/&gt;a further restriction but permits relicensing or conveying under this&lt;br/&gt;License, you may add to a covered work material governed by the terms&lt;br/&gt;of that license document, provided that the further restriction does&lt;br/&gt;not survive such relicensing or conveying.&lt;br/&gt;&lt;br/&gt;  If you add terms to a covered work in accord with this section, you&lt;br/&gt;must place, in the relevant source files, a statement of the&lt;br/&gt;additional terms that apply to those files, or a notice indicating&lt;br/&gt;where to find the applicable terms.&lt;br/&gt;&lt;br/&gt;  Additional terms, permissive or non-permissive, may be stated in the&lt;br/&gt;form of a separately written license, or stated as exceptions;&lt;br/&gt;the above requirements apply either way.&lt;br/&gt;&lt;br/&gt;  8. Termination.&lt;br/&gt;&lt;br/&gt;  You may not propagate or modify a covered work except as expressly&lt;br/&gt;provided under this License.  Any attempt otherwise to propagate or&lt;br/&gt;modify it is void, and will automatically terminate your rights under&lt;br/&gt;this License (including any patent licenses granted under the third&lt;br/&gt;paragraph of section 11).&lt;br/&gt;&lt;br/&gt;  However, if you cease all violation of this License, then your&lt;br/&gt;license from a particular copyright holder is reinstated (a)&lt;br/&gt;provisionally, unless and until the copyright holder explicitly and&lt;br/&gt;finally terminates your license, and (b) permanently, if the copyright&lt;br/&gt;holder fails to notify you of the violation by some reasonable means&lt;br/&gt;prior to 60 days after the cessation.&lt;br/&gt;&lt;br/&gt;  Moreover, your license from a particular copyright holder is&lt;br/&gt;reinstated permanently if the copyright holder notifies you of the&lt;br/&gt;violation by some reasonable means, this is the first time you have&lt;br/&gt;received notice of violation of this License (for any work) from that&lt;br/&gt;copyright holder, and you cure the violation prior to 30 days after&lt;br/&gt;your receipt of the notice.&lt;br/&gt;&lt;br/&gt;  Termination of your rights under this section does not terminate the&lt;br/&gt;licenses of parties who have received copies or rights from you under&lt;br/&gt;this License.  If your rights have been terminated and not permanently&lt;br/&gt;reinstated, you do not qualify to receive new licenses for the same&lt;br/&gt;material under section 10.&lt;br/&gt;&lt;br/&gt;  9. Acceptance Not Required for Having Copies.&lt;br/&gt;&lt;br/&gt;  You are not required to accept this License in order to receive or&lt;br/&gt;run a copy of the Program.  Ancillary propagation of a covered work&lt;br/&gt;occurring solely as a consequence of using peer-to-peer transmission&lt;br/&gt;to receive a copy likewise does not require acceptance.  However,&lt;br/&gt;nothing other than this License grants you permission to propagate or&lt;br/&gt;modify any covered work.  These actions infringe copyright if you do&lt;br/&gt;not accept this License.  Therefore, by modifying or propagating a&lt;br/&gt;covered work, you indicate your acceptance of this License to do so.&lt;br/&gt;&lt;br/&gt;  10. Automatic Licensing of Downstream Recipients.&lt;br/&gt;&lt;br/&gt;  Each time you convey a covered work, the recipient automatically&lt;br/&gt;receives a license from the original licensors, to run, modify and&lt;br/&gt;propagate that work, subject to this License.  You are not responsible&lt;br/&gt;for enforcing compliance by third parties with this License.&lt;br/&gt;&lt;br/&gt;  An &amp;#34;entity transaction&amp;#34; is a transaction transferring control of an&lt;br/&gt;organization, or substantially all assets of one, or subdividing an&lt;br/&gt;organization, or merging organizations.  If propagation of a covered&lt;br/&gt;work results from an entity transaction, each party to that&lt;br/&gt;transaction who receives a copy of the work also receives whatever&lt;br/&gt;licenses to the work the party&amp;#39;s predecessor in interest had or could&lt;br/&gt;give under the previous paragraph, plus a right to possession of the&lt;br/&gt;Corresponding Source of the work from the predecessor in interest, if&lt;br/&gt;the predecessor has it or can get it with reasonable efforts.&lt;br/&gt;&lt;br/&gt;  You may not impose any further restrictions on the exercise of the&lt;br/&gt;rights granted or affirmed under this License.  For example, you may&lt;br/&gt;not impose a license fee, royalty, or other charge for exercise of&lt;br/&gt;rights granted under this License, and you may not initiate litigation&lt;br/&gt;(including a cross-claim or counterclaim in a lawsuit) alleging that&lt;br/&gt;any patent claim is infringed by making, using, selling, offering for&lt;br/&gt;sale, or importing the Program or any portion of it.&lt;br/&gt;&lt;br/&gt;  11. Patents.&lt;br/&gt;&lt;br/&gt;  A &amp;#34;contributor&amp;#34; is a copyright holder who authorizes use under this&lt;br/&gt;License of the Program or a work on which the Program is based.  The&lt;br/&gt;work thus licensed is called the contributor&amp;#39;s &amp;#34;contributor version&amp;#34;.&lt;br/&gt;&lt;br/&gt;  A contributor&amp;#39;s &amp;#34;essential patent claims&amp;#34; are all patent claims&lt;br/&gt;owned or controlled by the contributor, whether already acquired or&lt;br/&gt;hereafter acquired, that would be infringed by some manner, permitted&lt;br/&gt;by this License, of making, using, or selling its contributor version,&lt;br/&gt;but do not include claims that would be infringed only as a&lt;br/&gt;consequence of further modification of the contributor version.  For&lt;br/&gt;purposes of this definition, &amp;#34;control&amp;#34; includes the right to grant&lt;br/&gt;patent sublicenses in a manner consistent with the requirements of&lt;br/&gt;this License.&lt;br/&gt;&lt;br/&gt;  Each contributor grants you a non-exclusive, worldwide, royalty-free&lt;br/&gt;patent license under the contributor&amp;#39;s essential patent claims, to&lt;br/&gt;make, use, sell, offer for sale, import and otherwise run, modify and&lt;br/&gt;propagate the contents of its contributor version.&lt;br/&gt;&lt;br/&gt;  In the following three paragraphs, a &amp;#34;patent license&amp;#34; is any express&lt;br/&gt;agreement or commitment, however denominated, not to enforce a patent&lt;br/&gt;(such as an express permission to practice a patent or covenant not to&lt;br/&gt;sue for patent infringement).  To &amp;#34;grant&amp;#34; such a patent license to a&lt;br/&gt;party means to make such an agreement or commitment not to enforce a&lt;br/&gt;patent against the party.&lt;br/&gt;&lt;br/&gt;  If you convey a covered work, knowingly relying on a patent license,&lt;br/&gt;and the Corresponding Source of the work is not available for anyone&lt;br/&gt;to copy, free of charge and under the terms of this License, through a&lt;br/&gt;publicly available network server or other readily accessible means,&lt;br/&gt;then you must either (1) cause the Corresponding Source to be so&lt;br/&gt;available, or (2) arrange to deprive yourself of the benefit of the&lt;br/&gt;patent license for this particular work, or (3) arrange, in a manner&lt;br/&gt;consistent with the requirements of this License, to extend the patent&lt;br/&gt;license to downstream recipients.  &amp;#34;Knowingly relying&amp;#34; means you have&lt;br/&gt;actual knowledge that, but for the patent license, your conveying the&lt;br/&gt;covered work in a country, or your recipient&amp;#39;s use of the covered work&lt;br/&gt;in a country, would infringe one or more identifiable patents in that&lt;br/&gt;country that you have reason to believe are valid.&lt;br/&gt;&lt;br/&gt;  If, pursuant to or in connection with a single transaction or&lt;br/&gt;arrangement, you convey, or propagate by procuring conveyance of, a&lt;br/&gt;covered work, and grant a patent license to some of the parties&lt;br/&gt;receiving the covered work authorizing them to use, propagate, modify&lt;br/&gt;or convey a specific copy of the covered work, then the patent license&lt;br/&gt;you grant is automatically extended to all recipients of the covered&lt;br/&gt;work and works based on it.&lt;br/&gt;&lt;br/&gt;  A patent license is &amp;#34;discriminatory&amp;#34; if it does not include within&lt;br/&gt;the scope of its coverage, prohibits the exercise of, or is&lt;br/&gt;conditioned on the non-exercise of one or more of the rights that are&lt;br/&gt;specifically granted under this License.  You may not convey a covered&lt;br/&gt;work if you are a party to an arrangement with a third party that is&lt;br/&gt;in the business of distributing software, under which you make payment&lt;br/&gt;to the third party based on the extent of your activity of conveying&lt;br/&gt;the work, and under which the third party grants, to any of the&lt;br/&gt;parties who would receive the covered work from you, a discriminatory&lt;br/&gt;patent license (a) in connection with copies of the covered work&lt;br/&gt;conveyed by you (or copies made from those copies), or (b) primarily&lt;br/&gt;for and in connection with specific products or compilations that&lt;br/&gt;contain the covered work, unless you entered into that arrangement,&lt;br/&gt;or that patent license was granted, prior to 28 March 2007.&lt;br/&gt;&lt;br/&gt;  Nothing in this License shall be construed as excluding or limiting&lt;br/&gt;any implied license or other defenses to infringement that may&lt;br/&gt;otherwise be available to you under applicable patent law.&lt;br/&gt;&lt;br/&gt;  12. No Surrender of Others&amp;#39; Freedom.&lt;br/&gt;&lt;br/&gt;  If conditions are imposed on you (whether by court order, agreement or&lt;br/&gt;otherwise) that contradict the conditions of this License, they do not&lt;br/&gt;excuse you from the conditions of this License.  If you cannot convey a&lt;br/&gt;covered work so as to satisfy simultaneously your obligations under this&lt;br/&gt;License and any other pertinent obligations, then as a consequence you may&lt;br/&gt;not convey it at all.  For example, if you agree to terms that obligate you&lt;br/&gt;to collect a royalty for further conveying from those to whom you convey&lt;br/&gt;the Program, the only way you could satisfy both those terms and this&lt;br/&gt;License would be to refrain entirely from conveying the Program.&lt;br/&gt;&lt;br/&gt;  13. Remote Network Interaction; Use with the GNU General Public License.&lt;br/&gt;&lt;br/&gt;  Notwithstanding any other provision of this License, if you modify the&lt;br/&gt;Program, your modified version must prominently offer all users&lt;br/&gt;interacting with it remotely through a computer network (if your version&lt;br/&gt;supports such interaction) an opportunity to receive the Corresponding&lt;br/&gt;Source of your version by providing access to the Corresponding Source&lt;br/&gt;from a network server at no charge, through some standard or customary&lt;br/&gt;means of facilitating copying of software.  This Corresponding Source&lt;br/&gt;shall include the Corresponding Source for any work covered by version 3&lt;br/&gt;of the GNU General Public License that is incorporated pursuant to the&lt;br/&gt;following paragraph.&lt;br/&gt;&lt;br/&gt;  Notwithstanding any other provision of this License, you have&lt;br/&gt;permission to link or combine any covered work with a work licensed&lt;br/&gt;under version 3 of the GNU General Public License into a single&lt;br/&gt;combined work, and to convey the resulting work.  The terms of this&lt;br/&gt;License will continue to apply to the part which is the covered work,&lt;br/&gt;but the work with which it is combined will remain governed by version&lt;br/&gt;3 of the GNU General Public License.&lt;br/&gt;&lt;br/&gt;  14. Revised Versions of this License.&lt;br/&gt;&lt;br/&gt;  The Free Software Foundation may publish revised and/or new versions of&lt;br/&gt;the GNU Affero General Public License from time to time.  Such new versions&lt;br/&gt;will be similar in spirit to the present version, but may differ in detail to&lt;br/&gt;address new problems or concerns.&lt;br/&gt;&lt;br/&gt;  Each version is given a distinguishing version number.  If the&lt;br/&gt;Program specifies that a certain numbered version of the GNU Affero General&lt;br/&gt;Public License &amp;#34;or any later version&amp;#34; applies to it, you have the&lt;br/&gt;option of following the terms and conditions either of that numbered&lt;br/&gt;version or of any later version published by the Free Software&lt;br/&gt;Foundation.  If the Program does not specify a version number of the&lt;br/&gt;GNU Affero General Public License, you may choose any version ever published&lt;br/&gt;by the Free Software Foundation.&lt;br/&gt;&lt;br/&gt;  If the Program specifies that a proxy can decide which future&lt;br/&gt;versions of the GNU Affero General Public License can be used, that proxy&amp;#39;s&lt;br/&gt;public statement of acceptance of a version permanently authorizes you&lt;br/&gt;to choose that version for the Program.&lt;br/&gt;&lt;br/&gt;  Later license versions may give you additional or different&lt;br/&gt;permissions.  However, no additional obligations are imposed on any&lt;br/&gt;author or copyright holder as a result of your choosing to follow a&lt;br/&gt;later version.&lt;br/&gt;&lt;br/&gt;  15. Disclaimer of Warranty.&lt;br/&gt;&lt;br/&gt;  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY&lt;br/&gt;APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT&lt;br/&gt;HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM &amp;#34;AS IS&amp;#34; WITHOUT WARRANTY&lt;br/&gt;OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,&lt;br/&gt;THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR&lt;br/&gt;PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM&lt;br/&gt;IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF&lt;br/&gt;ALL NECESSARY SERVICING, REPAIR OR CORRECTION.&lt;br/&gt;&lt;br/&gt;  16. Limitation of Liability.&lt;br/&gt;&lt;br/&gt;  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING&lt;br/&gt;WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS&lt;br/&gt;THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY&lt;br/&gt;GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE&lt;br/&gt;USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF&lt;br/&gt;DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD&lt;br/&gt;PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),&lt;br/&gt;EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF&lt;br/&gt;SUCH DAMAGES.&lt;br/&gt;&lt;br/&gt;  17. Interpretation of Sections 15 and 16.&lt;br/&gt;&lt;br/&gt;  If the disclaimer of warranty and limitation of liability provided&lt;br/&gt;above cannot be given local legal effect according to their terms,&lt;br/&gt;reviewing courts shall apply local law that most closely approximates&lt;br/&gt;an absolute waiver of all civil liability in connection with the&lt;br/&gt;Program, unless a warranty or assumption of liability accompanies a&lt;br/&gt;copy of the Program in return for a fee.&lt;br/&gt;&lt;br/&gt;                     END OF TERMS AND CONDITIONS&lt;br/&gt;&lt;br/&gt;            How to Apply These Terms to Your New Programs&lt;br/&gt;&lt;br/&gt;  If you develop a new program, and you want it to be of the greatest&lt;br/&gt;possible use to the public, the best way to achieve this is to make it&lt;br/&gt;free software which everyone can redistribute and change under these terms.&lt;br/&gt;&lt;br/&gt;  To do so, attach the following notices to the program.  It is safest&lt;br/&gt;to attach them to the start of each source file to most effectively&lt;br/&gt;state the exclusion of warranty; and each file should have at least&lt;br/&gt;the &amp;#34;copyright&amp;#34; line and a pointer to where the full notice is found.&lt;br/&gt;&lt;br/&gt;    &amp;lt;one line to give the program&amp;#39;s name and a brief idea of what it does.&amp;gt;&lt;br/&gt;    Copyright (C) 2023  &amp;lt;name of author&amp;gt;&lt;br/&gt;&lt;br/&gt;    This program is free software: you can redistribute it and/or modify&lt;br/&gt;    it under the terms of the GNU Affero General Public License as published&lt;br/&gt;    by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;    (at your option) any later version.&lt;br/&gt;&lt;br/&gt;    This program is distributed in the hope that it will be useful,&lt;br/&gt;    but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;    GNU Affero General Public License for more details.&lt;br/&gt;&lt;br/&gt;    You should have received a copy of the GNU Affero General Public License&lt;br/&gt;    along with this program. If not, see &amp;lt;&lt;a href=&#34;https://www.gnu.org/licenses/&amp;gt&#34;&gt;https://www.gnu.org/licenses/&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;Also add information on how to contact you by electronic and paper mail.&lt;br/&gt;&lt;br/&gt;  If your software can interact with users remotely through a computer&lt;br/&gt;network, you should also make sure that it provides a way for users to&lt;br/&gt;get its source.  For example, if your program is a web application, its&lt;br/&gt;interface could display a &amp;#34;Source&amp;#34; link that leads users to an archive&lt;br/&gt;of the code.  There are many ways you could offer source, and different&lt;br/&gt;solutions will be better for different programs; see section 13 for the&lt;br/&gt;specific requirements.&lt;br/&gt;&lt;br/&gt;  You should also get your employer (if you work as a programmer) or school,&lt;br/&gt;if any, to sign a &amp;#34;copyright disclaimer&amp;#34; for the program, if necessary.&lt;br/&gt;For more information on this, and how to apply and follow the GNU AGPL, see&lt;br/&gt;&amp;lt;&lt;a href=&#34;https://www.gnu.org/licenses/&amp;gt&#34;&gt;https://www.gnu.org/licenses/&amp;gt&lt;/a&gt;;.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqswz4fgkexh3ce97swaglnju2xh0d86shtlu5gdy5ggwecdyav3stczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7743wets</id>
    
      <title type="html">//#[cfg(feature = &amp;#34;gen-protos&amp;#34;)] fn compile_protos() { ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqswz4fgkexh3ce97swaglnju2xh0d86shtlu5gdy5ggwecdyav3stczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7743wets" />
    <content type="html">
      //#[cfg(feature = &amp;#34;gen-protos&amp;#34;)]&lt;br/&gt;fn compile_protos() {&lt;br/&gt;    tonic_prost_build::configure()&lt;br/&gt;        .build_server(true)&lt;br/&gt;        .build_client(true)&lt;br/&gt;        .build_transport(true)&lt;br/&gt;        .protoc_arg(&amp;#34;--experimental_allow_proto3_optional&amp;#34;)&lt;br/&gt;        .compile_protos(&amp;amp;[&amp;#34;proto/plugins.proto&amp;#34;], &amp;amp;[&amp;#34;proto&amp;#34;])&lt;br/&gt;        .expect(&amp;#34;protoc is required&amp;#34;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;//#[cfg(not(feature = &amp;#34;gen-protos&amp;#34;))]&lt;br/&gt;//fn compile_protos() {}&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;fn main() {&lt;br/&gt;    compile_protos();&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsda3wltsvc0vct7rv5rtv543nvh5ftk4gqqe0sxzf3f4un0t29h9gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77fgl3gy</id>
    
      <title type="html"># Managing Repository and Relay Sets Sets are a convenience ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsda3wltsvc0vct7rv5rtv543nvh5ftk4gqqe0sxzf3f4un0t29h9gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77fgl3gy" />
    <content type="html">
      # Managing Repository and Relay Sets&lt;br/&gt;&lt;br/&gt;Sets are a convenience feature for contributing to projects that do not have a&lt;br/&gt;`nostr-address` file. Instead of manually specifying the project&amp;#39;s repositories&lt;br/&gt;and relays for every command, you can define them once as a named &amp;#34;set&amp;#34;. You can&lt;br/&gt;then reference this set by its name in commands. This allows you to use the set&lt;br/&gt;as a shortcut for a list of relays (`--relays &amp;lt;set_name&amp;gt;`) or as the project&amp;#39;s&lt;br/&gt;address in commands like `issue` and `patch`.&lt;br/&gt;&lt;br/&gt;Sets are defined in your configuration file. To use a specific configuration&lt;br/&gt;file, pass its path using the `--config` option.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsdw4k6arde5vxdt3x3xgyxmwegpfh8zze2gws5tjfk53l05u5n3sgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77v7num2</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsdw4k6arde5vxdt3x3xgyxmwegpfh8zze2gws5tjfk53l05u5n3sgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77v7num2" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::net::{IpAddr, Ipv4Addr};&lt;br/&gt;use std::path::PathBuf;&lt;br/&gt;&lt;br/&gt;use parking_lot::RwLock;&lt;br/&gt;&lt;br/&gt;use crate::ext_traits::RwlockVecExt;&lt;br/&gt;use crate::pathes;&lt;br/&gt;&lt;br/&gt;/// `NetworkConfig` defaults&lt;br/&gt;pub mod net {&lt;br/&gt;    use super::*;&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn ip_addr() -&amp;gt; IpAddr {&lt;br/&gt;        IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1))&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn port() -&amp;gt; u16 {&lt;br/&gt;        3598&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// `LmdbConfig` defaults&lt;br/&gt;pub mod lmdb {&lt;br/&gt;    use super::*;&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub fn dir() -&amp;gt; PathBuf {&lt;br/&gt;        pathes::lmdb_dir_path()&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn map_size() -&amp;gt; usize {&lt;br/&gt;        if cfg!(target_pointer_width = &amp;#34;32&amp;#34;) {&lt;br/&gt;            1024 * 1024 * 1024 * 4&lt;br/&gt;        } else {&lt;br/&gt;            1024 * 1024 * 1024 * 32&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn max_readers() -&amp;gt; u32 {&lt;br/&gt;        126&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn additional_dbs() -&amp;gt; u32 {&lt;br/&gt;        0&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// `RatelimitConfig` defaults&lt;br/&gt;pub mod ratelimit {&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn max_queries() -&amp;gt; usize {&lt;br/&gt;        500&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn events_per_minute() -&amp;gt; u32 {&lt;br/&gt;        120&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// `RhaiPluginsConfig`&lt;br/&gt;pub mod rhai {&lt;br/&gt;    use std::num::NonZeroU8;&lt;br/&gt;&lt;br/&gt;    pub const fn workers() -&amp;gt; NonZeroU8 {&lt;br/&gt;        unsafe { NonZeroU8::new_unchecked(3) }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;pub mod grasp {&lt;br/&gt;    use std::borrow::Cow;&lt;br/&gt;&lt;br/&gt;    pub const fn enable() -&amp;gt; bool {&lt;br/&gt;        true&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    pub const fn git_path() -&amp;gt; Cow&amp;lt;&amp;#39;static, str&amp;gt; {&lt;br/&gt;        Cow::Borrowed(&amp;#34;git&amp;#34;)&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// `Nip11Config` defaults&lt;br/&gt;pub mod nip11 {&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn supported_nips() -&amp;gt; &amp;amp;&amp;#39;static [u16] {&lt;br/&gt;        &amp;amp;[1, 9, 13, 17, 40, 42, 50, 59, 62, 70, 77]&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn supported_grasps() -&amp;gt; &amp;amp;&amp;#39;static [&amp;amp;&amp;#39;static str] {&lt;br/&gt;        &amp;amp;[&amp;#34;GRASP-01&amp;#34;]&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn software() -&amp;gt; &amp;amp;&amp;#39;static str {&lt;br/&gt;        &amp;#34;&lt;a href=&#34;https://relay.n34.dev&amp;#34&#34;&gt;https://relay.n34.dev&amp;#34&lt;/a&gt;;&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn version() -&amp;gt; &amp;amp;&amp;#39;static str {&lt;br/&gt;        // e.g. `0.1.0`&lt;br/&gt;        env!(&amp;#34;CARGO_PKG_VERSION&amp;#34;)&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// `RelayConfig` defaults&lt;br/&gt;pub mod relay {&lt;br/&gt;    use std::num::NonZeroUsize;&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn nip42() -&amp;gt; bool {&lt;br/&gt;        false&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn min_pow() -&amp;gt; u8 {&lt;br/&gt;        0&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn max_event_size() -&amp;gt; NonZeroUsize {&lt;br/&gt;        unsafe { NonZeroUsize::new_unchecked(1024 * 150) }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn max_limit() -&amp;gt; NonZeroUsize {&lt;br/&gt;        unsafe { NonZeroUsize::new_unchecked(5000) }&lt;br/&gt;    }&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn default_limit() -&amp;gt; NonZeroUsize {&lt;br/&gt;        unsafe { NonZeroUsize::new_unchecked(500) }&lt;br/&gt;    }&lt;br/&gt;    #[inline]&lt;br/&gt;    pub const fn max_subid_length() -&amp;gt; NonZeroUsize {&lt;br/&gt;        unsafe { NonZeroUsize::new_unchecked(150) }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl Default for super::NetworkConfig {&lt;br/&gt;    fn default() -&amp;gt; Self {&lt;br/&gt;        use self::net::*;&lt;br/&gt;&lt;br/&gt;        Self {&lt;br/&gt;            ip:   ip_addr(),&lt;br/&gt;            port: port(),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl Default for super::LmdbConfig {&lt;br/&gt;    fn default() -&amp;gt; Self {&lt;br/&gt;        use self::lmdb::*;&lt;br/&gt;&lt;br/&gt;        Self {&lt;br/&gt;            dir:            dir(),&lt;br/&gt;            map_size:       map_size(),&lt;br/&gt;            max_readers:    max_readers(),&lt;br/&gt;            additional_dbs: additional_dbs(),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl Default for super::RatelimitConfig {&lt;br/&gt;    fn default() -&amp;gt; Self {&lt;br/&gt;        use self::ratelimit::*;&lt;br/&gt;&lt;br/&gt;        Self {&lt;br/&gt;            max_queries:       max_queries(),&lt;br/&gt;            events_per_minute: events_per_minute(),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl Default for super::RhaiPluginsConfig {&lt;br/&gt;    fn default() -&amp;gt; Self {&lt;br/&gt;        use self::rhai::*;&lt;br/&gt;&lt;br/&gt;        Self {&lt;br/&gt;            workers: workers(),&lt;br/&gt;            plugins: Vec::new(),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl Default for super::GraspConfig {&lt;br/&gt;    fn default() -&amp;gt; Self {&lt;br/&gt;        use self::grasp::*;&lt;br/&gt;&lt;br/&gt;        Self {&lt;br/&gt;            enable:      true,&lt;br/&gt;            git_path:    git_path(),&lt;br/&gt;            max_reqs:    None,&lt;br/&gt;            req_timeout: None,&lt;br/&gt;            repos_path:  pathes::grasp_repos(),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl Default for super::Nip11Config {&lt;br/&gt;    fn default() -&amp;gt; Self {&lt;br/&gt;        use self::nip11::*;&lt;br/&gt;&lt;br/&gt;        Self {&lt;br/&gt;            name:             RwLock::new(None),&lt;br/&gt;            description:      RwLock::new(None),&lt;br/&gt;            banner:           RwLock::new(None),&lt;br/&gt;            icon:             RwLock::new(None),&lt;br/&gt;            admin:            Option::None,&lt;br/&gt;            contact:          Option::None,&lt;br/&gt;            privacy_policy:   Option::None,&lt;br/&gt;            terms_of_service: Option::None,&lt;br/&gt;            limitation:       super::Nip11Limitation::default(),&lt;br/&gt;&lt;br/&gt;            supported_nips:   supported_nips(),&lt;br/&gt;            supported_grasps: supported_grasps(),&lt;br/&gt;            software:         software(),&lt;br/&gt;            version:          version(),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl Default for super::CoreConfig {&lt;br/&gt;    fn default() -&amp;gt; Self {&lt;br/&gt;        use relay::*;&lt;br/&gt;&lt;br/&gt;        Self {&lt;br/&gt;            domain:           String::new(),&lt;br/&gt;            nip42:            nip42(),&lt;br/&gt;            max_connections:  None,&lt;br/&gt;            min_pow:          min_pow(),&lt;br/&gt;            max_event_size:   max_event_size(),&lt;br/&gt;            max_limit:        max_limit(),&lt;br/&gt;            default_limit:    default_limit(),&lt;br/&gt;            max_subid_length: max_subid_length(),&lt;br/&gt;            whitelist:        RwlockVecExt::new_empty(),&lt;br/&gt;            blacklist:        RwlockVecExt::new_empty(),&lt;br/&gt;            admins:           RwlockVecExt::new_empty(),&lt;br/&gt;            allowed_kinds:    RwlockVecExt::new_empty(),&lt;br/&gt;            disallowed_kinds: RwlockVecExt::new_empty(),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsdtupdvwqy6aqjp3unpr02pnlxs338g7g35y5049s0k30y2hwe0xqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk777v5ngn</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] use ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsdtupdvwqy6aqjp3unpr02pnlxs338g7g35y5049s0k30y2hwe0xqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk777v5ngn" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use get_file_hash_core::{get_git_tracked_files, DEFAULT_GNOSTR_KEY, DEFAULT_PICTURE_URL, DEFAULT_BANNER_URL, publish_nostr_event_if_release, get_repo_announcement_event, publish_patch_event};&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;#[tokio::main]&lt;br/&gt;async fn main() {&lt;br/&gt;    use get_file_hash_core::publish_patch;&lt;br/&gt;    use nostr_sdk::Keys;&lt;br/&gt;    use nostr_sdk::EventId;&lt;br/&gt;    use std::str::FromStr;&lt;br/&gt;&lt;br/&gt;    let keys = Keys::generate();&lt;br/&gt;    let relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;    let d_tag = &amp;#34;my-awesome-repo-example&amp;#34;;&lt;br/&gt;    let commit_id = &amp;#34;a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0&amp;#34;; // Example commit ID&lt;br/&gt;&lt;br/&gt;    // Dummy EventId for examples that require a build_manifest_event_id&lt;br/&gt;    const DUMMY_BUILD_MANIFEST_ID_STR: &amp;amp;str = &amp;#34;f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0&amp;#34;;&lt;br/&gt;    let dummy_build_manifest_id = EventId::from_str(DUMMY_BUILD_MANIFEST_ID_STR).unwrap();&lt;br/&gt;&lt;br/&gt;    // Example 1: Without build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing patch without build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_patch!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        commit_id,&lt;br/&gt;        &amp;#34;../Cargo.toml&amp;#34; // Use an existing file for the patch content&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Patch without build_manifest_event_id published.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // Example 2: With build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing patch with build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_patch!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        commit_id,&lt;br/&gt;        &amp;#34;../Cargo.toml&amp;#34;, // Use an existing file for the patch content&lt;br/&gt;        Some(&amp;amp;dummy_build_manifest_id)&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Patch with build_manifest_event_id published.&amp;#34;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example publish_patch --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsdt43hx9nssz82892ekxf4fm4ec88d7cw53dd8vztdrygp24txfeszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77m9jdgp</id>
    
      <title type="html">&amp;lt;svg width=&amp;#34;38&amp;#34; height=&amp;#34;38&amp;#34; viewBox=&amp;#34;0 0 ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsdt43hx9nssz82892ekxf4fm4ec88d7cw53dd8vztdrygp24txfeszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77m9jdgp" />
    <content type="html">
      &amp;lt;svg width=&amp;#34;38&amp;#34; height=&amp;#34;38&amp;#34; viewBox=&amp;#34;0 0 38 38&amp;#34; fill=&amp;#34;none&amp;#34; xmlns=&amp;#34;&lt;a href=&#34;http://www.w3.org/2000/svg&amp;#34;&amp;gt&#34;&gt;http://www.w3.org/2000/svg&amp;#34;&amp;gt&lt;/a&gt;;&lt;br/&gt;&amp;lt;g clip-path=&amp;#34;url(#clip0_10637_22944)&amp;#34;&amp;gt;&lt;br/&gt;&amp;lt;path d=&amp;#34;M8.97956 38C6.77048 37.9998 4.9797 36.2091 4.97956 34C4.97956 32.723 5.57913 31.5869 6.51081 30.8545C6.01667 29.1832 5.60276 27.6701 5.10651 26.0176C4.44377 23.8104 5.10116 21.3791 6.88972 19.8643L15.0889 12.9209C15.0189 12.6246 14.9806 12.3158 14.9805 11.998C14.9805 10.1857 16.1862 8.65565 17.8389 8.16406L17.8389 1.14258C17.8567 0.428463 18.368 -1.23664e-06 18.9991 -1.23664e-06C19.6302 6.24476e-06 20.1239 0.428464 20.1241 1.14258L20.1241 8.16504C21.7762 8.65704 22.9815 10.1861 22.9815 11.998C22.9815 12.3216 22.9427 12.6362 22.8702 12.9375L31.1231 19.9268C32.861 21.3988 33.559 23.7624 32.8995 25.9424L31.421 30.8301C32.3701 31.5615 32.9825 32.709 32.9825 34C32.9823 36.2092 31.1908 38 28.9815 38C26.7724 37.9998 24.9817 36.2091 24.9815 34C24.9815 31.7908 26.7724 29.9993 28.9815 29.999C29.0819 29.999 29.1818 30.0054 29.2803 30.0127L30.711 25.2803C31.1067 23.9723 30.6884 22.5541 29.6456 21.6709L21.6944 14.9375C21.2519 15.3462 20.7166 15.6556 20.1241 15.832L20.1241 23.9092C21.4555 24.38 22.4101 25.649 22.4102 27.1416C22.4102 29.0353 20.8743 30.5713 18.9805 30.5713C17.087 30.5711 15.5518 29.0352 15.5518 27.1416C15.552 25.6486 16.507 24.3797 17.8389 23.9092L17.8389 15.832C17.2413 15.6543 16.7027 15.3405 16.2579 14.9268L8.36726 21.6084C7.30238 22.5104 6.88333 23.9861 7.29597 25.3603C7.79328 27.0164 8.18707 28.4553 8.64558 30.0156C8.75577 30.0065 8.86702 29.999 8.97956 29.999C11.1889 29.999 12.9805 31.7907 12.9805 34C12.9804 36.2092 11.1888 38 8.97956 38Z&amp;#34; fill=&amp;#34;#4434FF&amp;#34;/&amp;gt;&lt;br/&gt;&amp;lt;/g&amp;gt;&lt;br/&gt;&amp;lt;defs&amp;gt;&lt;br/&gt;&amp;lt;clipPath id=&amp;#34;clip0_10637_22944&amp;#34;&amp;gt;&lt;br/&gt;&amp;lt;rect width=&amp;#34;38&amp;#34; height=&amp;#34;38&amp;#34; fill=&amp;#34;white&amp;#34;/&amp;gt;&lt;br/&gt;&amp;lt;/clipPath&amp;gt;&lt;br/&gt;&amp;lt;/defs&amp;gt;&lt;br/&gt;&amp;lt;/svg&amp;gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsdxlt9n0v9d6hj0szd3fmuamk7epqw2v5g098kw6nlvu6a6z4vneszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77rlpmr4</id>
    
      <title type="html">/target /book</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsdxlt9n0v9d6hj0szd3fmuamk7epqw2v5g098kw6nlvu6a6z4vneszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77rlpmr4" />
    <content type="html">
      /target&lt;br/&gt;/book&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsd957v4wh24r0wy6ar6pmtr2vudmwm4x5mx9deq6pvcswshfezftszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77rgzvdz</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsd957v4wh24r0wy6ar6pmtr2vudmwm4x5mx9deq6pvcswshfezftszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77rgzvdz" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::{path::PathBuf, sync::Arc};&lt;br/&gt;&lt;br/&gt;use nostr::{key::PublicKey, nips::nip19::ToBech32};&lt;br/&gt;use nostr_database::NostrDatabase;&lt;br/&gt;use nostr_relay_builder::LocalRelay;&lt;br/&gt;&lt;br/&gt;use crate::relay_config::RelayConfig;&lt;br/&gt;&lt;br/&gt;/// Router state.&lt;br/&gt;pub struct RouterState {&lt;br/&gt;    /// Configuration settings for the relay.&lt;br/&gt;    pub config:   Arc&amp;lt;RelayConfig&amp;gt;,&lt;br/&gt;    /// The local relay instance being managed.&lt;br/&gt;    pub relay:    Arc&amp;lt;LocalRelay&amp;gt;,&lt;br/&gt;    /// The relay database&lt;br/&gt;    pub database: Arc&amp;lt;dyn NostrDatabase&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl RouterState {&lt;br/&gt;    /// Creates a new router state.&lt;br/&gt;    pub fn new(&lt;br/&gt;        config: Arc&amp;lt;RelayConfig&amp;gt;,&lt;br/&gt;        relay: Arc&amp;lt;LocalRelay&amp;gt;,&lt;br/&gt;        database: Arc&amp;lt;dyn NostrDatabase&amp;gt;,&lt;br/&gt;    ) -&amp;gt; Self {&lt;br/&gt;        Self {&lt;br/&gt;            config,&lt;br/&gt;            relay,&lt;br/&gt;            database,&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Returns the repo path if it&amp;#39;s exists&lt;br/&gt;    pub fn repo_path(&amp;amp;self, npub: &amp;amp;PublicKey, repo_name: &amp;amp;str) -&amp;gt; Option&amp;lt;PathBuf&amp;gt; {&lt;br/&gt;        let path = self&lt;br/&gt;            .config&lt;br/&gt;            .grasp&lt;br/&gt;            .repos_path&lt;br/&gt;            .join(npub.to_bech32().expect(&amp;#34;Infallible&amp;#34;))&lt;br/&gt;            .join(repo_name)&lt;br/&gt;            .with_extension(&amp;#34;git&amp;#34;);&lt;br/&gt;&lt;br/&gt;        path.exists().then_some(path)&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsd9x5ga4qmdlgzqc240sszcjflx5yxkh8ca5ethu3l0xyvdk9ufkszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77xewcwa</id>
    
      <title type="html"># Manage Repositories In `n34` you can manage your repositories. ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsd9x5ga4qmdlgzqc240sszcjflx5yxkh8ca5ethu3l0xyvdk9ufkszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77xewcwa" />
    <content type="html">
      # Manage Repositories&lt;br/&gt;&lt;br/&gt;In `n34` you can manage your repositories. This includes announcing new ones,&lt;br/&gt;viewing existing ones, and announcing state updates (coming soon).&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsvm7x66y86uuh3q2j24sm0h8057xdr5ktuj2m8jtp3mtpxqtqdm3qzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77pfwk9m</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsvm7x66y86uuh3q2j24sm0h8057xdr5ktuj2m8jtp3mtpxqtqdm3qzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77pfwk9m" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::{io, path::Path, process::Output, time::Duration};&lt;br/&gt;&lt;br/&gt;use tokio::{fs, process::Command};&lt;br/&gt;&lt;br/&gt;/// Type alias for `Result&amp;lt;T, GraspGitError&amp;gt;`&lt;br/&gt;type GitResult&amp;lt;T&amp;gt; = Result&amp;lt;T, GraspGitError&amp;gt;;&lt;br/&gt;&lt;br/&gt;/// Grasp git command errors&lt;br/&gt;#[derive(Debug, thiserror::Error)]&lt;br/&gt;pub enum GraspGitError {&lt;br/&gt;    #[error(&amp;#34;GRASP git IO error: {0}&amp;#34;)]&lt;br/&gt;    Io(#[from] io::Error),&lt;br/&gt;    #[error(&amp;#34;GRASP bare repo error: {0}&amp;#34;)]&lt;br/&gt;    BareRepo(String),&lt;br/&gt;    #[error(&amp;#34;GRASP git command timeout: `{0:?}`&amp;#34;)]&lt;br/&gt;    GitTimeout(Vec&amp;lt;String&amp;gt;),&lt;br/&gt;    #[error(&amp;#34;GRASP error, repo doesn&amp;#39;t exists: {0}&amp;#34;)]&lt;br/&gt;    RepoNotFound(String),&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Git command implementation for GRASP operations&lt;br/&gt;pub struct GraspGitCommand&amp;lt;&amp;#39;a&amp;gt; {&lt;br/&gt;    /// Path to the git executable&lt;br/&gt;    pub git_path:  &amp;amp;&amp;#39;a str,&lt;br/&gt;    /// Path to the git repository where commands will be executed&lt;br/&gt;    pub repo_path: &amp;amp;&amp;#39;a Path,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;&amp;#39;a&amp;gt; GraspGitCommand&amp;lt;&amp;#39;a&amp;gt; {&lt;br/&gt;    /// Creates a new Git command.&lt;br/&gt;    pub fn new(git_path: &amp;amp;&amp;#39;a str, repo_path: &amp;amp;&amp;#39;a Path) -&amp;gt; Self {&lt;br/&gt;        Self {&lt;br/&gt;            git_path,&lt;br/&gt;            repo_path,&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Executes the Git command with the provided arguments. Times out after 5&lt;br/&gt;    /// seconds.&lt;br/&gt;    async fn run_git(&amp;amp;self, args: &amp;amp;[&amp;amp;str]) -&amp;gt; GitResult&amp;lt;Output&amp;gt; {&lt;br/&gt;        if !self.repo_path.exists() {&lt;br/&gt;            tracing::trace!(&amp;#34;Creatring repo directory: {}&amp;#34;, self.repo_path.display());&lt;br/&gt;            fs::create_dir_all(self.repo_path).await?;&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        tracing::trace!(&amp;#34;Run GRASP git command: {args:?}&amp;#34;);&lt;br/&gt;        tokio::time::timeout(&lt;br/&gt;            Duration::from_secs(5),&lt;br/&gt;            Command::new(self.git_path)&lt;br/&gt;                .kill_on_drop(true)&lt;br/&gt;                .current_dir(self.repo_path)&lt;br/&gt;                .args(args)&lt;br/&gt;                .output(),&lt;br/&gt;        )&lt;br/&gt;        .await&lt;br/&gt;        .map_err(|_| GraspGitError::GitTimeout(args.iter().map(ToString::to_string).collect()))?&lt;br/&gt;        .map_err(GraspGitError::from)&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Initializes a new bare Git repository.&lt;br/&gt;    pub async fn new_bare(&amp;amp;self, description: &amp;amp;str) -&amp;gt; GitResult&amp;lt;()&amp;gt; {&lt;br/&gt;        tracing::trace!(&amp;#34;Creatring bare git repo `{}`&amp;#34;, self.repo_path.display());&lt;br/&gt;        let output = self.run_git(&amp;amp;[&amp;#34;init&amp;#34;, &amp;#34;--bare&amp;#34;, &amp;#34;--quiet&amp;#34;, &amp;#34;.&amp;#34;]).await?;&lt;br/&gt;&lt;br/&gt;        if !output.status.success() {&lt;br/&gt;            return Err(GraspGitError::BareRepo(&lt;br/&gt;                String::from_utf8_lossy(&amp;amp;output.stderr).into_owned(),&lt;br/&gt;            ));&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        self.update_description(description).await&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Updates the repository&amp;#39;s description by writing the given string to the&lt;br/&gt;    /// &amp;#39;description&amp;#39; file. Returns an error if the repository path doesn&amp;#39;t&lt;br/&gt;    /// exist or if the write operation fails.&lt;br/&gt;    pub async fn update_description(&amp;amp;self, description: &amp;amp;str) -&amp;gt; GitResult&amp;lt;()&amp;gt; {&lt;br/&gt;        if !self.repo_path.exists() {&lt;br/&gt;            return Err(GraspGitError::RepoNotFound(&lt;br/&gt;                self.repo_path.display().to_string(),&lt;br/&gt;            ));&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        tracing::trace!(&amp;#34;updating repo description: {}&amp;#34;, self.repo_path.display());&lt;br/&gt;        fs::write(self.repo_path.join(&amp;#34;description&amp;#34;), description)&lt;br/&gt;            .await&lt;br/&gt;            .map_err(GraspGitError::from)&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsvmgmuzkp0lk4wtuz35hev5x8q7q30wz5y9lnz4n22uamwanpdznczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77lqtlzs</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsvmgmuzkp0lk4wtuz35hev5x8q7q30wz5y9lnz4n22uamwanpdznczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77lqtlzs" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::{fmt, net::SocketAddr, sync::Arc};&lt;br/&gt;&lt;br/&gt;use either::Either;&lt;br/&gt;use nostr::{event::Event, filter::Filter, util::BoxedFuture};&lt;br/&gt;use nostr_relay_builder::builder::{&lt;br/&gt;    QueryPolicy,&lt;br/&gt;    QueryPolicyResult,&lt;br/&gt;    WritePolicy,&lt;br/&gt;    WritePolicyResult,&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;/// Middleware function type&lt;br/&gt;type MiddlewareFn&amp;lt;S&amp;gt; = for&amp;lt;&amp;#39;a&amp;gt; fn(Either&amp;lt;&amp;amp;&amp;#39;a Filter, &amp;amp;&amp;#39;a Event&amp;gt;, S) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, ()&amp;gt;;&lt;br/&gt;&lt;br/&gt;/// Trait that plugins managers must implement, combining WritePolicy and&lt;br/&gt;/// QueryPolicy capabilities.&lt;br/&gt;pub trait PluginsManagerTrait: WritePolicy &#43; QueryPolicy {}&lt;br/&gt;&lt;br/&gt;/// Manages plugins that validate events and queries.&lt;br/&gt;///&lt;br/&gt;/// Plugins are divided into two groups:&lt;br/&gt;/// - `all`: All plugins must accept the event/query&lt;br/&gt;/// - `any`: At least one plugin must accept the event/query&lt;br/&gt;///&lt;br/&gt;/// First checks all `all` plugins, then checks `any` plugins. For example:&lt;br/&gt;/// - Blacklists (keys, kinds, sizes) would be `all` plugins&lt;br/&gt;/// - Whitelists could be either, with `any` allowing alternatives (like&lt;br/&gt;///   whitelisted mentions)&lt;br/&gt;#[derive(Clone)]&lt;br/&gt;pub struct PluginsManager&amp;lt;S&amp;gt;&lt;br/&gt;where&lt;br/&gt;    S: Clone,&lt;br/&gt;{&lt;br/&gt;    /// Plugins where any one can accept the event/query&lt;br/&gt;    any_plugins:      Arc&amp;lt;Vec&amp;lt;Box&amp;lt;dyn RelayPlugin&amp;gt;&amp;gt;&amp;gt;,&lt;br/&gt;    /// Plugins where all must accept the event/query&lt;br/&gt;    all_plugins:      Arc&amp;lt;Vec&amp;lt;Box&amp;lt;dyn RelayPlugin&amp;gt;&amp;gt;&amp;gt;,&lt;br/&gt;    /// Plugins managers, each one have their own plugins&lt;br/&gt;    plugins_managers: Arc&amp;lt;Vec&amp;lt;Box&amp;lt;dyn PluginsManagerTrait&amp;gt;&amp;gt;&amp;gt;,&lt;br/&gt;    /// Relay middlewares&lt;br/&gt;    middlewares:      Arc&amp;lt;Vec&amp;lt;MiddlewareFn&amp;lt;S&amp;gt;&amp;gt;&amp;gt;,&lt;br/&gt;    /// Middleware state&lt;br/&gt;    middleware_state: S,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Builder of [PluginsManager]&lt;br/&gt;pub struct PluginsManagerBuilder&amp;lt;S&amp;gt;&lt;br/&gt;where&lt;br/&gt;    S: Clone,&lt;br/&gt;{&lt;br/&gt;    /// Plugins where any one can accept the event/query&lt;br/&gt;    any_plugins:      Vec&amp;lt;Box&amp;lt;dyn RelayPlugin&amp;gt;&amp;gt;,&lt;br/&gt;    /// Plugins where all must accept the event/query&lt;br/&gt;    all_plugins:      Vec&amp;lt;Box&amp;lt;dyn RelayPlugin&amp;gt;&amp;gt;,&lt;br/&gt;    /// Other plugins managers&lt;br/&gt;    plugins_managers: Vec&amp;lt;Box&amp;lt;dyn PluginsManagerTrait&amp;gt;&amp;gt;,&lt;br/&gt;    /// Relay middlewares&lt;br/&gt;    middlewares:      Vec&amp;lt;MiddlewareFn&amp;lt;S&amp;gt;&amp;gt;,&lt;br/&gt;    /// Middleware state&lt;br/&gt;    middleware_state: S,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Plugin interface for validating relay events and queries&lt;br/&gt;pub trait RelayPlugin: Send &#43; Sync {&lt;br/&gt;    /// Determines whether the event should be accepted or rejected.&lt;br/&gt;    ///&lt;br/&gt;    /// Returns `Some(WritePolicyResult)` to accept or reject, or `None` to take&lt;br/&gt;    /// no action.&lt;br/&gt;    #[allow(unused_variables)]&lt;br/&gt;    fn check_event&amp;lt;&amp;#39;a&amp;gt;(&amp;amp;&amp;#39;a self, event: &amp;amp;&amp;#39;a Event) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, Option&amp;lt;WritePolicyResult&amp;gt;&amp;gt; {&lt;br/&gt;        Box::pin(async { None })&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Determines whether the query should be processed or not.&lt;br/&gt;    ///&lt;br/&gt;    /// Returns `Some(QueryPolicyResult)` to process or reject the query, or&lt;br/&gt;    /// `None` to take no action.&lt;br/&gt;    #[allow(unused_variables)]&lt;br/&gt;    fn check_query&amp;lt;&amp;#39;a&amp;gt;(&amp;amp;&amp;#39;a self, query: &amp;amp;&amp;#39;a Filter) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, Option&amp;lt;QueryPolicyResult&amp;gt;&amp;gt; {&lt;br/&gt;        Box::pin(async { None })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;S&amp;gt; PluginsManagerBuilder&amp;lt;S&amp;gt;&lt;br/&gt;where&lt;br/&gt;    S: Clone &#43; Sync &#43; Send,&lt;br/&gt;{&lt;br/&gt;    /// Adds an `any` plugin.&lt;br/&gt;    ///&lt;br/&gt;    /// executing after `all` plugins in order.&lt;br/&gt;    #[inline]&lt;br/&gt;    pub fn add_any&amp;lt;P&amp;gt;(mut self, plugin: P) -&amp;gt; Self&lt;br/&gt;    where&lt;br/&gt;        P: RelayPlugin &#43; &amp;#39;static,&lt;br/&gt;    {&lt;br/&gt;        self.any_plugins.push(Box::new(plugin));&lt;br/&gt;        self&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Adds an `all` plugin.&lt;br/&gt;    ///&lt;br/&gt;    /// executing in order.&lt;br/&gt;    #[inline]&lt;br/&gt;    pub fn add_all&amp;lt;P&amp;gt;(mut self, plugin: P) -&amp;gt; Self&lt;br/&gt;    where&lt;br/&gt;        P: RelayPlugin &#43; &amp;#39;static,&lt;br/&gt;    {&lt;br/&gt;        self.all_plugins.push(Box::new(plugin));&lt;br/&gt;        self&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Add a plugins manager if it&amp;#39;s `Some`&lt;br/&gt;    #[inline]&lt;br/&gt;    pub fn add_plugins_manager&amp;lt;P&amp;gt;(mut self, plugins_manager: Option&amp;lt;P&amp;gt;) -&amp;gt; Self&lt;br/&gt;    where&lt;br/&gt;        P: PluginsManagerTrait &#43; &amp;#39;static,&lt;br/&gt;    {&lt;br/&gt;        if let Some(manager) = plugins_manager {&lt;br/&gt;            self.plugins_managers.push(Box::new(manager));&lt;br/&gt;        }&lt;br/&gt;        self&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Add a middleware&lt;br/&gt;    #[inline]&lt;br/&gt;    pub fn add_middleware(mut self, middleware: MiddlewareFn&amp;lt;S&amp;gt;) -&amp;gt; Self {&lt;br/&gt;        self.middlewares.push(middleware);&lt;br/&gt;        self&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Add a middlewares state&lt;br/&gt;    pub fn with_middlewares_state(state: S) -&amp;gt; PluginsManagerBuilder&amp;lt;S&amp;gt; {&lt;br/&gt;        PluginsManagerBuilder {&lt;br/&gt;            any_plugins:      Vec::new(),&lt;br/&gt;            all_plugins:      Vec::new(),&lt;br/&gt;            plugins_managers: Vec::new(),&lt;br/&gt;            middlewares:      Vec::new(),&lt;br/&gt;            middleware_state: state,&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Build the plugins manager&lt;br/&gt;    #[inline]&lt;br/&gt;    pub fn build(self) -&amp;gt; PluginsManager&amp;lt;S&amp;gt; {&lt;br/&gt;        PluginsManager {&lt;br/&gt;            any_plugins:      Arc::new(self.any_plugins),&lt;br/&gt;            all_plugins:      Arc::new(self.all_plugins),&lt;br/&gt;            plugins_managers: Arc::new(self.plugins_managers),&lt;br/&gt;            middlewares:      Arc::new(self.middlewares),&lt;br/&gt;            middleware_state: self.middleware_state,&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;S&amp;gt; PluginsManager&amp;lt;S&amp;gt;&lt;br/&gt;where&lt;br/&gt;    S: Clone &#43; Send &#43; Sync,&lt;br/&gt;{&lt;br/&gt;    /// Returns the first reject if no plugin accepted the event.&lt;br/&gt;    #[inline(always)]&lt;br/&gt;    async fn check_write_any_plugins(&amp;amp;self, event: &amp;amp;Event) -&amp;gt; Option&amp;lt;WritePolicyResult&amp;gt; {&lt;br/&gt;        let mut first_reject = None;&lt;br/&gt;&lt;br/&gt;        for plugin in self.any_plugins.as_ref() {&lt;br/&gt;            match plugin.check_event(event).await {&lt;br/&gt;                Some(WritePolicyResult::Accept) =&amp;gt; {&lt;br/&gt;                    // If one plugin accept the event, set the rejection to `None`&lt;br/&gt;                    // and exit the for-loop&lt;br/&gt;                    first_reject = None;&lt;br/&gt;                    break;&lt;br/&gt;                }&lt;br/&gt;                Some(reject) if first_reject.is_none() =&amp;gt; first_reject = Some(reject),&lt;br/&gt;                // For subsequent rejections, we don&amp;#39;t need to store them&lt;br/&gt;                _ =&amp;gt; {}&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // If there is a rejection, there is no plugin accept the event&lt;br/&gt;        first_reject&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Returns the first reject if no plugin accepted the query.&lt;br/&gt;    #[inline(always)]&lt;br/&gt;    async fn check_query_any_plugins(&amp;amp;self, query: &amp;amp;Filter) -&amp;gt; Option&amp;lt;QueryPolicyResult&amp;gt; {&lt;br/&gt;        let mut first_reject = None;&lt;br/&gt;&lt;br/&gt;        for plugin in self.any_plugins.as_ref() {&lt;br/&gt;            match plugin.check_query(query).await {&lt;br/&gt;                Some(QueryPolicyResult::Accept) =&amp;gt; {&lt;br/&gt;                    // If one plugin accept the query, set the rejection to `None`&lt;br/&gt;                    // and exit the for-loop&lt;br/&gt;                    first_reject = None;&lt;br/&gt;                    break;&lt;br/&gt;                }&lt;br/&gt;                Some(reject) if first_reject.is_none() =&amp;gt; first_reject = Some(reject),&lt;br/&gt;                // For subsequent rejections, we don&amp;#39;t need to store them&lt;br/&gt;                _ =&amp;gt; {}&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // If there is a rejection, there is no plugin accept the query&lt;br/&gt;        first_reject&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;S&amp;gt; WritePolicy for PluginsManager&amp;lt;S&amp;gt;&lt;br/&gt;where&lt;br/&gt;    S: Clone &#43; Send &#43; Sync,&lt;br/&gt;{&lt;br/&gt;    fn admit_event&amp;lt;&amp;#39;a&amp;gt;(&lt;br/&gt;        &amp;amp;&amp;#39;a self,&lt;br/&gt;        event: &amp;amp;&amp;#39;a Event,&lt;br/&gt;        addr: &amp;amp;&amp;#39;a SocketAddr,&lt;br/&gt;    ) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, WritePolicyResult&amp;gt; {&lt;br/&gt;        Box::pin(async {&lt;br/&gt;            // All of the `all-plugins` must accept the event&lt;br/&gt;            for plugin in self.all_plugins.as_ref() {&lt;br/&gt;                // Return the first reject&lt;br/&gt;                if let Some(reject @ WritePolicyResult::Reject { .. }) =&lt;br/&gt;                    plugin.check_event(event).await&lt;br/&gt;                {&lt;br/&gt;                    return reject;&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            if let Some(reject_result) = self.check_write_any_plugins(event).await {&lt;br/&gt;                return reject_result;&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            for manager in self.plugins_managers.as_ref() {&lt;br/&gt;                if let reject @ WritePolicyResult::Reject { .. } =&lt;br/&gt;                    manager.admit_event(event, addr).await&lt;br/&gt;                {&lt;br/&gt;                    return reject;&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            // Run the middlewares&lt;br/&gt;            futures::future::join_all(&lt;br/&gt;                self.middlewares&lt;br/&gt;                    .as_ref()&lt;br/&gt;                    .iter()&lt;br/&gt;                    .map(|m_fn| m_fn(Either::Right(event), self.middleware_state.clone())),&lt;br/&gt;            )&lt;br/&gt;            .await;&lt;br/&gt;&lt;br/&gt;            WritePolicyResult::Accept&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;S&amp;gt; QueryPolicy for PluginsManager&amp;lt;S&amp;gt;&lt;br/&gt;where&lt;br/&gt;    S: Clone &#43; Send &#43; Sync,&lt;br/&gt;{&lt;br/&gt;    fn admit_query&amp;lt;&amp;#39;a&amp;gt;(&lt;br/&gt;        &amp;amp;&amp;#39;a self,&lt;br/&gt;        query: &amp;amp;&amp;#39;a Filter,&lt;br/&gt;        addr: &amp;amp;&amp;#39;a SocketAddr,&lt;br/&gt;    ) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, QueryPolicyResult&amp;gt; {&lt;br/&gt;        Box::pin(async {&lt;br/&gt;            // All of the `all-plugins` must accept the query&lt;br/&gt;            for plugin in self.all_plugins.as_ref() {&lt;br/&gt;                // Return the first reject&lt;br/&gt;                if let Some(reject @ QueryPolicyResult::Reject { .. }) =&lt;br/&gt;                    plugin.check_query(query).await&lt;br/&gt;                {&lt;br/&gt;                    return reject;&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            if let Some(reject) = self.check_query_any_plugins(query).await {&lt;br/&gt;                return reject;&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            for manager in self.plugins_managers.as_ref() {&lt;br/&gt;                if let reject @ QueryPolicyResult::Reject { .. } =&lt;br/&gt;                    manager.admit_query(query, addr).await&lt;br/&gt;                {&lt;br/&gt;                    return reject;&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            // Run the middlewares&lt;br/&gt;            futures::future::join_all(&lt;br/&gt;                self.middlewares&lt;br/&gt;                    .as_ref()&lt;br/&gt;                    .iter()&lt;br/&gt;                    .map(|m_fn| m_fn(Either::Left(query), self.middleware_state.clone())),&lt;br/&gt;            )&lt;br/&gt;            .await;&lt;br/&gt;&lt;br/&gt;            QueryPolicyResult::Accept&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;S&amp;gt; fmt::Debug for PluginsManager&amp;lt;S&amp;gt;&lt;br/&gt;where&lt;br/&gt;    S: Clone &#43; Send &#43; Sync,&lt;br/&gt;{&lt;br/&gt;    fn fmt(&amp;amp;self, f: &amp;amp;mut fmt::Formatter&amp;lt;&amp;#39;_&amp;gt;) -&amp;gt; fmt::Result {&lt;br/&gt;        f.debug_struct(&amp;#34;PluginsManager&amp;#34;)&lt;br/&gt;            .field(&amp;#34;any_plugins&amp;#34;, &amp;amp;self.any_plugins.len())&lt;br/&gt;            .field(&amp;#34;all_plugins&amp;#34;, &amp;amp;self.all_plugins.len())&lt;br/&gt;            .finish()&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl Default for PluginsManagerBuilder&amp;lt;()&amp;gt; {&lt;br/&gt;    fn default() -&amp;gt; Self {&lt;br/&gt;        Self {&lt;br/&gt;            any_plugins:      Default::default(),&lt;br/&gt;            all_plugins:      Default::default(),&lt;br/&gt;            plugins_managers: Default::default(),&lt;br/&gt;            middlewares:      Default::default(),&lt;br/&gt;            middleware_state: Default::default(),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsvc7emh4wm9093drs9rgn8w4sa9zd23svgd3rzjyt498afqxmrkggzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77tdzgr0</id>
    
      <title type="html"># Apply an Open Patch &amp;gt; `n34 patch apply` command **Usage:** ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsvc7emh4wm9093drs9rgn8w4sa9zd23svgd3rzjyt498afqxmrkggzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77tdzgr0" />
    <content type="html">
      # Apply an Open Patch&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 patch apply` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Set an open patch status to applied&lt;br/&gt;&lt;br/&gt;Usage: n34 patch apply [OPTIONS] &amp;lt;PATCH_ID&amp;gt; [APPLIED_COMMITS]...&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  &amp;lt;PATCH_ID&amp;gt;            The open patch id to apply it. Must be orignal root patch or revision root&lt;br/&gt;  [APPLIED_COMMITS]...  The applied commits&lt;br/&gt;&lt;br/&gt;Options:&lt;br/&gt;      --repo &amp;lt;NADDR-NIP05-OR-SET&amp;gt;  Repository address in `naddr` format (`naddr1...`), NIP-05 format (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`&lt;br/&gt;      --patches &amp;lt;PATCH-EVENT-ID&amp;gt;   Patches that have been applied. Use this when only some patches have been applied, not all&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;Creates a kind `1631` event (Applied/Merged status) for the specified patch. The&lt;br/&gt;patch must be in open status.&lt;br/&gt;&lt;br/&gt;You can specify either an original patch or revision patch ID, but the status&lt;br/&gt;event will only reference the original patch. Revision patches will be mentioned&lt;br/&gt;in the event.&lt;br/&gt;&lt;br/&gt;The `APPLIED_COMMITS` field serves to inform clients about the status of&lt;br/&gt;specific commits, whether they have been applied or not. If you need to retrieve&lt;br/&gt;the list of commits from a specific point (such as the tip of the master branch)&lt;br/&gt;up to the `HEAD`, you can use the following Git command: `git log --pretty=%H&lt;br/&gt;&amp;#39;origin/master..HEAD&amp;#39;`.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsvcqjgnhszxh0sjtw45z8dwtaay7y5rugjr6z4n4n564uye9yufkszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk778hk94k</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsvcqjgnhszxh0sjtw45z8dwtaay7y5rugjr6z4n4n564uye9yufkszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk778hk94k" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::{net::SocketAddr, /*process::ExitCode, */sync::Arc};&lt;br/&gt;&lt;br/&gt;use axum::Extension;&lt;br/&gt;use hyper::{Method, header};&lt;br/&gt;use tokio::signal;&lt;br/&gt;use tower_http::{&lt;br/&gt;    cors,&lt;br/&gt;    decompression::RequestDecompressionLayer,&lt;br/&gt;    trace::{DefaultMakeSpan, TraceLayer},&lt;br/&gt;};&lt;br/&gt;use tracing::level_filters::LevelFilter;&lt;br/&gt;use tracing_subscriber::{EnvFilter, Layer, layer::SubscriberExt};&lt;br/&gt;&lt;br/&gt;/// Relay endpoints&lt;br/&gt;pub mod endpoints;&lt;br/&gt;/// Relay errors.&lt;br/&gt;pub mod errors;&lt;br/&gt;/// Extension traits&lt;br/&gt;pub mod ext_traits;&lt;br/&gt;/// GRASP git server&lt;br/&gt;pub mod git_server;&lt;br/&gt;/// Relay pathes.&lt;br/&gt;pub mod pathes;&lt;br/&gt;/// Raw axum websocket&lt;br/&gt;pub mod raw_websocket;&lt;br/&gt;/// Our relay.&lt;br/&gt;pub mod relay;&lt;br/&gt;/// Relay configuration.&lt;br/&gt;pub mod relay_config;&lt;br/&gt;/// Router state&lt;br/&gt;pub mod router_state;&lt;br/&gt;/// Some useful utils.&lt;br/&gt;pub mod utils;&lt;br/&gt;&lt;br/&gt;use self::{errors::RelayResult, relay_config::RelayConfig, router_state::RouterState};&lt;br/&gt;&lt;br/&gt;/// Sets up default logging with two outputs, stderr and a log file.&lt;br/&gt;///&lt;br/&gt;/// Log level for stderr is controlled by `RUST_LOG` environment variable,&lt;br/&gt;/// defaults to `ERROR`. The log file always uses `TRACE` level.&lt;br/&gt;pub fn setup_logs() -&amp;gt; errors::RelayResult&amp;lt;()&amp;gt; {&lt;br/&gt;    tracing::subscriber::set_global_default(&lt;br/&gt;        tracing_subscriber::registry()&lt;br/&gt;            .with(&lt;br/&gt;                tracing_subscriber::fmt::layer()&lt;br/&gt;                    .with_ansi(true)&lt;br/&gt;                    .with_writer(std::io::stderr)&lt;br/&gt;                    .without_time()&lt;br/&gt;                    .with_filter(EnvFilter::from_default_env()),&lt;br/&gt;            )&lt;br/&gt;            .with(&lt;br/&gt;                tracing_subscriber::fmt::layer()&lt;br/&gt;                    .with_ansi(false)&lt;br/&gt;                    .with_writer(utils::logs_file()?)&lt;br/&gt;                    .with_file(false)&lt;br/&gt;                    .with_line_number(false)&lt;br/&gt;                    .with_filter(LevelFilter::TRACE),&lt;br/&gt;            ),&lt;br/&gt;    )&lt;br/&gt;    .ok();&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;pub async fn shutdown_signal() {&lt;br/&gt;    let ctrl_c = async {&lt;br/&gt;        signal::ctrl_c()&lt;br/&gt;            .await&lt;br/&gt;            .expect(&amp;#34;Failed to install CTRL&#43;C handler&amp;#34;);&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    #[cfg(unix)]&lt;br/&gt;    let terminate = async {&lt;br/&gt;        use tokio::signal::unix::SignalKind;&lt;br/&gt;&lt;br/&gt;        signal::unix::signal(SignalKind::terminate())&lt;br/&gt;            .expect(&amp;#34;Failed to create SIGTERM handler&amp;#34;)&lt;br/&gt;            .recv()&lt;br/&gt;            .await;&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    #[cfg(not(unix))]&lt;br/&gt;    let terminate = std::future::pending::&amp;lt;()&amp;gt;();&lt;br/&gt;&lt;br/&gt;    tokio::select! {&lt;br/&gt;        _ = ctrl_c =&amp;gt; {},&lt;br/&gt;        _ = terminate =&amp;gt; {},&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;pub async fn try_main() -&amp;gt; RelayResult&amp;lt;()&amp;gt; {&lt;br/&gt;    setup_logs()?;&lt;br/&gt;    let config = Arc::new(RelayConfig::reload()?);&lt;br/&gt;    let relay_db = config.get_relay_db().await?;&lt;br/&gt;    let n34_relay = Arc::new(relay::build_relay(Arc::clone(&amp;amp;config), Arc::clone(&amp;amp;relay_db)).await);&lt;br/&gt;    let addr = SocketAddr::new(config.net.ip, config.net.port);&lt;br/&gt;&lt;br/&gt;    tracing::debug!(&amp;#34;Running relay with configuration: {config:#?}&amp;#34;);&lt;br/&gt;    tracing::info!(&amp;#34;Relay is running at `{}`&amp;#34;, n34_relay.url().await);&lt;br/&gt;&lt;br/&gt;    let mut app = axum::Router::new()&lt;br/&gt;        // main handler. GET and POST&lt;br/&gt;        .route(&amp;#34;/&amp;#34;, axum::routing::get(endpoints::main_handler).post(endpoints::main_handler));&lt;br/&gt;&lt;br/&gt;    if config.grasp.enable {&lt;br/&gt;        tracing::info!(&amp;#34;Git server is running&amp;#34;);&lt;br/&gt;        app = app.merge(git_server::router(&amp;amp;config));&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    app = app&lt;br/&gt;        // enable cross-origin access&lt;br/&gt;        .route(&lt;br/&gt;            &amp;#34;/&amp;#34;,&lt;br/&gt;            axum::routing::options(|| async { hyper::StatusCode::NO_CONTENT }),&lt;br/&gt;        )&lt;br/&gt;        .layer(&lt;br/&gt;            cors::CorsLayer::new()&lt;br/&gt;                .allow_origin(cors::Any)&lt;br/&gt;                .allow_methods([Method::GET, Method::POST])&lt;br/&gt;                .allow_headers([header::CONTENT_TYPE]),&lt;br/&gt;        )&lt;br/&gt;        .layer(&lt;br/&gt;            TraceLayer::new_for_http()&lt;br/&gt;                .make_span_with(DefaultMakeSpan::default().include_headers(true)),&lt;br/&gt;        )&lt;br/&gt;        .layer(RequestDecompressionLayer::new())&lt;br/&gt;        .layer(Extension(Arc::new(RouterState::new(&lt;br/&gt;            config, n34_relay, relay_db,&lt;br/&gt;        ))));&lt;br/&gt;&lt;br/&gt;    axum::serve(&lt;br/&gt;        tokio::net::TcpListener::bind(addr).await?,&lt;br/&gt;        app.into_make_service_with_connect_info::&amp;lt;SocketAddr&amp;gt;(),&lt;br/&gt;    )&lt;br/&gt;    .with_graceful_shutdown(shutdown_signal())&lt;br/&gt;    .await?;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;// #[tokio::main]&lt;br/&gt;// async fn main() -&amp;gt; ExitCode {&lt;br/&gt;//     if let Err(err) = try_main().await {&lt;br/&gt;//         eprintln!(&amp;#34;{err}&amp;#34;);&lt;br/&gt;//         return ExitCode::FAILURE;&lt;br/&gt;//     }&lt;br/&gt;// &lt;br/&gt;//     tracing::info!(&amp;#34;Exited gracefully without any errors&amp;#34;);&lt;br/&gt;//     ExitCode::SUCCESS&lt;br/&gt;// }&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsv9aag9evzk34ws283z0cv9uyf2e0gw9mkertsxlkxwkf8nuhn2xqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7793ulpx</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] fn main() -&amp;gt; Result&amp;lt;(), ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsv9aag9evzk34ws283z0cv9uyf2e0gw9mkertsxlkxwkf8nuhn2xqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7793ulpx" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    get_file_hash_core::frost_mailbox_logic::simulate_frost_mailbox_post_signer()&lt;br/&gt;}&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example frost_mailbox_post --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsvrckk94z29wf5m8ndhdsfhnxvk3mw493y0wjqm7j78eaf40x8r0czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk778utz8m</id>
    
      <title type="html"># View an Issue By ID &amp;gt; `n34 issue view` command **Usage:** ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsvrckk94z29wf5m8ndhdsfhnxvk3mw493y0wjqm7j78eaf40x8r0czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk778utz8m" />
    <content type="html">
      # View an Issue By ID&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 issue view` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;View an issue by its ID&lt;br/&gt;&lt;br/&gt;Usage: n34 issue view [OPTIONS] &amp;lt;ISSUE_ID&amp;gt;&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  &amp;lt;ISSUE_ID&amp;gt;  The issue id to view it&lt;br/&gt;&lt;br/&gt;Options:&lt;br/&gt;      --repo &amp;lt;NADDR-NIP05-OR-SET&amp;gt;  Repository address in `naddr` format (`naddr1...`), NIP-05 format (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;Simply provide the issue ID in `note` or `nevent` format to retrieve and display&lt;br/&gt;the issue details.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsvr2m69unx9qxf0dzll0wwx57fw68quvrcf9mwcy2vh39qpezk89czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk777pyjus</id>
    
      <title type="html">#[tokio::main] #[cfg(feature = &amp;#34;nostr&amp;#34;)] ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsvr2m69unx9qxf0dzll0wwx57fw68quvrcf9mwcy2vh39qpezk89czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk777pyjus" />
    <content type="html">
      #[tokio::main]&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;#[allow(unused_imports)]&lt;br/&gt;async fn main() {&lt;br/&gt;    use get_file_hash_core::repository_announcement;&lt;br/&gt;    use get_file_hash_core::get_file_hash;&lt;br/&gt;    use nostr_sdk::Keys;&lt;br/&gt;    use sha2::{Digest, Sha256};&lt;br/&gt;    use nostr_sdk::EventId;&lt;br/&gt;    use std::str::FromStr;&lt;br/&gt;&lt;br/&gt;    let keys = Keys::generate();&lt;br/&gt;    let relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;    let project_name = &amp;#34;my-awesome-repo-example&amp;#34;;&lt;br/&gt;    let description = &amp;#34;A fantastic new project example.&amp;#34;;&lt;br/&gt;    let clone_url = &amp;#34;git@github.com:user/my-awesome-repo-example.git&amp;#34;;&lt;br/&gt;    &lt;br/&gt;    // Dummy EventId for examples that require a build_manifest_event_id&lt;br/&gt;    const DUMMY_BUILD_MANIFEST_ID_STR: &amp;amp;str = &amp;#34;f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0&amp;#34;;&lt;br/&gt;    let dummy_build_manifest_id = EventId::from_str(DUMMY_BUILD_MANIFEST_ID_STR).unwrap();&lt;br/&gt;&lt;br/&gt;    // Example 1: Without build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing repository announcement without build_manifest_event_id...&amp;#34;);&lt;br/&gt;    repository_announcement!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        project_name,&lt;br/&gt;        description,&lt;br/&gt;        clone_url,&lt;br/&gt;        &amp;#34;../Cargo.toml&amp;#34; // Use a known file in your project&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Repository announcement without build_manifest_event_id published.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // Example 2: With build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing repository announcement with build_manifest_event_id...&amp;#34;);&lt;br/&gt;    repository_announcement!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        project_name,&lt;br/&gt;        description,&lt;br/&gt;        clone_url,&lt;br/&gt;        &amp;#34;../Cargo.toml&amp;#34;, // Use a known file in your project&lt;br/&gt;        Some(&amp;amp;dummy_build_manifest_id)&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Repository announcement with build_manifest_event_id published.&amp;#34;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example repository_announcement --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqstl4zjajs2cvr3ny23kund60767t68ww8wsknyn9u9pgtph48d8yqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk779vyqc4</id>
    
      <title type="html"># Default PoW Difficulty &amp;gt; `n34 config pow` **Usage:** ``` ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqstl4zjajs2cvr3ny23kund60767t68ww8wsknyn9u9pgtph48d8yqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk779vyqc4" />
    <content type="html">
      # Default PoW Difficulty&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 config pow`&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Sets the default PoW difficulty (0 if not specified)&lt;br/&gt;&lt;br/&gt;Usage: n34 config pow &amp;lt;DIFFICULTY&amp;gt;&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  &amp;lt;DIFFICULTY&amp;gt;  The new default PoW difficulty&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;This command configures the default Proof of Work (PoW) difficulty for newly&lt;br/&gt;created events. This setting is applied to most generated events, but it&lt;br/&gt;intentionally skips patch events. Because patches can be numerous, calculating&lt;br/&gt;PoW for each one would significantly slow down operations.&lt;br/&gt;&lt;br/&gt;If you want to disable the PoW just make it 0.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqstlnqxrtzgr557skvkce27meskhrhg33vexxa83vpv2n2k2skvv3szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77cl3eey</id>
    
      <title type="html">Developer Certificate of Origin Version 1.1 Copyright (C) 2004, ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqstlnqxrtzgr557skvkce27meskhrhg33vexxa83vpv2n2k2skvv3szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77cl3eey" />
    <content type="html">
      Developer Certificate of Origin&lt;br/&gt;Version 1.1&lt;br/&gt;&lt;br/&gt;Copyright (C) 2004, 2006 The Linux Foundation and its contributors.&lt;br/&gt;&lt;br/&gt;Everyone is permitted to copy and distribute verbatim copies of this&lt;br/&gt;license document, but changing it is not allowed.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Developer&amp;#39;s Certificate of Origin 1.1&lt;br/&gt;&lt;br/&gt;By making a contribution to this project, I certify that:&lt;br/&gt;&lt;br/&gt;(a) The contribution was created in whole or in part by me and I&lt;br/&gt;    have the right to submit it under the open source license&lt;br/&gt;    indicated in the file; or&lt;br/&gt;&lt;br/&gt;(b) The contribution is based upon previous work that, to the best&lt;br/&gt;    of my knowledge, is covered under an appropriate open source&lt;br/&gt;    license and I have the right under that license to submit that&lt;br/&gt;    work with modifications, whether created in whole or in part&lt;br/&gt;    by me, under the same open source license (unless I am&lt;br/&gt;    permitted to submit under a different license), as indicated&lt;br/&gt;    in the file; or&lt;br/&gt;&lt;br/&gt;(c) The contribution was provided directly to me by some other&lt;br/&gt;    person who certified (a), (b) or (c) and I have not modified&lt;br/&gt;    it.&lt;br/&gt;&lt;br/&gt;(d) I understand and agree that this project and the contribution&lt;br/&gt;    are public and that a record of the contribution (including all&lt;br/&gt;    personal information I submit with it, including my sign-off) is&lt;br/&gt;    maintained indefinitely and may be redistributed consistent with&lt;br/&gt;    this project or the open source license(s) involved.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqstkcsfsy0rc7z5qhswwudc22j9wtt3pzd0ajessh0k2twjnpefqegzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77d6cel0</id>
    
      <title type="html">#!/usr/bin/env sh cargo run --bin n34 -- repo view ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqstkcsfsy0rc7z5qhswwudc22j9wtt3pzd0ajessh0k2twjnpefqegzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77d6cel0" />
    <content type="html">
      #!/usr/bin/env sh&lt;br/&gt;cargo run --bin n34 -- repo view naddr1qqpkuve5qgsqqqqqq9g9uljgjfcyd6dm4fegk8em2yfz0c3qp3tc6mntkrrhawgrqsqqqaueqyf8wumn8ghj7mn0wd68yt35wfejumnvqyt8wumn8ghj7un9d3shjtnswf5k6ctv9ehx2aqpp4mhxue69uhkummn9ekx7mqppamhxue69uhkummnw3ezumt0d5q3gamnwvaz7tmjv4kxz7fwv3sk6atn9e5k7qg5waehxw309ahx7um5wghx77r5wghxgetkxpx8xj&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqst5khqwg4gzl38zxz53dgzedkcne67hfz3q6ulne3uvmpjejvfk9qzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77mmtqa7</id>
    
      <title type="html">use rand_chacha::ChaCha20Rng; use ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqst5khqwg4gzl38zxz53dgzedkcne67hfz3q6ulne3uvmpjejvfk9qzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77mmtqa7" />
    <content type="html">
      use rand_chacha::ChaCha20Rng;&lt;br/&gt;use rand_chacha::rand_core::SeedableRng;&lt;br/&gt;use frost_secp256k1_tr as frost;&lt;br/&gt;use frost::{Identifier, keys::IdentifierList, round1, round2};&lt;br/&gt;use std::collections::BTreeMap;&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    let mut dealer_rng = ChaCha20Rng::from_seed([0u8; 32]);&lt;br/&gt;    let min_signers = 2;&lt;br/&gt;    let (shares, pubkey_package) = frost::keys::generate_with_dealer(&lt;br/&gt;        3, min_signers, IdentifierList::Default, &amp;amp;mut dealer_rng&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    // 1. Setup Signer (P1) and peer (P2)&lt;br/&gt;    let p1_id = Identifier::try_from(1u16)?;&lt;br/&gt;    let p2_id = Identifier::try_from(2u16)?;&lt;br/&gt;    &lt;br/&gt;    // 2. Round 1: Both signers generate nonces (Simulating P2&amp;#39;s contribution)&lt;br/&gt;    let mut rng1 = ChaCha20Rng::from_seed([1u8; 32]);&lt;br/&gt;    let (p1_nonces, p1_commitments) = round1::commit(shares[&amp;amp;p1_id].signing_share(), &amp;amp;mut rng1);&lt;br/&gt;&lt;br/&gt;    let mut rng2 = ChaCha20Rng::from_seed([2u8; 32]);&lt;br/&gt;    let (_p2_nonces, p2_commitments) = round1::commit(shares[&amp;amp;p2_id].signing_share(), &amp;amp;mut rng2);&lt;br/&gt;&lt;br/&gt;    // 3. Coordinator: Create a valid SigningPackage with 2 signers&lt;br/&gt;    let message = b&amp;#34;gnostr-gcc-verification-test&amp;#34;;&lt;br/&gt;    let mut commitments_map = BTreeMap::new();&lt;br/&gt;    commitments_map.insert(p1_id, p1_commitments);&lt;br/&gt;    commitments_map.insert(p2_id, p2_commitments); // Added P2 to satisfy threshold&lt;br/&gt;    &lt;br/&gt;    let signing_package = frost::SigningPackage::new(commitments_map, message);&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;--- BIP-64MOD Round 2: Signer Validation ---&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // 4. SIGNER-SIDE CHECK (Manual)&lt;br/&gt;    if !signing_package.signing_commitments().contains_key(&amp;amp;p1_id) {&lt;br/&gt;        return Err(&amp;#34;Validation Failed: My commitment is missing!&amp;#34;.into());&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    let commitment_count = signing_package.signing_commitments().len() as u16;&lt;br/&gt;    if commitment_count &amp;lt; min_signers {&lt;br/&gt;         return Err(format!(&amp;#34;Validation Failed: Only {} commitments provided, need {}.&amp;#34;, commitment_count, min_signers).into());&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;✅ Signing Package validated ({} signers).&amp;#34;, commitment_count);&lt;br/&gt;    println!(&amp;#34;Proceeding to sign message: {:?}&amp;#34;, String::from_utf8_lossy(message));&lt;br/&gt;&lt;br/&gt;    // 5. Generate the Share&lt;br/&gt;    let p1_verifying_share = frost::keys::VerifyingShare::from(*shares[&amp;amp;p1_id].signing_share());&lt;br/&gt;    let p1_key_package = frost::keys::KeyPackage::new(&lt;br/&gt;        p1_id,&lt;br/&gt;        *shares[&amp;amp;p1_id].signing_share(),&lt;br/&gt;        p1_verifying_share,&lt;br/&gt;        *pubkey_package.verifying_key(),&lt;br/&gt;        min_signers,&lt;br/&gt;    );&lt;br/&gt;&lt;br/&gt;    let p1_signature_share = round2::sign(&amp;amp;signing_package, &amp;amp;p1_nonces, &amp;amp;p1_key_package)?;&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;\nPartial Signature Share for P1:&amp;#34;);&lt;br/&gt;    println!(&amp;#34;{}&amp;#34;, hex::encode(p1_signature_share.serialize()));&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() { println!(&amp;#34;Enable nostr feature.&amp;#34;); }&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqst0jzhwtucfz4y7l3zjylrk2vwnr55tfjvk4c6la3jwy25nrt6pkqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77jsfzx4</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqst0jzhwtucfz4y7l3zjylrk2vwnr55tfjvk4c6la3jwy25nrt6pkqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77jsfzx4" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use crate::utils;&lt;br/&gt;&lt;br/&gt;/// The null/zero SHA-1 hash indicating deletion or non-existence.&lt;br/&gt;const NULL_OID: &amp;amp;str = &amp;#34;0000000000000000000000000000000000000000&amp;#34;;&lt;br/&gt;&lt;br/&gt;/// Represents a ref update pkt-line in a Git protocol.&lt;br/&gt;#[derive(Debug)]&lt;br/&gt;pub struct RefUpdatePkt&amp;lt;&amp;#39;a&amp;gt; {&lt;br/&gt;    /// The old commit hash (before the update).&lt;br/&gt;    pub old_commit:   &amp;amp;&amp;#39;a str,&lt;br/&gt;    /// The new commit hash (after the update).&lt;br/&gt;    pub new_commit:   &amp;amp;&amp;#39;a str,&lt;br/&gt;    /// The name of the reference (e.g., &amp;#34;refs/heads/master&amp;#34;).&lt;br/&gt;    pub ref_name:     &amp;amp;&amp;#39;a str,&lt;br/&gt;    /// The capabilities.&lt;br/&gt;    pub capabilities: Option&amp;lt;&amp;amp;&amp;#39;a str&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;&amp;#39;a&amp;gt; RefUpdatePkt&amp;lt;&amp;#39;a&amp;gt; {&lt;br/&gt;    /// Parses the ref update payload (without the 4-byte length prefix).&lt;br/&gt;    ///&lt;br/&gt;    /// Expected format: `&amp;lt;old-oid&amp;gt; &amp;lt;new-oid&amp;gt; &amp;lt;ref-name&amp;gt;[\0&amp;lt;capabilities&amp;gt;]`&lt;br/&gt;    pub fn parse(payload: &amp;amp;&amp;#39;a [u8]) -&amp;gt; Result&amp;lt;Self, &amp;amp;&amp;#39;static str&amp;gt; {&lt;br/&gt;        let payload = payload.strip_suffix(b&amp;#34;\n&amp;#34;).unwrap_or(payload);&lt;br/&gt;&lt;br/&gt;        let str_payload =&lt;br/&gt;            str::from_utf8(payload).map_err(|_| &amp;#34;Invalid pkt-line content: not valid UTF-8&amp;#34;)?;&lt;br/&gt;        let mut parts = str_payload.splitn(3, &amp;#39; &amp;#39;);&lt;br/&gt;&lt;br/&gt;        let old_commit = parts.next().ok_or(&amp;#34;Missing old commit hash&amp;#34;)?;&lt;br/&gt;        let new_commit = parts.next().ok_or(&amp;#34;Missing new commit hash&amp;#34;)?;&lt;br/&gt;        let ref_with_caps = parts.next().ok_or(&amp;#34;Missing ref name&amp;#34;)?;&lt;br/&gt;&lt;br/&gt;        // pack-protocol: PKT-LINE(command NUL capability-list)&lt;br/&gt;        let (ref_name, capabilities) = match ref_with_caps.split_once(&amp;#39;\0&amp;#39;) {&lt;br/&gt;            Some((name, caps)) =&amp;gt; (name, Some(caps.trim())),&lt;br/&gt;            None =&amp;gt; (ref_with_caps, None),&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        // Validate OIDs&lt;br/&gt;        if !utils::is_valid_sha1(old_commit) {&lt;br/&gt;            return Err(&amp;#34;Invalid old commit hash&amp;#34;);&lt;br/&gt;        }&lt;br/&gt;        if !utils::is_valid_sha1(new_commit) {&lt;br/&gt;            return Err(&amp;#34;Invalid new commit hash&amp;#34;);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // Validate ref name&lt;br/&gt;        if !ref_name.starts_with(&amp;#34;refs/&amp;#34;) {&lt;br/&gt;            return Err(&amp;#34;Invalid ref name: must start with &amp;#39;refs/&amp;#39;&amp;#34;);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        Ok(Self {&lt;br/&gt;            old_commit,&lt;br/&gt;            new_commit,&lt;br/&gt;            ref_name,&lt;br/&gt;            capabilities,&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Returns `true` if this is a branch/ref deletion (new commit is null&lt;br/&gt;    /// OID).&lt;br/&gt;    #[inline]&lt;br/&gt;    #[must_use]&lt;br/&gt;    pub fn is_delete(&amp;amp;self) -&amp;gt; bool {&lt;br/&gt;        self.new_commit == NULL_OID&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Returns `true` if this is a new branch/ref creation (old commit is null&lt;br/&gt;    /// OID).&lt;br/&gt;    #[allow(dead_code)] // Used in unit tests&lt;br/&gt;    pub fn is_create(&amp;amp;self) -&amp;gt; bool {&lt;br/&gt;        self.old_commit == NULL_OID&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Parses the 4-byte hex length prefix of a pkt-line.&lt;br/&gt;/// Returns `None` for special packets (flush=0000, delim=0001, etc.)&lt;br/&gt;fn parse_pkt_length(data: &amp;amp;[u8]) -&amp;gt; Result&amp;lt;Option&amp;lt;usize&amp;gt;, &amp;amp;&amp;#39;static str&amp;gt; {&lt;br/&gt;    if data.len() &amp;lt; 4 {&lt;br/&gt;        return Err(&amp;#34;Invalid pkt-line: input too short&amp;#34;);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    let len_str =&lt;br/&gt;        str::from_utf8(&amp;amp;data[..4]).map_err(|_| &amp;#34;Invalid pkt-line length: not valid UTF-8&amp;#34;)?;&lt;br/&gt;&lt;br/&gt;    let len = u16::from_str_radix(len_str, 16)&lt;br/&gt;        .map_err(|_| &amp;#34;Invalid pkt-line length: not valid hex&amp;#34;)? as usize;&lt;br/&gt;&lt;br/&gt;    match len {&lt;br/&gt;        0 =&amp;gt; Ok(None), // flush packet (0000)&lt;br/&gt;        1 =&amp;gt; Ok(None), // delimiter packet (0001) - skip&lt;br/&gt;        2 =&amp;gt; Ok(None), // response-end packet (0002) - skip&lt;br/&gt;        3 =&amp;gt; Err(&amp;#34;Invalid pkt-line: length too short&amp;#34;),&lt;br/&gt;        _ =&amp;gt; Ok(Some(len)),&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;fn collect_pkt_lines(body: &amp;amp;[u8]) -&amp;gt; Result&amp;lt;Vec&amp;lt;&amp;amp;[u8]&amp;gt;, &amp;amp;&amp;#39;static str&amp;gt; {&lt;br/&gt;    let mut pkts = Vec::new();&lt;br/&gt;    let mut pos = 0;&lt;br/&gt;&lt;br/&gt;    while pos &amp;lt; body.len() {&lt;br/&gt;        // Need at least 4 bytes for the length prefix&lt;br/&gt;        if body.len() - pos &amp;lt; 4 {&lt;br/&gt;            break;&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // Parse length prefix&lt;br/&gt;        let Some(pkt_len) = parse_pkt_length(&amp;amp;body[pos..])? else {&lt;br/&gt;            break;&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        // Validate we have enough data&lt;br/&gt;        if pos &#43; pkt_len &amp;gt; body.len() {&lt;br/&gt;            return Err(&amp;#34;Invalid pkt-line: declared length exceeds data length&amp;#34;);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // push the pkt (skip the 4-byte length prefix)&lt;br/&gt;        let pkt = &amp;amp;body[pos &#43; 4..pos &#43; pkt_len];&lt;br/&gt;        pkts.push(pkt);&lt;br/&gt;&lt;br/&gt;        pos &#43;= pkt_len;&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    Ok(pkts)&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Parses pkt-line formatted ref-updates from a byte slice.&lt;br/&gt;///&lt;br/&gt;/// Stops parsing when encountering a flush packet (0000) or end of data.&lt;br/&gt;/// Returns the parsed ref updates&lt;br/&gt;pub fn parse_pkt_lines&amp;lt;&amp;#39;a&amp;gt;(body: &amp;amp;&amp;#39;a [u8]) -&amp;gt; Result&amp;lt;Vec&amp;lt;RefUpdatePkt&amp;lt;&amp;#39;a&amp;gt;&amp;gt;, &amp;amp;&amp;#39;static str&amp;gt; {&lt;br/&gt;    let mut ref_updates = Vec::new();&lt;br/&gt;&lt;br/&gt;    // Parse only pkts that looks like command, where the command is:&lt;br/&gt;    //  command =  create / delete / update&lt;br/&gt;    //  create  =  zero-id SP new-id  SP name&lt;br/&gt;    //  delete  =  old-id  SP zero-id SP name&lt;br/&gt;    //  update  =  old-id  SP new-id  SP name&lt;br/&gt;    //&lt;br/&gt;    //  old-id  =  obj-id&lt;br/&gt;    //  new-id  =  obj-id&lt;br/&gt;    //&lt;br/&gt;    // This because we may receive commands and may receive `push-cert` that&lt;br/&gt;    // contains commands `*PKT-LINE(command LF)`. So this parsers will works with&lt;br/&gt;    // both.&lt;br/&gt;    for pkt in collect_pkt_lines(body)? {&lt;br/&gt;        let Ok(pkt_str) = str::from_utf8(pkt) else {&lt;br/&gt;            continue;&lt;br/&gt;        };&lt;br/&gt;        let mut parts = pkt_str.split(&amp;#39; &amp;#39;);&lt;br/&gt;&lt;br/&gt;        if utils::is_valid_sha1(parts.next().unwrap_or_default())&lt;br/&gt;            &amp;amp;&amp;amp; utils::is_valid_sha1(parts.next().unwrap_or_default())&lt;br/&gt;        {&lt;br/&gt;            // it looks like a command&lt;br/&gt;            ref_updates.push(RefUpdatePkt::parse(pkt)?);&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    Ok(ref_updates)&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(test)]&lt;br/&gt;mod tests {&lt;br/&gt;    use super::*;&lt;br/&gt;&lt;br/&gt;    #[test]&lt;br/&gt;    fn parse_single_ref_update() {&lt;br/&gt;        let data = b&amp;#34;006bac281124fd463f368106445a4fe4eb251d9c7d7a 4559b8048c334a7e61c76a622cf7cd578a6af406 refs/heads/test2-file&amp;#34;;&lt;br/&gt;&lt;br/&gt;        let updates = parse_pkt_lines(data).unwrap();&lt;br/&gt;        assert_eq!(updates.len(), 1);&lt;br/&gt;        assert_eq!(updates[0].ref_name, &amp;#34;refs/heads/test2-file&amp;#34;);&lt;br/&gt;        assert_eq!(&lt;br/&gt;            updates[0].old_commit,&lt;br/&gt;            &amp;#34;ac281124fd463f368106445a4fe4eb251d9c7d7a&amp;#34;&lt;br/&gt;        );&lt;br/&gt;        assert_eq!(&lt;br/&gt;            updates[0].new_commit,&lt;br/&gt;            &amp;#34;4559b8048c334a7e61c76a622cf7cd578a6af406&amp;#34;&lt;br/&gt;        );&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[test]&lt;br/&gt;    fn parse_create_branch() {&lt;br/&gt;        let payload = b&amp;#34;0000000000000000000000000000000000000000 53e284c5c3e8b8310077a43d09fd391456f582df refs/heads/new-branch&amp;#34;;&lt;br/&gt;        let update = RefUpdatePkt::parse(payload).unwrap();&lt;br/&gt;&lt;br/&gt;        assert!(update.is_create());&lt;br/&gt;        assert!(!update.is_delete());&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[test]&lt;br/&gt;    fn parse_delete_branch() {&lt;br/&gt;        let payload = b&amp;#34;53e284c5c3e8b8310077a43d09fd391456f582df 0000000000000000000000000000000000000000 refs/heads/old-branch&amp;#34;;&lt;br/&gt;        let update = RefUpdatePkt::parse(payload).unwrap();&lt;br/&gt;&lt;br/&gt;        assert!(update.is_delete());&lt;br/&gt;        assert!(!update.is_create());&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[test]&lt;br/&gt;    fn flush_stops_parsing() {&lt;br/&gt;        let mut data = Vec::new();&lt;br/&gt;        data.extend_from_slice(b&amp;#34;00b10000000000000000000000000000000000000000 ac281124fd463f368106445a4fe4eb251d9c7d7a refs/heads/master\0report-status-v2 side-band-64k object-format=sha1 agent=git/2.51.2-Linux\n&amp;#34;);&lt;br/&gt;        data.extend_from_slice(b&amp;#34;0000&amp;#34;); // Flush&lt;br/&gt;        data.extend_from_slice(b&amp;#34;PACK\x00\x00\x00\x02&amp;#34;); // PACK header&lt;br/&gt;&lt;br/&gt;        let updates = parse_pkt_lines(&amp;amp;data).unwrap();&lt;br/&gt;        assert_eq!(updates.len(), 1);&lt;br/&gt;&lt;br/&gt;        let update = updates.first().unwrap();&lt;br/&gt;        assert!(update.is_create());&lt;br/&gt;        assert_eq!(&lt;br/&gt;            update.new_commit,&lt;br/&gt;            &amp;#34;ac281124fd463f368106445a4fe4eb251d9c7d7a&amp;#34;&lt;br/&gt;        );&lt;br/&gt;        assert_eq!(update.ref_name, &amp;#34;refs/heads/master&amp;#34;);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    #[test]&lt;br/&gt;    fn two_ref_updates() {&lt;br/&gt;        let mut data = Vec::new();&lt;br/&gt;        // first pkt-line&lt;br/&gt;        data.extend_from_slice(b&amp;#34;00B2ac281124fd463f368106445a4fe4eb251d9c7d7a 4559b8048c334a7e61c76a622cf7cd578a6af406 refs/heads/master\0 report-status-v2 side-band-64k object-format=sha1 agent=git/2.51.2-Linux\n&amp;#34;);&lt;br/&gt;        // second pkt-line&lt;br/&gt;        data.extend_from_slice(b&amp;#34;006b4559b8048c334a7e61c76a622cf7cd578a6af406 53e284c5c3e8b8310077a43d09fd391456f582df refs/heads/test2-file&amp;#34;);&lt;br/&gt;        data.extend_from_slice(b&amp;#34;0000&amp;#34;); // Flush&lt;br/&gt;        data.extend_from_slice(b&amp;#34;PACK\x00\x00\x00\x02&amp;#34;); // PACK header&lt;br/&gt;&lt;br/&gt;        let updates = parse_pkt_lines(&amp;amp;data).unwrap();&lt;br/&gt;        assert_eq!(updates.len(), 2);&lt;br/&gt;        let first_update = updates.first().unwrap();&lt;br/&gt;        let second_update = updates.last().unwrap();&lt;br/&gt;&lt;br/&gt;        assert_eq!(&lt;br/&gt;            first_update.old_commit,&lt;br/&gt;            &amp;#34;ac281124fd463f368106445a4fe4eb251d9c7d7a&amp;#34;&lt;br/&gt;        );&lt;br/&gt;        assert_eq!(&lt;br/&gt;            first_update.new_commit,&lt;br/&gt;            &amp;#34;4559b8048c334a7e61c76a622cf7cd578a6af406&amp;#34;&lt;br/&gt;        );&lt;br/&gt;        assert_eq!(first_update.ref_name, &amp;#34;refs/heads/master&amp;#34;);&lt;br/&gt;&lt;br/&gt;        assert_eq!(&lt;br/&gt;            second_update.old_commit,&lt;br/&gt;            &amp;#34;4559b8048c334a7e61c76a622cf7cd578a6af406&amp;#34;&lt;br/&gt;        );&lt;br/&gt;        assert_eq!(&lt;br/&gt;            second_update.new_commit,&lt;br/&gt;            &amp;#34;53e284c5c3e8b8310077a43d09fd391456f582df&amp;#34;&lt;br/&gt;        );&lt;br/&gt;        assert_eq!(second_update.ref_name, &amp;#34;refs/heads/test2-file&amp;#34;);&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqstznm42sx5k37uhnuqwluhn8ra6ugkunafs8k80wn30s2nknlxqgczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77l72aly</id>
    
      <title type="html">&amp;lt;svg width=&amp;#34;38&amp;#34; height=&amp;#34;38&amp;#34; viewBox=&amp;#34;0 0 ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqstznm42sx5k37uhnuqwluhn8ra6ugkunafs8k80wn30s2nknlxqgczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77l72aly" />
    <content type="html">
      &amp;lt;svg width=&amp;#34;38&amp;#34; height=&amp;#34;38&amp;#34; viewBox=&amp;#34;0 0 38 38&amp;#34; fill=&amp;#34;none&amp;#34; xmlns=&amp;#34;&lt;a href=&#34;http://www.w3.org/2000/svg&amp;#34;&amp;gt&#34;&gt;http://www.w3.org/2000/svg&amp;#34;&amp;gt&lt;/a&gt;;&lt;br/&gt;&amp;lt;g clip-path=&amp;#34;url(#clip0_10637_22946)&amp;#34;&amp;gt;&lt;br/&gt;&amp;lt;path d=&amp;#34;M8.97955 38C6.7705 37.9997 4.97969 36.2091 4.97955 34C4.97955 32.7232 5.57941 31.5879 6.5108 30.8555C6.01655 29.1838 5.60284 27.6704 5.1065 26.0176C4.44377 23.8104 5.10116 21.3791 6.88971 19.8643L15.0889 12.9209C15.0189 12.6246 14.9805 12.3158 14.9805 11.998C14.9805 10.1857 16.1862 8.65567 17.8389 8.16406L17.8389 1.14258C17.8567 0.428482 18.368 2.24113e-05 18.9991 -1.23663e-06C19.6302 -1.18264e-06 20.1239 0.428458 20.1241 1.14258L20.1241 8.16504C21.7762 8.65702 22.9815 10.1861 22.9815 11.998C22.9815 12.3216 22.9427 12.6362 22.8702 12.9375L31.1231 19.9268C32.861 21.3988 33.559 23.7624 32.8995 25.9424L31.421 30.8301C32.3701 31.5615 32.9825 32.709 32.9825 34C32.9823 36.209 31.1915 37.9997 28.9825 38C26.7732 38 24.9816 36.2092 24.9815 34C24.9815 31.7907 26.7731 29.999 28.9825 29.999C29.0827 29.999 29.1819 30.0054 29.2803 30.0127L30.712 25.2803C31.1076 23.9723 30.6883 22.5541 29.6456 21.6709L21.6944 14.9375C21.2519 15.3462 20.7166 15.6556 20.1241 15.832L20.1241 23.9092C21.4555 24.38 22.41 25.649 22.4102 27.1416C22.4102 29.0353 20.8743 30.5713 18.9805 30.5713C17.087 30.571 15.5518 29.0352 15.5518 27.1416C15.552 25.6486 16.507 24.3797 17.8389 23.9092L17.8389 15.832C17.2413 15.6543 16.7027 15.3405 16.2579 14.9268L8.36725 21.6084C7.30237 22.5104 6.88332 23.9861 7.29596 25.3603C7.79327 27.0164 8.18706 28.4554 8.64557 30.0156C8.75575 30.0065 8.86701 29.999 8.97955 29.999C11.1889 29.999 12.9805 31.7907 12.9805 34C12.9804 36.2092 11.1888 38 8.97955 38Z&amp;#34; fill=&amp;#34;white&amp;#34;/&amp;gt;&lt;br/&gt;&amp;lt;/g&amp;gt;&lt;br/&gt;&amp;lt;defs&amp;gt;&lt;br/&gt;&amp;lt;clipPath id=&amp;#34;clip0_10637_22946&amp;#34;&amp;gt;&lt;br/&gt;&amp;lt;rect width=&amp;#34;38&amp;#34; height=&amp;#34;38&amp;#34; fill=&amp;#34;white&amp;#34;/&amp;gt;&lt;br/&gt;&amp;lt;/clipPath&amp;gt;&lt;br/&gt;&amp;lt;/defs&amp;gt;&lt;br/&gt;&amp;lt;/svg&amp;gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqstpzvqypl0cmrh4p47yt6x56lsr3hk3m73aretsz7njp3hd9e27vczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77rh33jc</id>
    
      <title type="html">use rand_chacha::ChaCha20Rng; use ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqstpzvqypl0cmrh4p47yt6x56lsr3hk3m73aretsz7njp3hd9e27vczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77rh33jc" />
    <content type="html">
      use rand_chacha::ChaCha20Rng;&lt;br/&gt;use rand_chacha::rand_core::SeedableRng;&lt;br/&gt;use frost_secp256k1_tr as frost;&lt;br/&gt;use frost::{Identifier, keys::IdentifierList, round1};&lt;br/&gt;use std::collections::BTreeMap;&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    // 1. Setup deterministic dealer (Genesis State)&lt;br/&gt;    let mut dealer_rng = ChaCha20Rng::from_seed([0u8; 32]);&lt;br/&gt;    let (shares, _pubkey_package) = frost::keys::generate_with_dealer(&lt;br/&gt;        3, 2, IdentifierList::Default, &amp;amp;mut dealer_rng&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    // 2. Setup Participant 1&lt;br/&gt;    let p1_id = Identifier::try_from(1u16)?;&lt;br/&gt;    let p1_share = &amp;amp;shares[&amp;amp;p1_id];&lt;br/&gt;    &lt;br/&gt;    // 3. Setup Nonce RNG&lt;br/&gt;    let mut nonce_rng = ChaCha20Rng::from_seed([1u8; 32]);&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;--- BIP-64MOD Round 1: Batch Nonce Generation ---&amp;#34;);&lt;br/&gt;    println!(&amp;#34;Participant: {:?}&amp;#34;, p1_id);&lt;br/&gt;    println!(&amp;#34;Generating 10 Nonce Pairs...\n&amp;#34;);&lt;br/&gt;&lt;br/&gt;    let mut batch_commitments = BTreeMap::new();&lt;br/&gt;    let mut batch_secrets = Vec::new();&lt;br/&gt;&lt;br/&gt;    for i in 0..10 {&lt;br/&gt;        // Generate a single pair&lt;br/&gt;        let (nonces, commitments) = round1::commit(p1_share.signing_share(), &amp;amp;mut nonce_rng);&lt;br/&gt;        &lt;br/&gt;        // Store the secret nonces locally (index i)&lt;br/&gt;        batch_secrets.push(nonces);&lt;br/&gt;        &lt;br/&gt;        // Store the public commitments in a map to share with the Coordinator&lt;br/&gt;        batch_commitments.insert(i, commitments);&lt;br/&gt;&lt;br/&gt;        println!(&amp;#34;Nonce Pair [{}]:&amp;#34;, i);&lt;br/&gt;        println!(&amp;#34;  Hiding:  {}&amp;#34;, hex::encode(commitments.hiding().serialize()?));&lt;br/&gt;        println!(&amp;#34;  Binding: {}&amp;#34;, hex::encode(commitments.binding().serialize()?));&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // 4. Persistence Simulation&lt;br/&gt;    // In a real GCC app, you would save `batch_secrets` to an encrypted file &lt;br/&gt;    // and send `batch_commitments` to a Nostr Relay (Kind 1351).&lt;br/&gt;    println!(&amp;#34;\n✅ Batch generation complete.&amp;#34;);&lt;br/&gt;    println!(&amp;#34;Ready to sign up to 10 independent Git commits.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() { println!(&amp;#34;Run with --features nostr&amp;#34;); }&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqstq9dcamzmfhus5a08stl2n00x5lgfwy7gn8xz9zry2wkft98ztqczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77vaqhsa</id>
    
      <title type="html">&amp;lt;?xml version=&amp;#39;1.0&amp;#39; ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqstq9dcamzmfhus5a08stl2n00x5lgfwy7gn8xz9zry2wkft98ztqczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77vaqhsa" />
    <content type="html">
      &amp;lt;?xml version=&amp;#39;1.0&amp;#39; encoding=&amp;#39;windows-1252&amp;#39;?&amp;gt;&lt;br/&gt;&amp;lt;!--&lt;br/&gt;  Copyright (C) 2017 Christopher R. Field.&lt;br/&gt;&lt;br/&gt;  Licensed under the Apache License, Version 2.0 (the &amp;#34;License&amp;#34;);&lt;br/&gt;  you may not use this file except in compliance with the License.&lt;br/&gt;  You may obtain a copy of the License at&lt;br/&gt;&lt;br/&gt;  &lt;a href=&#34;http://www.apache.org/licenses/LICENSE-2.0&#34;&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;  Unless required by applicable law or agreed to in writing, software&lt;br/&gt;  distributed under the License is distributed on an &amp;#34;AS IS&amp;#34; BASIS,&lt;br/&gt;  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;br/&gt;  See the License for the specific language governing permissions and&lt;br/&gt;  limitations under the License.&lt;br/&gt;--&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;!--&lt;br/&gt;  The &amp;#34;cargo wix&amp;#34; subcommand provides a variety of predefined variables available&lt;br/&gt;  for customization of this template. The values for each variable are set at&lt;br/&gt;  installer creation time. The following variables are available:&lt;br/&gt;&lt;br/&gt;  TargetTriple      = The rustc target triple name.&lt;br/&gt;  TargetEnv         = The rustc target environment. This is typically either&lt;br/&gt;                      &amp;#34;msvc&amp;#34; or &amp;#34;gnu&amp;#34; depending on the toolchain downloaded and&lt;br/&gt;                      installed.&lt;br/&gt;  TargetVendor      = The rustc target vendor. This is typically &amp;#34;pc&amp;#34;, but Rust&lt;br/&gt;                      does support other vendors, like &amp;#34;uwp&amp;#34;.&lt;br/&gt;  CargoTargetBinDir = The complete path to the directory containing the&lt;br/&gt;                      binaries (exes) to include. The default would be&lt;br/&gt;                      &amp;#34;target\release\&amp;#34;. If an explicit rustc target triple is&lt;br/&gt;                      used, i.e. cross-compiling, then the default path would&lt;br/&gt;                      be &amp;#34;target\&amp;lt;CARGO_TARGET&amp;gt;\&amp;lt;CARGO_PROFILE&amp;gt;&amp;#34;,&lt;br/&gt;                      where &amp;#34;&amp;lt;CARGO_TARGET&amp;gt;&amp;#34; is replaced with the &amp;#34;CargoTarget&amp;#34;&lt;br/&gt;                      variable value and &amp;#34;&amp;lt;CARGO_PROFILE&amp;gt;&amp;#34; is replaced with the&lt;br/&gt;                      value from the &amp;#34;CargoProfile&amp;#34; variable. This can also&lt;br/&gt;                      be overridden manually with the &amp;#34;target-bin-dir&amp;#34; flag.&lt;br/&gt;  CargoTargetDir    = The path to the directory for the build artifacts, i.e.&lt;br/&gt;                      &amp;#34;target&amp;#34;.&lt;br/&gt;  CargoProfile      = The cargo profile used to build the binaries&lt;br/&gt;                      (usually &amp;#34;debug&amp;#34; or &amp;#34;release&amp;#34;).&lt;br/&gt;  Version           = The version for the installer. The default is the&lt;br/&gt;                      &amp;#34;Major.Minor.Fix&amp;#34; semantic versioning number of the Rust&lt;br/&gt;                      package.&lt;br/&gt;--&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;!--&lt;br/&gt;  Please do not remove these pre-processor If-Else blocks. These are used with&lt;br/&gt;  the `cargo wix` subcommand to automatically determine the installation&lt;br/&gt;  destination for 32-bit versus 64-bit installers. Removal of these lines will&lt;br/&gt;  cause installation errors.&lt;br/&gt;--&amp;gt;&lt;br/&gt;&amp;lt;?if $(sys.BUILDARCH) = x64 or $(sys.BUILDARCH) = arm64 ?&amp;gt;&lt;br/&gt;    &amp;lt;?define PlatformProgramFilesFolder = &amp;#34;ProgramFiles64Folder&amp;#34; ?&amp;gt;&lt;br/&gt;&amp;lt;?else ?&amp;gt;&lt;br/&gt;    &amp;lt;?define PlatformProgramFilesFolder = &amp;#34;ProgramFilesFolder&amp;#34; ?&amp;gt;&lt;br/&gt;&amp;lt;?endif ?&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;Wix xmlns=&amp;#39;&lt;a href=&#34;http://schemas.microsoft.com/wix/2006/wi&amp;#39;&amp;gt&#34;&gt;http://schemas.microsoft.com/wix/2006/wi&amp;#39;&amp;gt&lt;/a&gt;;&lt;br/&gt;&lt;br/&gt;    &amp;lt;Product&lt;br/&gt;        Id=&amp;#39;*&amp;#39;&lt;br/&gt;        Name=&amp;#39;n34-relay&amp;#39;&lt;br/&gt;        UpgradeCode=&amp;#39;036A2A4F-DA54-4FE2-B2D8-8C58D5814874&amp;#39;&lt;br/&gt;        Manufacturer=&amp;#39;Awiteb&amp;#39;&lt;br/&gt;        Language=&amp;#39;1033&amp;#39;&lt;br/&gt;        Codepage=&amp;#39;1252&amp;#39;&lt;br/&gt;        Version=&amp;#39;$(var.Version)&amp;#39;&amp;gt;&lt;br/&gt;&lt;br/&gt;        &amp;lt;Package Id=&amp;#39;*&amp;#39;&lt;br/&gt;            Keywords=&amp;#39;Installer&amp;#39;&lt;br/&gt;            Description=&amp;#39;A nostr GRASP relay implementation&amp;#39;&lt;br/&gt;            Manufacturer=&amp;#39;Awiteb&amp;#39;&lt;br/&gt;            InstallerVersion=&amp;#39;450&amp;#39;&lt;br/&gt;            Languages=&amp;#39;1033&amp;#39;&lt;br/&gt;            Compressed=&amp;#39;yes&amp;#39;&lt;br/&gt;            InstallScope=&amp;#39;perMachine&amp;#39;&lt;br/&gt;            SummaryCodepage=&amp;#39;1252&amp;#39;&lt;br/&gt;            /&amp;gt;&lt;br/&gt;&lt;br/&gt;        &amp;lt;MajorUpgrade&lt;br/&gt;            Schedule=&amp;#39;afterInstallInitialize&amp;#39;&lt;br/&gt;            DowngradeErrorMessage=&amp;#39;A newer version of [ProductName] is already installed. Setup will now exit.&amp;#39;/&amp;gt;&lt;br/&gt;&lt;br/&gt;        &amp;lt;Media Id=&amp;#39;1&amp;#39; Cabinet=&amp;#39;media1.cab&amp;#39; EmbedCab=&amp;#39;yes&amp;#39; DiskPrompt=&amp;#39;CD-ROM #1&amp;#39;/&amp;gt;&lt;br/&gt;        &amp;lt;Property Id=&amp;#39;DiskPrompt&amp;#39; Value=&amp;#39;n34-relay Installation&amp;#39;/&amp;gt;&lt;br/&gt;&lt;br/&gt;        &amp;lt;Directory Id=&amp;#39;TARGETDIR&amp;#39; Name=&amp;#39;SourceDir&amp;#39;&amp;gt;&lt;br/&gt;            &amp;lt;Directory Id=&amp;#39;$(var.PlatformProgramFilesFolder)&amp;#39; Name=&amp;#39;PFiles&amp;#39;&amp;gt;&lt;br/&gt;                &amp;lt;Directory Id=&amp;#39;APPLICATIONFOLDER&amp;#39; Name=&amp;#39;n34-relay&amp;#39;&amp;gt;&lt;br/&gt;                    &lt;br/&gt;                    &amp;lt;!--&lt;br/&gt;                      Enabling the license sidecar file in the installer is a four step process:&lt;br/&gt;&lt;br/&gt;                      1. Uncomment the `Component` tag and its contents.&lt;br/&gt;                      2. Change the value for the `Source` attribute in the `File` tag to a path&lt;br/&gt;                         to the file that should be included as the license sidecar file. The path&lt;br/&gt;                         can, and probably should be, relative to this file.&lt;br/&gt;                      3. Change the value for the `Name` attribute in the `File` tag to the&lt;br/&gt;                         desired name for the file when it is installed alongside the `bin` folder&lt;br/&gt;                         in the installation directory. This can be omitted if the desired name is&lt;br/&gt;                         the same as the file name.&lt;br/&gt;                      4. Uncomment the `ComponentRef` tag with the Id attribute value of &amp;#34;License&amp;#34;&lt;br/&gt;                         further down in this file.&lt;br/&gt;                    --&amp;gt;&lt;br/&gt;                    &amp;lt;!--&lt;br/&gt;                    &amp;lt;Component Id=&amp;#39;License&amp;#39; Guid=&amp;#39;*&amp;#39;&amp;gt;&lt;br/&gt;                        &amp;lt;File Id=&amp;#39;LicenseFile&amp;#39; Name=&amp;#39;ChangeMe&amp;#39; DiskId=&amp;#39;1&amp;#39; Source=&amp;#39;C:\Path\To\File&amp;#39; KeyPath=&amp;#39;yes&amp;#39;/&amp;gt;&lt;br/&gt;                    &amp;lt;/Component&amp;gt;&lt;br/&gt;                    --&amp;gt;&lt;br/&gt;&lt;br/&gt;                    &amp;lt;Directory Id=&amp;#39;Bin&amp;#39; Name=&amp;#39;bin&amp;#39;&amp;gt;&lt;br/&gt;                        &amp;lt;Component Id=&amp;#39;Path&amp;#39; Guid=&amp;#39;97D3207D-71DB-4DD0-B548-E43E8C664B7D&amp;#39; KeyPath=&amp;#39;yes&amp;#39;&amp;gt;&lt;br/&gt;                            &amp;lt;Environment&lt;br/&gt;                                Id=&amp;#39;PATH&amp;#39;&lt;br/&gt;                                Name=&amp;#39;PATH&amp;#39;&lt;br/&gt;                                Value=&amp;#39;[Bin]&amp;#39;&lt;br/&gt;                                Permanent=&amp;#39;no&amp;#39;&lt;br/&gt;                                Part=&amp;#39;last&amp;#39;&lt;br/&gt;                                Action=&amp;#39;set&amp;#39;&lt;br/&gt;                                System=&amp;#39;yes&amp;#39;/&amp;gt;&lt;br/&gt;                        &amp;lt;/Component&amp;gt;&lt;br/&gt;                        &amp;lt;Component Id=&amp;#39;binary0&amp;#39; Guid=&amp;#39;*&amp;#39;&amp;gt;&lt;br/&gt;                            &amp;lt;File&lt;br/&gt;                                Id=&amp;#39;exe0&amp;#39;&lt;br/&gt;                                Name=&amp;#39;n34_relay.exe&amp;#39;&lt;br/&gt;                                DiskId=&amp;#39;1&amp;#39;&lt;br/&gt;                                Source=&amp;#39;$(var.CargoTargetBinDir)\n34_relay.exe&amp;#39;&lt;br/&gt;                                KeyPath=&amp;#39;yes&amp;#39;/&amp;gt;&lt;br/&gt;                        &amp;lt;/Component&amp;gt;&lt;br/&gt;                    &amp;lt;/Directory&amp;gt;&lt;br/&gt;                &amp;lt;/Directory&amp;gt;&lt;br/&gt;            &amp;lt;/Directory&amp;gt;&lt;br/&gt;        &amp;lt;/Directory&amp;gt;&lt;br/&gt;&lt;br/&gt;        &amp;lt;Feature&lt;br/&gt;            Id=&amp;#39;Binaries&amp;#39;&lt;br/&gt;            Title=&amp;#39;Application&amp;#39;&lt;br/&gt;            Description=&amp;#39;Installs all binaries and the license.&amp;#39;&lt;br/&gt;            Level=&amp;#39;1&amp;#39;&lt;br/&gt;            ConfigurableDirectory=&amp;#39;APPLICATIONFOLDER&amp;#39;&lt;br/&gt;            AllowAdvertise=&amp;#39;no&amp;#39;&lt;br/&gt;            Display=&amp;#39;expand&amp;#39;&lt;br/&gt;            Absent=&amp;#39;disallow&amp;#39;&amp;gt;&lt;br/&gt;            &lt;br/&gt;            &amp;lt;!--&lt;br/&gt;              Uncomment the following `ComponentRef` tag to add the license&lt;br/&gt;              sidecar file to the installer.&lt;br/&gt;            --&amp;gt;&lt;br/&gt;            &amp;lt;!--&amp;lt;ComponentRef Id=&amp;#39;License&amp;#39;/&amp;gt;--&amp;gt;&lt;br/&gt;&lt;br/&gt;            &amp;lt;ComponentRef Id=&amp;#39;binary0&amp;#39;/&amp;gt;&lt;br/&gt;&lt;br/&gt;            &amp;lt;Feature&lt;br/&gt;                Id=&amp;#39;Environment&amp;#39;&lt;br/&gt;                Title=&amp;#39;PATH Environment Variable&amp;#39;&lt;br/&gt;                Description=&amp;#39;Add the install location of the [ProductName] executable to the PATH system environment variable. This allows the [ProductName] executable to be called from any location.&amp;#39;&lt;br/&gt;                Level=&amp;#39;1&amp;#39;&lt;br/&gt;                Absent=&amp;#39;allow&amp;#39;&amp;gt;&lt;br/&gt;                &amp;lt;ComponentRef Id=&amp;#39;Path&amp;#39;/&amp;gt;&lt;br/&gt;            &amp;lt;/Feature&amp;gt;&lt;br/&gt;        &amp;lt;/Feature&amp;gt;&lt;br/&gt;&lt;br/&gt;        &amp;lt;SetProperty Id=&amp;#39;ARPINSTALLLOCATION&amp;#39; Value=&amp;#39;[APPLICATIONFOLDER]&amp;#39; After=&amp;#39;CostFinalize&amp;#39;/&amp;gt;&lt;br/&gt;&lt;br/&gt;        &lt;br/&gt;        &amp;lt;!--&lt;br/&gt;          Uncomment the following `Icon` and `Property` tags to change the product icon.&lt;br/&gt;&lt;br/&gt;          The product icon is the graphic that appears in the Add/Remove&lt;br/&gt;          Programs control panel for the application.&lt;br/&gt;        --&amp;gt;&lt;br/&gt;        &amp;lt;!--&amp;lt;Icon Id=&amp;#39;ProductICO&amp;#39; SourceFile=&amp;#39;wix\Product.ico&amp;#39;/&amp;gt;--&amp;gt;&lt;br/&gt;        &amp;lt;!--&amp;lt;Property Id=&amp;#39;ARPPRODUCTICON&amp;#39; Value=&amp;#39;ProductICO&amp;#39; /&amp;gt;--&amp;gt;&lt;br/&gt;&lt;br/&gt;        &amp;lt;Property Id=&amp;#39;ARPHELPLINK&amp;#39; Value=&amp;#39;&lt;a href=&#34;https://relay.n34.dev/docs.html&amp;#39;/&amp;gt&#34;&gt;https://relay.n34.dev/docs.html&amp;#39;/&amp;gt&lt;/a&gt;;&lt;br/&gt;        &lt;br/&gt;        &amp;lt;UI&amp;gt;&lt;br/&gt;            &amp;lt;UIRef Id=&amp;#39;WixUI_FeatureTree&amp;#39;/&amp;gt;&lt;br/&gt;            &lt;br/&gt;            &amp;lt;!--&lt;br/&gt;              Enabling the EULA dialog in the installer is a three step process:&lt;br/&gt;&lt;br/&gt;                1. Comment out or remove the two `Publish` tags that follow the&lt;br/&gt;                   `WixVariable` tag.&lt;br/&gt;                2. Uncomment the `&amp;lt;WixVariable Id=&amp;#39;WixUILicenseRtf&amp;#39; Value=&amp;#39;Path\to\Eula.rft&amp;#39;&amp;gt;` tag further down&lt;br/&gt;                3. Replace the `Value` attribute of the `WixVariable` tag with&lt;br/&gt;                   the path to a RTF file that will be used as the EULA and&lt;br/&gt;                   displayed in the license agreement dialog.&lt;br/&gt;            --&amp;gt;&lt;br/&gt;            &amp;lt;Publish Dialog=&amp;#39;WelcomeDlg&amp;#39; Control=&amp;#39;Next&amp;#39; Event=&amp;#39;NewDialog&amp;#39; Value=&amp;#39;CustomizeDlg&amp;#39; Order=&amp;#39;99&amp;#39;&amp;gt;1&amp;lt;/Publish&amp;gt;&lt;br/&gt;            &amp;lt;Publish Dialog=&amp;#39;CustomizeDlg&amp;#39; Control=&amp;#39;Back&amp;#39; Event=&amp;#39;NewDialog&amp;#39; Value=&amp;#39;WelcomeDlg&amp;#39; Order=&amp;#39;99&amp;#39;&amp;gt;1&amp;lt;/Publish&amp;gt;&lt;br/&gt;&lt;br/&gt;        &amp;lt;/UI&amp;gt;&lt;br/&gt;&lt;br/&gt;        &lt;br/&gt;        &amp;lt;!--&lt;br/&gt;          Enabling the EULA dialog in the installer requires uncommenting&lt;br/&gt;          the following `WixUILicenseRTF` tag and changing the `Value`&lt;br/&gt;          attribute.&lt;br/&gt;        --&amp;gt;&lt;br/&gt;        &amp;lt;!-- &amp;lt;WixVariable Id=&amp;#39;WixUILicenseRtf&amp;#39; Value=&amp;#39;Relative\Path\to\Eula.rtf&amp;#39;/&amp;gt; --&amp;gt;&lt;br/&gt;&lt;br/&gt;        &lt;br/&gt;        &amp;lt;!--&lt;br/&gt;          Uncomment the next `WixVariable` tag to customize the installer&amp;#39;s&lt;br/&gt;          Graphical User Interface (GUI) and add a custom banner image across&lt;br/&gt;          the top of each screen. See the WiX Toolset documentation for details&lt;br/&gt;          about customization.&lt;br/&gt;&lt;br/&gt;          The banner BMP dimensions are 493 x 58 pixels.&lt;br/&gt;        --&amp;gt;&lt;br/&gt;        &amp;lt;!--&amp;lt;WixVariable Id=&amp;#39;WixUIBannerBmp&amp;#39; Value=&amp;#39;wix\Banner.bmp&amp;#39;/&amp;gt;--&amp;gt;&lt;br/&gt;&lt;br/&gt;        &lt;br/&gt;        &amp;lt;!--&lt;br/&gt;          Uncomment the next `WixVariable` tag to customize the installer&amp;#39;s&lt;br/&gt;          Graphical User Interface (GUI) and add a custom image to the first&lt;br/&gt;          dialog, or screen. See the WiX Toolset documentation for details about&lt;br/&gt;          customization.&lt;br/&gt;&lt;br/&gt;          The dialog BMP dimensions are 493 x 312 pixels.&lt;br/&gt;        --&amp;gt;&lt;br/&gt;        &amp;lt;!--&amp;lt;WixVariable Id=&amp;#39;WixUIDialogBmp&amp;#39; Value=&amp;#39;wix\Dialog.bmp&amp;#39;/&amp;gt;--&amp;gt;&lt;br/&gt;&lt;br/&gt;    &amp;lt;/Product&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;/Wix&amp;gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs2l5fhpzlj68jrup2lcg0h5yaz70jhkwrhx663m4xlr0arm90ww2szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77d6xqcm</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs2l5fhpzlj68jrup2lcg0h5yaz70jhkwrhx663m4xlr0arm90ww2szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77d6xqcm" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::{collections::HashMap, sync::Arc};&lt;br/&gt;&lt;br/&gt;use axum::{body::Body, response::Response};&lt;br/&gt;use hyper::{HeaderMap, StatusCode};&lt;br/&gt;use nostr::{&lt;br/&gt;    event::{Event, Kind},&lt;br/&gt;    filter::Filter,&lt;br/&gt;};&lt;br/&gt;use nostr_database::NostrDatabase;&lt;br/&gt;&lt;br/&gt;use crate::git_server::{PublicKeyAndRepoPath, ref_update_pkt_line::RefUpdatePkt};&lt;br/&gt;&lt;br/&gt;/// unpack-status = PKT-LINE(&amp;#34;unpack&amp;#34; SP unpack-result)&lt;br/&gt;/// unpack-result = &amp;#34;ok&amp;#34; / error-msg&lt;br/&gt;const UNPACK_OK: &amp;amp;[u8] = b&amp;#34;unpack ok&amp;#34;;&lt;br/&gt;&lt;br/&gt;/// Checks if the provided headers contain the `Git-Protocol: version=2` header.&lt;br/&gt;pub fn contains_git_v2(headers: &amp;amp;HeaderMap) -&amp;gt; bool {&lt;br/&gt;    headers&lt;br/&gt;        .get(&amp;#34;Git-Protocol&amp;#34;)&lt;br/&gt;        .is_some_and(|value| value == &amp;#34;version=2&amp;#34;)&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Add the data length before it. `{length}{data}`&lt;br/&gt;fn pkt_line(data: &amp;amp;[u8]) -&amp;gt; Vec&amp;lt;u8&amp;gt; {&lt;br/&gt;    let mut result = format!(&amp;#34;{:04x}&amp;#34;, data.len() &#43; 4).into_bytes();&lt;br/&gt;    result.extend_from_slice(data);&lt;br/&gt;    result&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Make a pkt_line with a side-band. `{length}{channel}pkt_line({data})`&lt;br/&gt;fn sideband_pkt_line(channel: u8, data: &amp;amp;[u8]) -&amp;gt; Vec&amp;lt;u8&amp;gt; {&lt;br/&gt;    let pktline = if data == b&amp;#34;0000&amp;#34; {&lt;br/&gt;        data&lt;br/&gt;    } else {&lt;br/&gt;        &amp;amp;pkt_line(data)&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    // 4 bytes for length &#43; 1 byte for channel &#43; pktline&lt;br/&gt;    let mut result = format!(&amp;#34;{:04x}&amp;#34;, pktline.len() &#43; 5).into_bytes();&lt;br/&gt;    result.push(channel);&lt;br/&gt;    result.extend_from_slice(pktline);&lt;br/&gt;    result&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Formats an error message using Git&amp;#39;s pkt-line report-status.&lt;br/&gt;fn git_errors_response(&lt;br/&gt;    refs_errors: &amp;amp;HashMap&amp;lt;&amp;amp;str, &amp;amp;&amp;#39;static str&amp;gt;,&lt;br/&gt;    all_refs: &amp;amp;[RefUpdatePkt],&lt;br/&gt;    capabilities: &amp;amp;str,&lt;br/&gt;) -&amp;gt; Vec&amp;lt;u8&amp;gt; {&lt;br/&gt;    let mut response = Vec::new();&lt;br/&gt;    let caps_contains = |cap| capabilities.split(&amp;#34; &amp;#34;).any(|c| c == cap);&lt;br/&gt;    let use_sideband = caps_contains(&amp;#34;side-band-64k&amp;#34;) || caps_contains(&amp;#34;side-band&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // report-status = unpack-status&lt;br/&gt;    //                 1*(command-status)&lt;br/&gt;    //                 flush-pkt&lt;br/&gt;    if caps_contains(&amp;#34;report-status&amp;#34;) || caps_contains(&amp;#34;report-status-v2&amp;#34;) {&lt;br/&gt;        // command-status = command-ok / command-fail&lt;br/&gt;        // command-ok     = PKT-LINE(&amp;#34;ok&amp;#34; SP refname)&lt;br/&gt;        // command-fail   = PKT-LINE(&amp;#34;ng&amp;#34; SP refname SP error-msg)&lt;br/&gt;        let ng_line = |ref_name, msg| format!(&amp;#34;ng {ref_name} {msg}&amp;#34;);&lt;br/&gt;        let ok_line = |ref_name| format!(&amp;#34;ok {ref_name}&amp;#34;);&lt;br/&gt;&lt;br/&gt;        if use_sideband {&lt;br/&gt;            response.extend_from_slice(&amp;amp;sideband_pkt_line(1, UNPACK_OK));&lt;br/&gt;            for ref_update in all_refs {&lt;br/&gt;                if let Some(err) = refs_errors.get(ref_update.ref_name) {&lt;br/&gt;                    response.extend_from_slice(&amp;amp;sideband_pkt_line(&lt;br/&gt;                        1,&lt;br/&gt;                        ng_line(&amp;amp;ref_update.ref_name, err).as_bytes(),&lt;br/&gt;                    ));&lt;br/&gt;                } else {&lt;br/&gt;                    response.extend_from_slice(&amp;amp;sideband_pkt_line(&lt;br/&gt;                        1,&lt;br/&gt;                        ok_line(ref_update.ref_name).as_bytes(),&lt;br/&gt;                    ));&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;            // side-band flush-pkt&lt;br/&gt;            response.extend_from_slice(&amp;amp;sideband_pkt_line(1, b&amp;#34;0000&amp;#34;));&lt;br/&gt;            // flush-pkt&lt;br/&gt;            response.extend_from_slice(b&amp;#34;0000&amp;#34;);&lt;br/&gt;        } else {&lt;br/&gt;            response.extend_from_slice(&amp;amp;pkt_line(UNPACK_OK));&lt;br/&gt;            for ref_update in all_refs {&lt;br/&gt;                if let Some(err) = refs_errors.get(ref_update.ref_name) {&lt;br/&gt;                    response.extend_from_slice(&amp;amp;pkt_line(&lt;br/&gt;                        ng_line(&amp;amp;ref_update.ref_name, err).as_bytes(),&lt;br/&gt;                    ));&lt;br/&gt;                } else {&lt;br/&gt;                    response.extend_from_slice(&amp;amp;pkt_line(ok_line(ref_update.ref_name).as_bytes()));&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;            // flush-pkt&lt;br/&gt;            response.extend_from_slice(b&amp;#34;0000&amp;#34;);&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;    response&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Creates an error response that Git clients will display to users.&lt;br/&gt;pub fn git_receive_pack_error(&lt;br/&gt;    refs_errors: &amp;amp;HashMap&amp;lt;&amp;amp;str, &amp;amp;&amp;#39;static str&amp;gt;,&lt;br/&gt;    all_refs: &amp;amp;[RefUpdatePkt],&lt;br/&gt;    capabilities: &amp;amp;str,&lt;br/&gt;) -&amp;gt; Response {&lt;br/&gt;    let body = git_errors_response(refs_errors, all_refs, capabilities);&lt;br/&gt;&lt;br/&gt;    Response::builder()&lt;br/&gt;        .status(StatusCode::OK)&lt;br/&gt;        .header(&amp;#34;Content-Type&amp;#34;, &amp;#34;application/x-git-receive-pack-result&amp;#34;)&lt;br/&gt;        .body(Body::from(body))&lt;br/&gt;        .expect(&amp;#34;valid response&amp;#34;)&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Extract the refs from the repository state event&lt;br/&gt;#[inline]&lt;br/&gt;pub fn extract_refs(repo_state: &amp;amp;Event) -&amp;gt; impl Iterator&amp;lt;Item = (&amp;amp;str, &amp;amp;str)&amp;gt; {&lt;br/&gt;    repo_state.tags.iter().filter_map(|tag| {&lt;br/&gt;        let tag_kind = tag.as_slice().first()?.as_str();&lt;br/&gt;        if (tag_kind.starts_with(&amp;#34;refs/heads/&amp;#34;) || tag_kind.starts_with(&amp;#34;refs/tags/&amp;#34;))&lt;br/&gt;            &amp;amp;&amp;amp; let Some(commit_id) = tag.content()&lt;br/&gt;        {&lt;br/&gt;            return Some((tag_kind, commit_id));&lt;br/&gt;        }&lt;br/&gt;        None&lt;br/&gt;    })&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Check if the ref match with the repository state&lt;br/&gt;pub fn check_ref_update(ref_update: &amp;amp;RefUpdatePkt, repo_state: &amp;amp;Event) -&amp;gt; Result&amp;lt;(), &amp;amp;&amp;#39;static str&amp;gt; {&lt;br/&gt;    let ref_commit = extract_refs(repo_state)&lt;br/&gt;        .find_map(|(name, commit)| (ref_update.ref_name == name).then_some(commit));&lt;br/&gt;&lt;br/&gt;    // Return an error if the ref is not found and the operation is not a delete&lt;br/&gt;    if ref_commit.is_none() &amp;amp;&amp;amp; !ref_update.is_delete() {&lt;br/&gt;        return Err(&lt;br/&gt;            &amp;#34;Reference not found. The reference must exist in the repository state to update it&amp;#34;,&lt;br/&gt;        );&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // Return an error if attempting to delete a ref that is still present in the&lt;br/&gt;    // repository state&lt;br/&gt;    if ref_commit.is_some() &amp;amp;&amp;amp; ref_update.is_delete() {&lt;br/&gt;        return Err(&amp;#34;Cannot delete reference: it still exists in the repository state&amp;#34;);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // Return an error if the ref&amp;#39;s current commit doesn&amp;#39;t match the new commit&lt;br/&gt;    if let Some(commit) = ref_commit&lt;br/&gt;        &amp;amp;&amp;amp; commit != ref_update.new_commit&lt;br/&gt;    {&lt;br/&gt;        return Err(&lt;br/&gt;            &amp;#34;Commit mismatch: the new commit doesn&amp;#39;t match the repository state for this reference&amp;#34;,&lt;br/&gt;        );&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // Accept if:&lt;br/&gt;    // - ref is not found the the commit is delete&lt;br/&gt;    // - ref is found and match the new commit&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Check if the push should be continue, if not return the error message&lt;br/&gt;pub async fn is_legal_push&amp;lt;&amp;#39;a&amp;gt;(&lt;br/&gt;    ref_updates: &amp;amp;[RefUpdatePkt&amp;lt;&amp;#39;a&amp;gt;],&lt;br/&gt;    db: &amp;amp;Arc&amp;lt;dyn NostrDatabase&amp;gt;,&lt;br/&gt;    repo: &amp;amp;PublicKeyAndRepoPath,&lt;br/&gt;) -&amp;gt; Result&amp;lt;HashMap&amp;lt;&amp;amp;&amp;#39;a str, &amp;amp;&amp;#39;static str&amp;gt;, (StatusCode, &amp;amp;&amp;#39;static str)&amp;gt; {&lt;br/&gt;    // Repo announcement from the author&lt;br/&gt;    let Some(repo_announcement) = db&lt;br/&gt;        .query(&lt;br/&gt;            Filter::new()&lt;br/&gt;                .author(repo.public_key)&lt;br/&gt;                .identifier(&amp;amp;repo.repo_name)&lt;br/&gt;                .kind(Kind::GitRepoAnnouncement),&lt;br/&gt;        )&lt;br/&gt;        .await&lt;br/&gt;        .map_err(|_| {&lt;br/&gt;            (&lt;br/&gt;                StatusCode::INTERNAL_SERVER_ERROR,&lt;br/&gt;                &amp;#34;Database error. Try to push later :(&amp;#34;,&lt;br/&gt;            )&lt;br/&gt;        })?&lt;br/&gt;        .first_owned()&lt;br/&gt;    else {&lt;br/&gt;        return Err((&lt;br/&gt;            StatusCode::INTERNAL_SERVER_ERROR,&lt;br/&gt;            &amp;#34;No repository announcement found. It should be there but it&amp;#39;s not. Broadcast it \&lt;br/&gt;             please :)&amp;#34;,&lt;br/&gt;        ));&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    // Repo state event from the author or one of the maintainers&lt;br/&gt;    let Some(repo_state) = db&lt;br/&gt;        .query(&lt;br/&gt;            Filter::new()&lt;br/&gt;                .author(repo.public_key)&lt;br/&gt;                .authors(crate::utils::get_maintainers(&amp;amp;repo_announcement).copied())&lt;br/&gt;                .identifier(&amp;amp;repo.repo_name)&lt;br/&gt;                .kind(Kind::RepoState),&lt;br/&gt;        )&lt;br/&gt;        .await&lt;br/&gt;        .map_err(|_| {&lt;br/&gt;            (&lt;br/&gt;                StatusCode::INTERNAL_SERVER_ERROR,&lt;br/&gt;                &amp;#34;Database error. Try to push later :(&amp;#34;,&lt;br/&gt;            )&lt;br/&gt;        })?&lt;br/&gt;        .first_owned()&lt;br/&gt;    else {&lt;br/&gt;        return Err((&lt;br/&gt;            StatusCode::BAD_REQUEST,&lt;br/&gt;            &amp;#34;No repository state announcements found. Broadcast it to the relay first&amp;#34;,&lt;br/&gt;        ));&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    Ok(ref_updates&lt;br/&gt;        .iter()&lt;br/&gt;        .filter_map(|ref_update| {&lt;br/&gt;            check_ref_update(ref_update, &amp;amp;repo_state)&lt;br/&gt;                .err()&lt;br/&gt;                .map(|err| (ref_update.ref_name, err))&lt;br/&gt;        })&lt;br/&gt;        .collect())&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs263eglj6h63yturhcg7v3qvsj8n2jr5l7uasjudm79fm52884hyqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77qu8k2a</id>
    
      <title type="html">// n34 - A CLI to interact with NIP-34 and other stuff related to ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs263eglj6h63yturhcg7v3qvsj8n2jr5l7uasjudm79fm52884hyqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77qu8k2a" />
    <content type="html">
      // n34 - A CLI to interact with NIP-34 and other stuff related to codes in nostr&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU General Public License as published by&lt;br/&gt;// the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/gpl-3.0.html&amp;gt&#34;&gt;https://gnu.org/licenses/gpl-3.0.html&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;/// `config bunker` subcommand&lt;br/&gt;mod bunker;&lt;br/&gt;/// `config keyring` subcommand&lt;br/&gt;mod keyring;&lt;br/&gt;/// `config nip07` subcommand&lt;br/&gt;mod nip07;&lt;br/&gt;/// `config pow` subcommand&lt;br/&gt;mod pow;&lt;br/&gt;/// `config relays` subcommand&lt;br/&gt;mod relays;&lt;br/&gt;&lt;br/&gt;use clap::Subcommand;&lt;br/&gt;&lt;br/&gt;use self::bunker::BunkerArgs;&lt;br/&gt;use self::keyring::KeyringArgs;&lt;br/&gt;use self::nip07::Nip07Args;&lt;br/&gt;use self::pow::PowArgs;&lt;br/&gt;use self::relays::RelaysArgs;&lt;br/&gt;use super::CliOptions;&lt;br/&gt;use crate::{cli::traits::CommandRunner, error::N34Result};&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;#[derive(Subcommand, Debug)]&lt;br/&gt;pub enum ConfigSubcommands {&lt;br/&gt;    /// Sets the default PoW difficulty (0 if not specified)&lt;br/&gt;    Pow(PowArgs),&lt;br/&gt;    /// Sets the default fallback relays if none provided. Use this relays for&lt;br/&gt;    /// read and write.&lt;br/&gt;    Relays(RelaysArgs),&lt;br/&gt;    /// Sets a URL of NIP-46 bunker server used for signing events.&lt;br/&gt;    Bunker(BunkerArgs),&lt;br/&gt;    /// Managing the secret key keyring, including enabling, disabling, or&lt;br/&gt;    /// resetting it.&lt;br/&gt;    Keyring(KeyringArgs),&lt;br/&gt;    /// Controls the NIP-07 browser signer proxy, turning it on or off, and&lt;br/&gt;    /// configures the `ip:port` address.&lt;br/&gt;    Nip07(Nip07Args),&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl CommandRunner for ConfigSubcommands {&lt;br/&gt;    async fn run(self, options: CliOptions) -&amp;gt; N34Result&amp;lt;()&amp;gt; {&lt;br/&gt;        crate::run_command!(self, options, &amp;amp; Pow Relays Bunker Keyring Nip07)&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs2k7u4k90cufdxztgswrkcg8hsus8ujg8fyx2lv5xgesf552qwzzszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77g3p9ta</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs2k7u4k90cufdxztgswrkcg8hsus8ujg8fyx2lv5xgesf552qwzzszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77g3p9ta" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::sync::Arc;&lt;br/&gt;&lt;br/&gt;use axum::{&lt;br/&gt;    Extension,&lt;br/&gt;    body::Body,&lt;br/&gt;    http::HeaderValue,&lt;br/&gt;    response::{IntoResponse, Response},&lt;br/&gt;};&lt;br/&gt;use hyper::{StatusCode, header};&lt;br/&gt;&lt;br/&gt;use crate::{git_server::GitFilePath, router_state::RouterState};&lt;br/&gt;&lt;br/&gt;/// Fetches the content of a file in a repository using the provided&lt;br/&gt;/// `GitFilePath`. The function checks if the repository and file exist, and&lt;br/&gt;/// handles caching headers based on the `CACHE_HEADER` flag.&lt;br/&gt;pub async fn get_file_content&amp;lt;const CACHE_HEADER: bool&amp;gt;(&lt;br/&gt;    Extension(state): Extension&amp;lt;Arc&amp;lt;RouterState&amp;gt;&amp;gt;,&lt;br/&gt;    params: super::PublicKeyAndRepoPath,&lt;br/&gt;    GitFilePath(file_path): GitFilePath,&lt;br/&gt;) -&amp;gt; Response {&lt;br/&gt;    let Some(repo_path) = state.repo_path(&amp;amp;params.public_key, &amp;amp;params.repo_name) else {&lt;br/&gt;        return (StatusCode::NOT_FOUND, &amp;#34;Repository not found&amp;#34;).into_response();&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    let file_path = repo_path.join(file_path);&lt;br/&gt;&lt;br/&gt;    if !file_path.exists() {&lt;br/&gt;        return (StatusCode::NOT_FOUND, &amp;#34;File not found&amp;#34;).into_response();&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    let mut response = Response::builder();&lt;br/&gt;    let headers = response&lt;br/&gt;        .headers_mut()&lt;br/&gt;        .expect(&amp;#34;builder function provide the response parts&amp;#34;);&lt;br/&gt;&lt;br/&gt;    if CACHE_HEADER {&lt;br/&gt;        let expires_value = (chrono::Utc::now() &#43; chrono::Duration::days(1)).to_rfc2822();&lt;br/&gt;        headers.insert(&lt;br/&gt;            &amp;#34;Cache-Control&amp;#34;,&lt;br/&gt;            HeaderValue::from_static(&amp;#34;public, max-age=86400&amp;#34;),&lt;br/&gt;        );&lt;br/&gt;        headers.insert(&lt;br/&gt;            &amp;#34;Expires&amp;#34;,&lt;br/&gt;            HeaderValue::from_str(&amp;amp;expires_value).expect(&amp;#34;valid header value&amp;#34;),&lt;br/&gt;        );&lt;br/&gt;&lt;br/&gt;        let content_type = if file_path.extension().is_some_and(|ext| ext == &amp;#34;pack&amp;#34;) {&lt;br/&gt;            &amp;#34;application/x-git-packed-objects&amp;#34;&lt;br/&gt;        } else if file_path.extension().is_some_and(|ext| ext == &amp;#34;idx&amp;#34;) {&lt;br/&gt;            &amp;#34;application/x-git-packed-objects-toc&amp;#34;&lt;br/&gt;        } else {&lt;br/&gt;            &amp;#34;application/x-git-loose-object&amp;#34;&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        headers.insert(header::CONTENT_TYPE, HeaderValue::from_static(content_type));&lt;br/&gt;    } else {&lt;br/&gt;        headers.insert(&amp;#34;Pragma&amp;#34;, HeaderValue::from_static(&amp;#34;no-cache&amp;#34;));&lt;br/&gt;        headers.insert(&amp;#34;Cache-Control&amp;#34;, crate::git_server::CACHE_CONTROL_NO_CACHE);&lt;br/&gt;        headers.insert(&amp;#34;Expires&amp;#34;, crate::git_server::EXPIRES_NO_CACHE);&lt;br/&gt;        headers.insert(header::CONTENT_TYPE, HeaderValue::from_static(&amp;#34;text/plain&amp;#34;));&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    let Ok(file_content) = tokio::fs::read(&amp;amp;file_path).await else {&lt;br/&gt;        return (&lt;br/&gt;            StatusCode::INTERNAL_SERVER_ERROR,&lt;br/&gt;            &amp;#34;Failed to get file content&amp;#34;,&lt;br/&gt;        )&lt;br/&gt;            .into_response();&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    Response::builder()&lt;br/&gt;        .status(StatusCode::OK)&lt;br/&gt;        .body(Body::from(file_content))&lt;br/&gt;        .expect(&amp;#34;valid response&amp;#34;)&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs2n9f0g9hfz55snlqlwy93j4wepumnrv9ltgd78nm4dwnjy6mh5vczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77z9jsep</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs2n9f0g9hfz55snlqlwy93j4wepumnrv9ltgd78nm4dwnjy6mh5vczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77z9jsep" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::sync::Arc;&lt;br/&gt;&lt;br/&gt;use either::Either;&lt;br/&gt;use nostr::{&lt;br/&gt;    event::{Event, Kind, TagKind},&lt;br/&gt;    filter::Filter,&lt;br/&gt;    nips::nip19::ToBech32,&lt;br/&gt;    util::BoxedFuture,&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;use crate::relay::{MiddlewareState, grasp::git_command::GraspGitCommand};&lt;br/&gt;&lt;br/&gt;/// Creates a repo if received a repository announcements contains the relay&lt;br/&gt;/// domain in `clone` tag and `relay` tag&lt;br/&gt;pub fn repo_creator&amp;lt;&amp;#39;a&amp;gt;(&lt;br/&gt;    repo_or_query: Either&amp;lt;&amp;amp;&amp;#39;a Filter, &amp;amp;&amp;#39;a Event&amp;gt;,&lt;br/&gt;    state: Arc&amp;lt;MiddlewareState&amp;gt;,&lt;br/&gt;) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, ()&amp;gt; {&lt;br/&gt;    Box::pin(async move {&lt;br/&gt;        let Either::Right(event) = repo_or_query else {&lt;br/&gt;            return;&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        if event.kind != Kind::GitRepoAnnouncement {&lt;br/&gt;            return;&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        let Some(repo_name) = event.tags.identifier() else {&lt;br/&gt;            return;&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        let repo_description = event&lt;br/&gt;            .tags&lt;br/&gt;            .find(TagKind::Description)&lt;br/&gt;            .and_then(|t| t.content())&lt;br/&gt;            .unwrap_or(&amp;#34;N/A&amp;#34;);&lt;br/&gt;&lt;br/&gt;        if let Err(err) = GraspGitCommand::new(&lt;br/&gt;            &amp;amp;state.config.grasp.git_path,&lt;br/&gt;            &amp;amp;state&lt;br/&gt;                .config&lt;br/&gt;                .grasp&lt;br/&gt;                .repos_path&lt;br/&gt;                .join(event.pubkey.to_bech32().expect(&amp;#34;Infallible&amp;#34;))&lt;br/&gt;                .join(repo_name)&lt;br/&gt;                .with_extension(&amp;#34;git&amp;#34;),&lt;br/&gt;        )&lt;br/&gt;        .new_bare(repo_description)&lt;br/&gt;        .await&lt;br/&gt;        {&lt;br/&gt;            tracing::error!(&amp;#34;{err}&amp;#34;);&lt;br/&gt;        }&lt;br/&gt;    })&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs2j7vfkvzvf2e0jjvapg9glh9n7dv94p22yn5l55seqn6v4v66ceqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77fugua8</id>
    
      <title type="html"># Reopens a Closed or Drafted Patch &amp;gt; `n34 patch reopen` ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs2j7vfkvzvf2e0jjvapg9glh9n7dv94p22yn5l55seqn6v4v66ceqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77fugua8" />
    <content type="html">
      # Reopens a Closed or Drafted Patch&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 patch reopen` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Reopens a closed or drafted patch&lt;br/&gt;&lt;br/&gt;Usage: n34 patch reopen [OPTIONS] &amp;lt;PATCH_ID&amp;gt;&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  &amp;lt;PATCH_ID&amp;gt;  The closed/drafted patch id to reopen it. Must be orignal root patch&lt;br/&gt;&lt;br/&gt;Options:&lt;br/&gt;      --repo &amp;lt;NADDR-NIP05-OR-SET&amp;gt;  Repository address in `naddr` format (`naddr1...`), NIP-05 format (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;Issue a kind `1632` (Close status) for the specified patch. The patch have to&lt;br/&gt;be closed or drafted.&lt;br/&gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs2s3twzr4tmcdmwmzd60du8tg3ez4cz7d9t3ssqztaqtw2twztdzczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77tlsk59</id>
    
      <title type="html">// n34 - A CLI to interact with NIP-34 and other stuff related to ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs2s3twzr4tmcdmwmzd60du8tg3ez4cz7d9t3ssqztaqtw2twztdzczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77tlsk59" />
    <content type="html">
      // n34 - A CLI to interact with NIP-34 and other stuff related to codes in nostr&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU General Public License as published by&lt;br/&gt;// the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/gpl-3.0.html&amp;gt&#34;&gt;https://gnu.org/licenses/gpl-3.0.html&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;use clap::{ArgGroup, Args};&lt;br/&gt;use nostr::event::{EventBuilder, Tag};&lt;br/&gt;&lt;br/&gt;use crate::{&lt;br/&gt;    cli::{&lt;br/&gt;        CliOptions,&lt;br/&gt;        CommandRunner,&lt;br/&gt;        traits::{OptionNaddrOrSetVecExt, RelayOrSetVecExt},&lt;br/&gt;        types::NaddrOrSet,&lt;br/&gt;    },&lt;br/&gt;    error::N34Result,&lt;br/&gt;    nostr_utils::{&lt;br/&gt;        NostrClient,&lt;br/&gt;        traits::{NaddrsUtils, NewGitRepositoryAnnouncement, ReposUtils},&lt;br/&gt;        utils,&lt;br/&gt;    },&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;/// Arguments for the `issue new` command&lt;br/&gt;#[derive(Args, Debug)]&lt;br/&gt;#[clap(&lt;br/&gt;    group(&lt;br/&gt;        ArgGroup::new(&amp;#34;issue-content&amp;#34;)&lt;br/&gt;            .args([&amp;#34;content&amp;#34;, &amp;#34;editor&amp;#34;])&lt;br/&gt;            .required(true)&lt;br/&gt;    ),&lt;br/&gt;    group(&lt;br/&gt;        ArgGroup::new(&amp;#34;issue-subject&amp;#34;)&lt;br/&gt;            .args([&amp;#34;editor&amp;#34;, &amp;#34;subject&amp;#34;])&lt;br/&gt;    )&lt;br/&gt;)]&lt;br/&gt;pub struct NewArgs {&lt;br/&gt;    /// Repository address in `naddr` format (`naddr1...`), NIP-05 format&lt;br/&gt;    /// (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`.&lt;br/&gt;    ///&lt;br/&gt;    /// If omitted, looks for a `nostr-address` file.&lt;br/&gt;    #[arg(value_name = &amp;#34;NADDR-NIP05-OR-SET&amp;#34;, long = &amp;#34;repo&amp;#34;)]&lt;br/&gt;    naddrs:  Option&amp;lt;Vec&amp;lt;NaddrOrSet&amp;gt;&amp;gt;,&lt;br/&gt;    /// Markdown content for the issue. Cannot be used together with the&lt;br/&gt;    /// `--editor` flag.&lt;br/&gt;    #[arg(short, long)]&lt;br/&gt;    content: Option&amp;lt;String&amp;gt;,&lt;br/&gt;    /// Opens the user&amp;#39;s default editor to write issue content. The first line&lt;br/&gt;    /// will be used as the issue subject.&lt;br/&gt;    #[arg(short, long)]&lt;br/&gt;    editor:  bool,&lt;br/&gt;    /// The issue subject. Cannot be used together with the `--editor` flag.&lt;br/&gt;    #[arg(long)]&lt;br/&gt;    subject: Option&amp;lt;String&amp;gt;,&lt;br/&gt;    /// Labels for the issue. Can be specified as arguments (-l bug) or hashtags&lt;br/&gt;    /// in content (#bug).&lt;br/&gt;    #[arg(short, long)]&lt;br/&gt;    label:   Vec&amp;lt;String&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl NewArgs {&lt;br/&gt;    /// Returns the subject and the content of the issue. (subject, content)&lt;br/&gt;    pub fn issue_content(&amp;amp;self) -&amp;gt; N34Result&amp;lt;(Option&amp;lt;String&amp;gt;, String)&amp;gt; {&lt;br/&gt;        if let Some(content) = self.content.as_ref() {&lt;br/&gt;            if let Some(subject) = self.subject.as_ref() {&lt;br/&gt;                return Ok((Some(subject.trim().to_owned()), content.trim().to_owned()));&lt;br/&gt;            }&lt;br/&gt;            return Ok((None, content.trim().to_owned()));&lt;br/&gt;        }&lt;br/&gt;        // If the `self.content` is `None` then the `self.editor` is `true`&lt;br/&gt;        let file_content = utils::read_editor(None, &amp;#34;.md&amp;#34;)?;&lt;br/&gt;        if file_content.contains(&amp;#39;\n&amp;#39;) {&lt;br/&gt;            Ok(file_content&lt;br/&gt;                .split_once(&amp;#39;\n&amp;#39;)&lt;br/&gt;                .map(|(s, c)| (Some(s.trim().to_owned()), c.trim().to_owned()))&lt;br/&gt;                .expect(&amp;#34;There is a new line&amp;#34;))&lt;br/&gt;        } else {&lt;br/&gt;            tracing::info!(&amp;#34;File content contains only issue body without a subject line&amp;#34;);&lt;br/&gt;            Ok((None, file_content))&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl CommandRunner for NewArgs {&lt;br/&gt;    async fn run(self, options: CliOptions) -&amp;gt; N34Result&amp;lt;()&amp;gt; {&lt;br/&gt;        let naddrs = utils::check_empty_naddrs(utils::naddrs_or_file(&lt;br/&gt;            self.naddrs.flat_naddrs(&amp;amp;options.config.sets)?,&lt;br/&gt;            &amp;amp;utils::nostr_address_path()?,&lt;br/&gt;        )?)?;&lt;br/&gt;        let relays = options.relays.clone().flat_relays(&amp;amp;options.config.sets)?;&lt;br/&gt;        let client = NostrClient::init(&amp;amp;options, &amp;amp;relays).await;&lt;br/&gt;        let user_pubk = client.pubkey().await?;&lt;br/&gt;        let coordinates = naddrs.clone().into_coordinates();&lt;br/&gt;        client.add_relays(&amp;amp;naddrs.extract_relays()).await;&lt;br/&gt;        let repos = client.fetch_repos(coordinates.as_slice()).await?;&lt;br/&gt;        let maintainers = repos.extract_maintainers();&lt;br/&gt;        client.add_relays(&amp;amp;repos.extract_relays()).await;&lt;br/&gt;        let relays_list = client.user_relays_list(user_pubk).await?;&lt;br/&gt;        client&lt;br/&gt;            .add_relays(&amp;amp;utils::add_read_relays(relays_list.as_ref()))&lt;br/&gt;            .await;&lt;br/&gt;&lt;br/&gt;        let (subject, content) = self.issue_content()?;&lt;br/&gt;        let content_details = client.parse_content(&amp;amp;content).await;&lt;br/&gt;&lt;br/&gt;        let event =&lt;br/&gt;            EventBuilder::new_git_issue(coordinates.as_slice(), content, subject, self.label)?&lt;br/&gt;                .dedup_tags()&lt;br/&gt;                .pow(options.pow.unwrap_or_default())&lt;br/&gt;                .tags(maintainers.iter().map(|p| Tag::public_key(*p)))&lt;br/&gt;                .tags(content_details.clone().into_tags())&lt;br/&gt;                .build(user_pubk);&lt;br/&gt;        let event_id = event.id.expect(&amp;#34;There is an id&amp;#34;);&lt;br/&gt;&lt;br/&gt;        let write_relays = [&lt;br/&gt;            relays,&lt;br/&gt;            naddrs.extract_relays(),&lt;br/&gt;            utils::add_write_relays(relays_list.as_ref()),&lt;br/&gt;            client&lt;br/&gt;                .fetch_repos(&amp;amp;naddrs.into_coordinates())&lt;br/&gt;                .await?&lt;br/&gt;                .extract_relays(),&lt;br/&gt;            // Include read relays for each maintainer (if found)&lt;br/&gt;            client.read_relays_from_users(&amp;amp;maintainers).await,&lt;br/&gt;            content_details.write_relays.clone().into_iter().collect(),&lt;br/&gt;        ]&lt;br/&gt;        .concat();&lt;br/&gt;&lt;br/&gt;        tracing::trace!(relays = ?write_relays, &amp;#34;Write relays list&amp;#34;);&lt;br/&gt;        let success = client&lt;br/&gt;            .send_event_to(event, relays_list.as_ref(), &amp;amp;write_relays)&lt;br/&gt;            .await?;&lt;br/&gt;&lt;br/&gt;        let nevent = utils::new_nevent(event_id, &amp;amp;success)?;&lt;br/&gt;        println!(&amp;#34;Issue created: {nevent}&amp;#34;);&lt;br/&gt;&lt;br/&gt;        Ok(())&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs20skh66z89sjm6c33954ye20wgmy83fu9sy967f6hses4exzk7aszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77swrqf3</id>
    
      <title type="html">[workspace] members = [&amp;#34;.&amp;#34;, ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs20skh66z89sjm6c33954ye20wgmy83fu9sy967f6hses4exzk7aszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77swrqf3" />
    <content type="html">
      [workspace]&lt;br/&gt;members = [&amp;#34;.&amp;#34;, &amp;#34;src/get_file_hash_core&amp;#34;, &amp;#34;n34&amp;#34;, &amp;#34;n34-relay&amp;#34;]&lt;br/&gt;&lt;br/&gt;[workspace.package]&lt;br/&gt;version = &amp;#34;0.4.7&amp;#34;&lt;br/&gt;edition = &amp;#34;2024&amp;#34;&lt;br/&gt;license = &amp;#34;MIT&amp;#34;&lt;br/&gt;authors = [&amp;#34;gnostr admin@gnostr.org&amp;#34;]&lt;br/&gt;documentation = &amp;#34;&lt;a href=&#34;https://github.com/gnostr-org/get_file_hash#readme&amp;#34&#34;&gt;https://github.com/gnostr-org/get_file_hash#readme&amp;#34&lt;/a&gt;;&lt;br/&gt;homepage = &amp;#34;&lt;a href=&#34;https://github.com/gnostr-org/get_file_hash&amp;#34&#34;&gt;https://github.com/gnostr-org/get_file_hash&amp;#34&lt;/a&gt;;&lt;br/&gt;repository = &amp;#34;&lt;a href=&#34;https://github.com/gnostr-org/get_file_hash&amp;#34&#34;&gt;https://github.com/gnostr-org/get_file_hash&amp;#34&lt;/a&gt;;&lt;br/&gt;description = &amp;#34;A utility crate providing a procedural macro to compute and embed file hashes at compile time.&amp;#34;&lt;br/&gt;&lt;br/&gt;[package]&lt;br/&gt;name = &amp;#34;get_file_hash&amp;#34;&lt;br/&gt;version.workspace = true&lt;br/&gt;edition.workspace = true&lt;br/&gt;description.workspace = true&lt;br/&gt;repository.workspace = true&lt;br/&gt;homepage.workspace = true&lt;br/&gt;authors.workspace = true&lt;br/&gt;license.workspace = true&lt;br/&gt;&lt;br/&gt;[package.metadata.wix]&lt;br/&gt;upgrade-guid = &amp;#34;DED69220-26E3-4406-B564-7F2B58C56F57&amp;#34;&lt;br/&gt;path-guid = &amp;#34;8DB39A25-8B99-4C25-8CF5-4704353C7C6E&amp;#34;&lt;br/&gt;license = false&lt;br/&gt;eula = false&lt;br/&gt;&lt;br/&gt;[features]&lt;br/&gt;nostr = [&amp;#34;dep:nostr&amp;#34;, &amp;#34;dep:nostr-sdk&amp;#34;, &amp;#34;dep:hex&amp;#34;]&lt;br/&gt;frost = [&amp;#34;dep:nostr&amp;#34;, &amp;#34;dep:nostr-sdk&amp;#34;, &amp;#34;dep:hex&amp;#34;]&lt;br/&gt;gen-protos = []&lt;br/&gt;&lt;br/&gt;[workspace.dependencies]&lt;br/&gt;get_file_hash_core = { features = [&amp;#34;nostr&amp;#34;], path = &amp;#34;src/get_file_hash_core&amp;#34;, version = &amp;#34;0.4.7&amp;#34; }&lt;br/&gt;rand_chacha = &amp;#34;0.3&amp;#34;&lt;br/&gt;sha2 = &amp;#34;0.11.0&amp;#34;&lt;br/&gt;nostr = { version = &amp;#34;0.44.2&amp;#34;, features = [&amp;#34;std&amp;#34;, &amp;#34;nip46&amp;#34;] }&lt;br/&gt;nostr-sdk = { version = &amp;#34;0.44.0&amp;#34;, default-features = false, features = [&amp;#34;default&amp;#34;] }&lt;br/&gt;hex = &amp;#34;0.4.2&amp;#34;&lt;br/&gt;tokio = &amp;#34;1&amp;#34;&lt;br/&gt;serde_json = &amp;#34;1.0&amp;#34;&lt;br/&gt;csv = { version = &amp;#34;1.3.0&amp;#34;, default-features = false }&lt;br/&gt;url = &amp;#34;2.5.0&amp;#34;&lt;br/&gt;reqwest = { version = &amp;#34;0.12.0&amp;#34;, default-features = false }&lt;br/&gt;tempfile = &amp;#34;3.27.0&amp;#34;&lt;br/&gt;rand = &amp;#34;0.8&amp;#34;&lt;br/&gt;frost-secp256k1-tr = &amp;#34;3.0.0-rc.0&amp;#34;&lt;br/&gt;serial_test = { version = &amp;#34;3.4.0&amp;#34;, features = [&amp;#34;test_logging&amp;#34;] }&lt;br/&gt;log = &amp;#34;0.4&amp;#34;&lt;br/&gt;n34 = { version = &amp;#34;0.4.0&amp;#34;, path = &amp;#34;n34&amp;#34; }&lt;br/&gt;n34-relay = { version = &amp;#34;0.1.1&amp;#34;, path = &amp;#34;n34-relay&amp;#34; }&lt;br/&gt;chrono                     = &amp;#34;0.4.41&amp;#34;&lt;br/&gt;convert_case               = &amp;#34;0.8.0&amp;#34;&lt;br/&gt;dirs                       = &amp;#34;6.0.0&amp;#34;&lt;br/&gt;easy-ext                   = &amp;#34;1.0.2&amp;#34;&lt;br/&gt;either                     = &amp;#34;1.15.0&amp;#34;&lt;br/&gt;futures                    = &amp;#34;0.3.31&amp;#34;&lt;br/&gt;nostr-browser-signer-proxy = &amp;#34;0.43.0&amp;#34;&lt;br/&gt;regex                      = &amp;#34;1.11.1&amp;#34;&lt;br/&gt;thiserror                  = &amp;#34;2.0.12&amp;#34;&lt;br/&gt;toml                       = &amp;#34;0.9.4&amp;#34;&lt;br/&gt;tracing                    = &amp;#34;0.1.41&amp;#34;&lt;br/&gt;tracing-subscriber         = &amp;#34;0.3.19&amp;#34;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;[dependencies]&lt;br/&gt;get_file_hash_core = { workspace = true, features = [&amp;#34;nostr&amp;#34;]  }&lt;br/&gt;sha2 = { workspace = true }&lt;br/&gt;tracing = { workspace = true }&lt;br/&gt;tracing-subscriber = { workspace = true }&lt;br/&gt;nostr = { workspace = true, optional = true }&lt;br/&gt;nostr-sdk = { workspace = true, optional = true }&lt;br/&gt;hex = { workspace = true, optional = true }&lt;br/&gt;tokio = { workspace = true, features = [&amp;#34;full&amp;#34;] }&lt;br/&gt;frost-secp256k1-tr = { workspace = true }&lt;br/&gt;rand = { workspace = true }&lt;br/&gt;serde_json = { workspace = true }&lt;br/&gt;rand_chacha = { workspace = true }&lt;br/&gt;n34 = { workspace = true }&lt;br/&gt;n34-relay = { workspace = true }&lt;br/&gt;axum               = { version = &amp;#34;0.8.6&amp;#34;, features = [&amp;#34;http2&amp;#34;, &amp;#34;ws&amp;#34;] }&lt;br/&gt;base64             = &amp;#34;0.22.1&amp;#34;&lt;br/&gt;chrono             = &amp;#34;0.4.42&amp;#34;&lt;br/&gt;config             = { version = &amp;#34;0.15.15&amp;#34;, default-features = false, features = [&amp;#34;toml&amp;#34;] }&lt;br/&gt;const_format       = &amp;#34;0.2.34&amp;#34;&lt;br/&gt;convert_case       = &amp;#34;0.8.0&amp;#34;&lt;br/&gt;easy-ext           = &amp;#34;1.0.2&amp;#34;&lt;br/&gt;either             = &amp;#34;1.15.0&amp;#34;&lt;br/&gt;flume              = &amp;#34;0.11.1&amp;#34;&lt;br/&gt;futures            = &amp;#34;0.3.31&amp;#34;&lt;br/&gt;hyper              = &amp;#34;1.7.0&amp;#34;&lt;br/&gt;hyper-util         = &amp;#34;0.1.17&amp;#34;&lt;br/&gt;parking_lot        = { version = &amp;#34;0.12.5&amp;#34;, features = [&amp;#34;serde&amp;#34;] }&lt;br/&gt;prost              = &amp;#34;0.14.1&amp;#34;&lt;br/&gt;serde              = { version = &amp;#34;1.0.219&amp;#34;, features = [&amp;#34;rc&amp;#34;] }&lt;br/&gt;#serde_json         = &amp;#34;1.0.145&amp;#34;&lt;br/&gt;serde_with         = &amp;#34;3.15.0&amp;#34;&lt;br/&gt;sha1               = &amp;#34;0.10.6&amp;#34;&lt;br/&gt;#sha2               = &amp;#34;0.10.9&amp;#34;&lt;br/&gt;strum              = { version = &amp;#34;0.27.2&amp;#34;, features = [&amp;#34;derive&amp;#34;] }&lt;br/&gt;thiserror          = &amp;#34;2.0.16&amp;#34;&lt;br/&gt;tokio-util         = { version = &amp;#34;0.7.17&amp;#34;, features = [&amp;#34;io&amp;#34;] }&lt;br/&gt;toml               = &amp;#34;0.9.5&amp;#34;&lt;br/&gt;tonic-prost        = &amp;#34;0.14.2&amp;#34;&lt;br/&gt;tower              = { version = &amp;#34;0.5.2&amp;#34;, features = [&amp;#34;limit&amp;#34;] }&lt;br/&gt;#tracing            = &amp;#34;0.1.41&amp;#34;&lt;br/&gt;#tracing-subscriber = { version = &amp;#34;0.3.20&amp;#34;, features = [&amp;#34;env-filter&amp;#34;] }&lt;br/&gt;dirs = &amp;#34;6.0.0&amp;#34;&lt;br/&gt;rhai = { version = &amp;#34;1.23.4&amp;#34;, features = [&lt;br/&gt;  &amp;#34;no_position&amp;#34;,&lt;br/&gt;  &amp;#34;sync&amp;#34;,&lt;br/&gt;  &amp;#34;serde&amp;#34;,&lt;br/&gt;  &amp;#34;decimal&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;##tokio = { version = &amp;#34;1.47.1&amp;#34;, features = [&lt;br/&gt;##  &amp;#34;macros&amp;#34;,&lt;br/&gt;##  &amp;#34;rt-multi-thread&amp;#34;,&lt;br/&gt;##  &amp;#34;signal&amp;#34;,&lt;br/&gt;##  &amp;#34;fs&amp;#34;,&lt;br/&gt;##  &amp;#34;process&amp;#34;,&lt;br/&gt;##] }&lt;br/&gt;tonic = { version = &amp;#34;0.14.2&amp;#34;, features = [&lt;br/&gt;  &amp;#34;tls-ring&amp;#34;,&lt;br/&gt;  &amp;#34;tls-webpki-roots&amp;#34;,&lt;br/&gt;  &amp;#34;gzip&amp;#34;,&lt;br/&gt;  &amp;#34;deflate&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;tower-http = { version = &amp;#34;0.6.6&amp;#34;, features = [&lt;br/&gt;  &amp;#34;cors&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-br&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-deflate&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-gzip&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-zstd&amp;#34;,&lt;br/&gt;  &amp;#34;trace&amp;#34;,&lt;br/&gt;  &amp;#34;timeout&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;[dependencies.clap]&lt;br/&gt;features = [&amp;#34;derive&amp;#34;]&lt;br/&gt;version  = &amp;#34;4.5.42&amp;#34;&lt;br/&gt;&lt;br/&gt;[dependencies.clap-verbosity-flag]&lt;br/&gt;default-features = false&lt;br/&gt;features         = [&amp;#34;tracing&amp;#34;]&lt;br/&gt;version          = &amp;#34;3.0.3&amp;#34;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;  # We frequently switch between stable and unstable versions; this will make the&lt;br/&gt;  # process easier.&lt;br/&gt;  ## [dependencies.nostr]&lt;br/&gt;  ## default-features = false&lt;br/&gt;  ## features         = [&amp;#34;std&amp;#34;]&lt;br/&gt;  ## git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  ## rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  ## # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;  [dependencies.nostr-database]&lt;br/&gt;  default-features = false&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;  [dependencies.nostr-lmdb]&lt;br/&gt;  default-features = false&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;  [dependencies.nostr-relay-builder]&lt;br/&gt;  default-features = false&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;[build-dependencies]&lt;br/&gt;get_file_hash_core = { workspace = true, features = [&amp;#34;nostr&amp;#34;] }&lt;br/&gt;sha2 = { workspace = true }&lt;br/&gt;serde_json = { workspace = true }&lt;br/&gt;tokio = { workspace = true, features = [&amp;#34;full&amp;#34;] }&lt;br/&gt;nostr = { workspace = true }&lt;br/&gt;nostr-sdk = { workspace = true }&lt;br/&gt;hex = { workspace = true }&lt;br/&gt;tonic-prost-build = &amp;#34;0.14.2&amp;#34;&lt;br/&gt;[target.&amp;#39;cfg(not(windows))&amp;#39;.build-dependencies]&lt;br/&gt;protobuf-src = &amp;#34;2.1.0&amp;#34;&lt;br/&gt;&lt;br/&gt;# The profile that &amp;#39;dist&amp;#39; will build with&lt;br/&gt;[profile.dist]&lt;br/&gt;inherits = &amp;#34;release&amp;#34;&lt;br/&gt;lto = &amp;#34;thin&amp;#34;&lt;br/&gt;&lt;br/&gt;[dev-dependencies]&lt;br/&gt;serial_test = { workspace = true }&lt;br/&gt;&lt;br/&gt;[[example]]&lt;br/&gt;name = &amp;#34;gnostr-build&amp;#34;&lt;br/&gt;path = &amp;#34;examples/gnostr-build.rs&amp;#34;&lt;br/&gt;required-features = [&amp;#34;nostr&amp;#34;]&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs2twmfhpfn92xuzx8gufhqrlxm3j5qz6q80jjyaw3u33mxart0g8gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77mq6h7m</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs2twmfhpfn92xuzx8gufhqrlxm3j5qz6q80jjyaw3u33mxart0g8gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77mq6h7m" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::{net::SocketAddr, process::ExitCode, sync::Arc};&lt;br/&gt;&lt;br/&gt;use axum::Extension;&lt;br/&gt;use hyper::{Method, header};&lt;br/&gt;use tokio::signal;&lt;br/&gt;use tower_http::{&lt;br/&gt;    cors,&lt;br/&gt;    decompression::RequestDecompressionLayer,&lt;br/&gt;    trace::{DefaultMakeSpan, TraceLayer},&lt;br/&gt;};&lt;br/&gt;use tracing::level_filters::LevelFilter;&lt;br/&gt;use tracing_subscriber::{EnvFilter, Layer, layer::SubscriberExt};&lt;br/&gt;&lt;br/&gt;/// Relay endpoints&lt;br/&gt;mod endpoints;&lt;br/&gt;/// Relay errors.&lt;br/&gt;mod errors;&lt;br/&gt;/// Extension traits&lt;br/&gt;mod ext_traits;&lt;br/&gt;/// GRASP git server&lt;br/&gt;mod git_server;&lt;br/&gt;/// Relay pathes.&lt;br/&gt;mod pathes;&lt;br/&gt;/// Raw axum websocket&lt;br/&gt;mod raw_websocket;&lt;br/&gt;/// Our relay.&lt;br/&gt;mod relay;&lt;br/&gt;/// Relay configuration.&lt;br/&gt;mod relay_config;&lt;br/&gt;/// Router state&lt;br/&gt;mod router_state;&lt;br/&gt;/// Some useful utils.&lt;br/&gt;mod utils;&lt;br/&gt;&lt;br/&gt;use self::{errors::RelayResult, relay_config::RelayConfig, router_state::RouterState};&lt;br/&gt;&lt;br/&gt;/// Sets up default logging with two outputs, stderr and a log file.&lt;br/&gt;///&lt;br/&gt;/// Log level for stderr is controlled by `RUST_LOG` environment variable,&lt;br/&gt;/// defaults to `ERROR`. The log file always uses `TRACE` level.&lt;br/&gt;fn setup_logs() -&amp;gt; errors::RelayResult&amp;lt;()&amp;gt; {&lt;br/&gt;    tracing::subscriber::set_global_default(&lt;br/&gt;        tracing_subscriber::registry()&lt;br/&gt;            .with(&lt;br/&gt;                tracing_subscriber::fmt::layer()&lt;br/&gt;                    .with_ansi(true)&lt;br/&gt;                    .with_writer(std::io::stderr)&lt;br/&gt;                    .without_time()&lt;br/&gt;                    .with_filter(EnvFilter::from_default_env()),&lt;br/&gt;            )&lt;br/&gt;            .with(&lt;br/&gt;                tracing_subscriber::fmt::layer()&lt;br/&gt;                    .with_ansi(false)&lt;br/&gt;                    .with_writer(utils::logs_file()?)&lt;br/&gt;                    .with_file(false)&lt;br/&gt;                    .with_line_number(false)&lt;br/&gt;                    .with_filter(LevelFilter::TRACE),&lt;br/&gt;            ),&lt;br/&gt;    )&lt;br/&gt;    .ok();&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;async fn shutdown_signal() {&lt;br/&gt;    let ctrl_c = async {&lt;br/&gt;        signal::ctrl_c()&lt;br/&gt;            .await&lt;br/&gt;            .expect(&amp;#34;Failed to install CTRL&#43;C handler&amp;#34;);&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    #[cfg(unix)]&lt;br/&gt;    let terminate = async {&lt;br/&gt;        use tokio::signal::unix::SignalKind;&lt;br/&gt;&lt;br/&gt;        signal::unix::signal(SignalKind::terminate())&lt;br/&gt;            .expect(&amp;#34;Failed to create SIGTERM handler&amp;#34;)&lt;br/&gt;            .recv()&lt;br/&gt;            .await;&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    #[cfg(not(unix))]&lt;br/&gt;    let terminate = std::future::pending::&amp;lt;()&amp;gt;();&lt;br/&gt;&lt;br/&gt;    tokio::select! {&lt;br/&gt;        _ = ctrl_c =&amp;gt; {},&lt;br/&gt;        _ = terminate =&amp;gt; {},&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;async fn try_main() -&amp;gt; RelayResult&amp;lt;()&amp;gt; {&lt;br/&gt;    setup_logs()?;&lt;br/&gt;    let config = Arc::new(RelayConfig::reload()?);&lt;br/&gt;    let relay_db = config.get_relay_db().await?;&lt;br/&gt;    let n34_relay = Arc::new(relay::build_relay(Arc::clone(&amp;amp;config), Arc::clone(&amp;amp;relay_db)).await);&lt;br/&gt;    let addr = SocketAddr::new(config.net.ip, config.net.port);&lt;br/&gt;&lt;br/&gt;    tracing::debug!(&amp;#34;Running relay with configuration: {config:#?}&amp;#34;);&lt;br/&gt;    tracing::info!(&amp;#34;Relay is running at `{}`&amp;#34;, n34_relay.url().await);&lt;br/&gt;&lt;br/&gt;    let mut app = axum::Router::new()&lt;br/&gt;        // main handler. GET and POST&lt;br/&gt;        .route(&amp;#34;/&amp;#34;, axum::routing::get(endpoints::main_handler).post(endpoints::main_handler));&lt;br/&gt;&lt;br/&gt;    if config.grasp.enable {&lt;br/&gt;        tracing::info!(&amp;#34;Git server is running&amp;#34;);&lt;br/&gt;        app = app.merge(git_server::router(&amp;amp;config));&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    app = app&lt;br/&gt;        // enable cross-origin access&lt;br/&gt;        .route(&lt;br/&gt;            &amp;#34;/&amp;#34;,&lt;br/&gt;            axum::routing::options(|| async { hyper::StatusCode::NO_CONTENT }),&lt;br/&gt;        )&lt;br/&gt;        .layer(&lt;br/&gt;            cors::CorsLayer::new()&lt;br/&gt;                .allow_origin(cors::Any)&lt;br/&gt;                .allow_methods([Method::GET, Method::POST])&lt;br/&gt;                .allow_headers([header::CONTENT_TYPE]),&lt;br/&gt;        )&lt;br/&gt;        .layer(&lt;br/&gt;            TraceLayer::new_for_http()&lt;br/&gt;                .make_span_with(DefaultMakeSpan::default().include_headers(true)),&lt;br/&gt;        )&lt;br/&gt;        .layer(RequestDecompressionLayer::new())&lt;br/&gt;        .layer(Extension(Arc::new(RouterState::new(&lt;br/&gt;            config, n34_relay, relay_db,&lt;br/&gt;        ))));&lt;br/&gt;&lt;br/&gt;    axum::serve(&lt;br/&gt;        tokio::net::TcpListener::bind(addr).await?,&lt;br/&gt;        app.into_make_service_with_connect_info::&amp;lt;SocketAddr&amp;gt;(),&lt;br/&gt;    )&lt;br/&gt;    .with_graceful_shutdown(shutdown_signal())&lt;br/&gt;    .await?;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[tokio::main]&lt;br/&gt;async fn main() -&amp;gt; ExitCode {&lt;br/&gt;    if let Err(err) = try_main().await {&lt;br/&gt;        eprintln!(&amp;#34;{err}&amp;#34;);&lt;br/&gt;        return ExitCode::FAILURE;&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    tracing::info!(&amp;#34;Exited gracefully without any errors&amp;#34;);&lt;br/&gt;    ExitCode::SUCCESS&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs22x6q39wker6lnn9ms6nfjlyf050v3mewu3d0nk8lwyd8xvxp36czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77rjt3nh</id>
    
      <title type="html">GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs22x6q39wker6lnn9ms6nfjlyf050v3mewu3d0nk8lwyd8xvxp36czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77rjt3nh" />
    <content type="html">
                          GNU GENERAL PUBLIC LICENSE&lt;br/&gt;                       Version 3, 29 June 2007&lt;br/&gt;&lt;br/&gt; Copyright (C) 2007 Free Software Foundation, Inc. &amp;lt;&lt;a href=&#34;https://fsf.org/&amp;gt&#34;&gt;https://fsf.org/&amp;gt&lt;/a&gt;;&lt;br/&gt; Everyone is permitted to copy and distribute verbatim copies&lt;br/&gt; of this license document, but changing it is not allowed.&lt;br/&gt;&lt;br/&gt;                            Preamble&lt;br/&gt;&lt;br/&gt;  The GNU General Public License is a free, copyleft license for&lt;br/&gt;software and other kinds of works.&lt;br/&gt;&lt;br/&gt;  The licenses for most software and other practical works are designed&lt;br/&gt;to take away your freedom to share and change the works.  By contrast,&lt;br/&gt;the GNU General Public License is intended to guarantee your freedom to&lt;br/&gt;share and change all versions of a program--to make sure it remains free&lt;br/&gt;software for all its users.  We, the Free Software Foundation, use the&lt;br/&gt;GNU General Public License for most of our software; it applies also to&lt;br/&gt;any other work released this way by its authors.  You can apply it to&lt;br/&gt;your programs, too.&lt;br/&gt;&lt;br/&gt;  When we speak of free software, we are referring to freedom, not&lt;br/&gt;price.  Our General Public Licenses are designed to make sure that you&lt;br/&gt;have the freedom to distribute copies of free software (and charge for&lt;br/&gt;them if you wish), that you receive source code or can get it if you&lt;br/&gt;want it, that you can change the software or use pieces of it in new&lt;br/&gt;free programs, and that you know you can do these things.&lt;br/&gt;&lt;br/&gt;  To protect your rights, we need to prevent others from denying you&lt;br/&gt;these rights or asking you to surrender the rights.  Therefore, you have&lt;br/&gt;certain responsibilities if you distribute copies of the software, or if&lt;br/&gt;you modify it: responsibilities to respect the freedom of others.&lt;br/&gt;&lt;br/&gt;  For example, if you distribute copies of such a program, whether&lt;br/&gt;gratis or for a fee, you must pass on to the recipients the same&lt;br/&gt;freedoms that you received.  You must make sure that they, too, receive&lt;br/&gt;or can get the source code.  And you must show them these terms so they&lt;br/&gt;know their rights.&lt;br/&gt;&lt;br/&gt;  Developers that use the GNU GPL protect your rights with two steps:&lt;br/&gt;(1) assert copyright on the software, and (2) offer you this License&lt;br/&gt;giving you legal permission to copy, distribute and/or modify it.&lt;br/&gt;&lt;br/&gt;  For the developers&amp;#39; and authors&amp;#39; protection, the GPL clearly explains&lt;br/&gt;that there is no warranty for this free software.  For both users&amp;#39; and&lt;br/&gt;authors&amp;#39; sake, the GPL requires that modified versions be marked as&lt;br/&gt;changed, so that their problems will not be attributed erroneously to&lt;br/&gt;authors of previous versions.&lt;br/&gt;&lt;br/&gt;  Some devices are designed to deny users access to install or run&lt;br/&gt;modified versions of the software inside them, although the manufacturer&lt;br/&gt;can do so.  This is fundamentally incompatible with the aim of&lt;br/&gt;protecting users&amp;#39; freedom to change the software.  The systematic&lt;br/&gt;pattern of such abuse occurs in the area of products for individuals to&lt;br/&gt;use, which is precisely where it is most unacceptable.  Therefore, we&lt;br/&gt;have designed this version of the GPL to prohibit the practice for those&lt;br/&gt;products.  If such problems arise substantially in other domains, we&lt;br/&gt;stand ready to extend this provision to those domains in future versions&lt;br/&gt;of the GPL, as needed to protect the freedom of users.&lt;br/&gt;&lt;br/&gt;  Finally, every program is threatened constantly by software patents.&lt;br/&gt;States should not allow patents to restrict development and use of&lt;br/&gt;software on general-purpose computers, but in those that do, we wish to&lt;br/&gt;avoid the special danger that patents applied to a free program could&lt;br/&gt;make it effectively proprietary.  To prevent this, the GPL assures that&lt;br/&gt;patents cannot be used to render the program non-free.&lt;br/&gt;&lt;br/&gt;  The precise terms and conditions for copying, distribution and&lt;br/&gt;modification follow.&lt;br/&gt;&lt;br/&gt;                       TERMS AND CONDITIONS&lt;br/&gt;&lt;br/&gt;  0. Definitions.&lt;br/&gt;&lt;br/&gt;  &amp;#34;This License&amp;#34; refers to version 3 of the GNU General Public License.&lt;br/&gt;&lt;br/&gt;  &amp;#34;Copyright&amp;#34; also means copyright-like laws that apply to other kinds of&lt;br/&gt;works, such as semiconductor masks.&lt;br/&gt;&lt;br/&gt;  &amp;#34;The Program&amp;#34; refers to any copyrightable work licensed under this&lt;br/&gt;License.  Each licensee is addressed as &amp;#34;you&amp;#34;.  &amp;#34;Licensees&amp;#34; and&lt;br/&gt;&amp;#34;recipients&amp;#34; may be individuals or organizations.&lt;br/&gt;&lt;br/&gt;  To &amp;#34;modify&amp;#34; a work means to copy from or adapt all or part of the work&lt;br/&gt;in a fashion requiring copyright permission, other than the making of an&lt;br/&gt;exact copy.  The resulting work is called a &amp;#34;modified version&amp;#34; of the&lt;br/&gt;earlier work or a work &amp;#34;based on&amp;#34; the earlier work.&lt;br/&gt;&lt;br/&gt;  A &amp;#34;covered work&amp;#34; means either the unmodified Program or a work based&lt;br/&gt;on the Program.&lt;br/&gt;&lt;br/&gt;  To &amp;#34;propagate&amp;#34; a work means to do anything with it that, without&lt;br/&gt;permission, would make you directly or secondarily liable for&lt;br/&gt;infringement under applicable copyright law, except executing it on a&lt;br/&gt;computer or modifying a private copy.  Propagation includes copying,&lt;br/&gt;distribution (with or without modification), making available to the&lt;br/&gt;public, and in some countries other activities as well.&lt;br/&gt;&lt;br/&gt;  To &amp;#34;convey&amp;#34; a work means any kind of propagation that enables other&lt;br/&gt;parties to make or receive copies.  Mere interaction with a user through&lt;br/&gt;a computer network, with no transfer of a copy, is not conveying.&lt;br/&gt;&lt;br/&gt;  An interactive user interface displays &amp;#34;Appropriate Legal Notices&amp;#34;&lt;br/&gt;to the extent that it includes a convenient and prominently visible&lt;br/&gt;feature that (1) displays an appropriate copyright notice, and (2)&lt;br/&gt;tells the user that there is no warranty for the work (except to the&lt;br/&gt;extent that warranties are provided), that licensees may convey the&lt;br/&gt;work under this License, and how to view a copy of this License.  If&lt;br/&gt;the interface presents a list of user commands or options, such as a&lt;br/&gt;menu, a prominent item in the list meets this criterion.&lt;br/&gt;&lt;br/&gt;  1. Source Code.&lt;br/&gt;&lt;br/&gt;  The &amp;#34;source code&amp;#34; for a work means the preferred form of the work&lt;br/&gt;for making modifications to it.  &amp;#34;Object code&amp;#34; means any non-source&lt;br/&gt;form of a work.&lt;br/&gt;&lt;br/&gt;  A &amp;#34;Standard Interface&amp;#34; means an interface that either is an official&lt;br/&gt;standard defined by a recognized standards body, or, in the case of&lt;br/&gt;interfaces specified for a particular programming language, one that&lt;br/&gt;is widely used among developers working in that language.&lt;br/&gt;&lt;br/&gt;  The &amp;#34;System Libraries&amp;#34; of an executable work include anything, other&lt;br/&gt;than the work as a whole, that (a) is included in the normal form of&lt;br/&gt;packaging a Major Component, but which is not part of that Major&lt;br/&gt;Component, and (b) serves only to enable use of the work with that&lt;br/&gt;Major Component, or to implement a Standard Interface for which an&lt;br/&gt;implementation is available to the public in source code form.  A&lt;br/&gt;&amp;#34;Major Component&amp;#34;, in this context, means a major essential component&lt;br/&gt;(kernel, window system, and so on) of the specific operating system&lt;br/&gt;(if any) on which the executable work runs, or a compiler used to&lt;br/&gt;produce the work, or an object code interpreter used to run it.&lt;br/&gt;&lt;br/&gt;  The &amp;#34;Corresponding Source&amp;#34; for a work in object code form means all&lt;br/&gt;the source code needed to generate, install, and (for an executable&lt;br/&gt;work) run the object code and to modify the work, including scripts to&lt;br/&gt;control those activities.  However, it does not include the work&amp;#39;s&lt;br/&gt;System Libraries, or general-purpose tools or generally available free&lt;br/&gt;programs which are used unmodified in performing those activities but&lt;br/&gt;which are not part of the work.  For example, Corresponding Source&lt;br/&gt;includes interface definition files associated with source files for&lt;br/&gt;the work, and the source code for shared libraries and dynamically&lt;br/&gt;linked subprograms that the work is specifically designed to require,&lt;br/&gt;such as by intimate data communication or control flow between those&lt;br/&gt;subprograms and other parts of the work.&lt;br/&gt;&lt;br/&gt;  The Corresponding Source need not include anything that users&lt;br/&gt;can regenerate automatically from other parts of the Corresponding&lt;br/&gt;Source.&lt;br/&gt;&lt;br/&gt;  The Corresponding Source for a work in source code form is that&lt;br/&gt;same work.&lt;br/&gt;&lt;br/&gt;  2. Basic Permissions.&lt;br/&gt;&lt;br/&gt;  All rights granted under this License are granted for the term of&lt;br/&gt;copyright on the Program, and are irrevocable provided the stated&lt;br/&gt;conditions are met.  This License explicitly affirms your unlimited&lt;br/&gt;permission to run the unmodified Program.  The output from running a&lt;br/&gt;covered work is covered by this License only if the output, given its&lt;br/&gt;content, constitutes a covered work.  This License acknowledges your&lt;br/&gt;rights of fair use or other equivalent, as provided by copyright law.&lt;br/&gt;&lt;br/&gt;  You may make, run and propagate covered works that you do not&lt;br/&gt;convey, without conditions so long as your license otherwise remains&lt;br/&gt;in force.  You may convey covered works to others for the sole purpose&lt;br/&gt;of having them make modifications exclusively for you, or provide you&lt;br/&gt;with facilities for running those works, provided that you comply with&lt;br/&gt;the terms of this License in conveying all material for which you do&lt;br/&gt;not control copyright.  Those thus making or running the covered works&lt;br/&gt;for you must do so exclusively on your behalf, under your direction&lt;br/&gt;and control, on terms that prohibit them from making any copies of&lt;br/&gt;your copyrighted material outside their relationship with you.&lt;br/&gt;&lt;br/&gt;  Conveying under any other circumstances is permitted solely under&lt;br/&gt;the conditions stated below.  Sublicensing is not allowed; section 10&lt;br/&gt;makes it unnecessary.&lt;br/&gt;&lt;br/&gt;  3. Protecting Users&amp;#39; Legal Rights From Anti-Circumvention Law.&lt;br/&gt;&lt;br/&gt;  No covered work shall be deemed part of an effective technological&lt;br/&gt;measure under any applicable law fulfilling obligations under article&lt;br/&gt;11 of the WIPO copyright treaty adopted on 20 December 1996, or&lt;br/&gt;similar laws prohibiting or restricting circumvention of such&lt;br/&gt;measures.&lt;br/&gt;&lt;br/&gt;  When you convey a covered work, you waive any legal power to forbid&lt;br/&gt;circumvention of technological measures to the extent such circumvention&lt;br/&gt;is effected by exercising rights under this License with respect to&lt;br/&gt;the covered work, and you disclaim any intention to limit operation or&lt;br/&gt;modification of the work as a means of enforcing, against the work&amp;#39;s&lt;br/&gt;users, your or third parties&amp;#39; legal rights to forbid circumvention of&lt;br/&gt;technological measures.&lt;br/&gt;&lt;br/&gt;  4. Conveying Verbatim Copies.&lt;br/&gt;&lt;br/&gt;  You may convey verbatim copies of the Program&amp;#39;s source code as you&lt;br/&gt;receive it, in any medium, provided that you conspicuously and&lt;br/&gt;appropriately publish on each copy an appropriate copyright notice;&lt;br/&gt;keep intact all notices stating that this License and any&lt;br/&gt;non-permissive terms added in accord with section 7 apply to the code;&lt;br/&gt;keep intact all notices of the absence of any warranty; and give all&lt;br/&gt;recipients a copy of this License along with the Program.&lt;br/&gt;&lt;br/&gt;  You may charge any price or no price for each copy that you convey,&lt;br/&gt;and you may offer support or warranty protection for a fee.&lt;br/&gt;&lt;br/&gt;  5. Conveying Modified Source Versions.&lt;br/&gt;&lt;br/&gt;  You may convey a work based on the Program, or the modifications to&lt;br/&gt;produce it from the Program, in the form of source code under the&lt;br/&gt;terms of section 4, provided that you also meet all of these conditions:&lt;br/&gt;&lt;br/&gt;    a) The work must carry prominent notices stating that you modified&lt;br/&gt;    it, and giving a relevant date.&lt;br/&gt;&lt;br/&gt;    b) The work must carry prominent notices stating that it is&lt;br/&gt;    released under this License and any conditions added under section&lt;br/&gt;    7.  This requirement modifies the requirement in section 4 to&lt;br/&gt;    &amp;#34;keep intact all notices&amp;#34;.&lt;br/&gt;&lt;br/&gt;    c) You must license the entire work, as a whole, under this&lt;br/&gt;    License to anyone who comes into possession of a copy.  This&lt;br/&gt;    License will therefore apply, along with any applicable section 7&lt;br/&gt;    additional terms, to the whole of the work, and all its parts,&lt;br/&gt;    regardless of how they are packaged.  This License gives no&lt;br/&gt;    permission to license the work in any other way, but it does not&lt;br/&gt;    invalidate such permission if you have separately received it.&lt;br/&gt;&lt;br/&gt;    d) If the work has interactive user interfaces, each must display&lt;br/&gt;    Appropriate Legal Notices; however, if the Program has interactive&lt;br/&gt;    interfaces that do not display Appropriate Legal Notices, your&lt;br/&gt;    work need not make them do so.&lt;br/&gt;&lt;br/&gt;  A compilation of a covered work with other separate and independent&lt;br/&gt;works, which are not by their nature extensions of the covered work,&lt;br/&gt;and which are not combined with it such as to form a larger program,&lt;br/&gt;in or on a volume of a storage or distribution medium, is called an&lt;br/&gt;&amp;#34;aggregate&amp;#34; if the compilation and its resulting copyright are not&lt;br/&gt;used to limit the access or legal rights of the compilation&amp;#39;s users&lt;br/&gt;beyond what the individual works permit.  Inclusion of a covered work&lt;br/&gt;in an aggregate does not cause this License to apply to the other&lt;br/&gt;parts of the aggregate.&lt;br/&gt;&lt;br/&gt;  6. Conveying Non-Source Forms.&lt;br/&gt;&lt;br/&gt;  You may convey a covered work in object code form under the terms&lt;br/&gt;of sections 4 and 5, provided that you also convey the&lt;br/&gt;machine-readable Corresponding Source under the terms of this License,&lt;br/&gt;in one of these ways:&lt;br/&gt;&lt;br/&gt;    a) Convey the object code in, or embodied in, a physical product&lt;br/&gt;    (including a physical distribution medium), accompanied by the&lt;br/&gt;    Corresponding Source fixed on a durable physical medium&lt;br/&gt;    customarily used for software interchange.&lt;br/&gt;&lt;br/&gt;    b) Convey the object code in, or embodied in, a physical product&lt;br/&gt;    (including a physical distribution medium), accompanied by a&lt;br/&gt;    written offer, valid for at least three years and valid for as&lt;br/&gt;    long as you offer spare parts or customer support for that product&lt;br/&gt;    model, to give anyone who possesses the object code either (1) a&lt;br/&gt;    copy of the Corresponding Source for all the software in the&lt;br/&gt;    product that is covered by this License, on a durable physical&lt;br/&gt;    medium customarily used for software interchange, for a price no&lt;br/&gt;    more than your reasonable cost of physically performing this&lt;br/&gt;    conveying of source, or (2) access to copy the&lt;br/&gt;    Corresponding Source from a network server at no charge.&lt;br/&gt;&lt;br/&gt;    c) Convey individual copies of the object code with a copy of the&lt;br/&gt;    written offer to provide the Corresponding Source.  This&lt;br/&gt;    alternative is allowed only occasionally and noncommercially, and&lt;br/&gt;    only if you received the object code with such an offer, in accord&lt;br/&gt;    with subsection 6b.&lt;br/&gt;&lt;br/&gt;    d) Convey the object code by offering access from a designated&lt;br/&gt;    place (gratis or for a charge), and offer equivalent access to the&lt;br/&gt;    Corresponding Source in the same way through the same place at no&lt;br/&gt;    further charge.  You need not require recipients to copy the&lt;br/&gt;    Corresponding Source along with the object code.  If the place to&lt;br/&gt;    copy the object code is a network server, the Corresponding Source&lt;br/&gt;    may be on a different server (operated by you or a third party)&lt;br/&gt;    that supports equivalent copying facilities, provided you maintain&lt;br/&gt;    clear directions next to the object code saying where to find the&lt;br/&gt;    Corresponding Source.  Regardless of what server hosts the&lt;br/&gt;    Corresponding Source, you remain obligated to ensure that it is&lt;br/&gt;    available for as long as needed to satisfy these requirements.&lt;br/&gt;&lt;br/&gt;    e) Convey the object code using peer-to-peer transmission, provided&lt;br/&gt;    you inform other peers where the object code and Corresponding&lt;br/&gt;    Source of the work are being offered to the general public at no&lt;br/&gt;    charge under subsection 6d.&lt;br/&gt;&lt;br/&gt;  A separable portion of the object code, whose source code is excluded&lt;br/&gt;from the Corresponding Source as a System Library, need not be&lt;br/&gt;included in conveying the object code work.&lt;br/&gt;&lt;br/&gt;  A &amp;#34;User Product&amp;#34; is either (1) a &amp;#34;consumer product&amp;#34;, which means any&lt;br/&gt;tangible personal property which is normally used for personal, family,&lt;br/&gt;or household purposes, or (2) anything designed or sold for incorporation&lt;br/&gt;into a dwelling.  In determining whether a product is a consumer product,&lt;br/&gt;doubtful cases shall be resolved in favor of coverage.  For a particular&lt;br/&gt;product received by a particular user, &amp;#34;normally used&amp;#34; refers to a&lt;br/&gt;typical or common use of that class of product, regardless of the status&lt;br/&gt;of the particular user or of the way in which the particular user&lt;br/&gt;actually uses, or expects or is expected to use, the product.  A product&lt;br/&gt;is a consumer product regardless of whether the product has substantial&lt;br/&gt;commercial, industrial or non-consumer uses, unless such uses represent&lt;br/&gt;the only significant mode of use of the product.&lt;br/&gt;&lt;br/&gt;  &amp;#34;Installation Information&amp;#34; for a User Product means any methods,&lt;br/&gt;procedures, authorization keys, or other information required to install&lt;br/&gt;and execute modified versions of a covered work in that User Product from&lt;br/&gt;a modified version of its Corresponding Source.  The information must&lt;br/&gt;suffice to ensure that the continued functioning of the modified object&lt;br/&gt;code is in no case prevented or interfered with solely because&lt;br/&gt;modification has been made.&lt;br/&gt;&lt;br/&gt;  If you convey an object code work under this section in, or with, or&lt;br/&gt;specifically for use in, a User Product, and the conveying occurs as&lt;br/&gt;part of a transaction in which the right of possession and use of the&lt;br/&gt;User Product is transferred to the recipient in perpetuity or for a&lt;br/&gt;fixed term (regardless of how the transaction is characterized), the&lt;br/&gt;Corresponding Source conveyed under this section must be accompanied&lt;br/&gt;by the Installation Information.  But this requirement does not apply&lt;br/&gt;if neither you nor any third party retains the ability to install&lt;br/&gt;modified object code on the User Product (for example, the work has&lt;br/&gt;been installed in ROM).&lt;br/&gt;&lt;br/&gt;  The requirement to provide Installation Information does not include a&lt;br/&gt;requirement to continue to provide support service, warranty, or updates&lt;br/&gt;for a work that has been modified or installed by the recipient, or for&lt;br/&gt;the User Product in which it has been modified or installed.  Access to a&lt;br/&gt;network may be denied when the modification itself materially and&lt;br/&gt;adversely affects the operation of the network or violates the rules and&lt;br/&gt;protocols for communication across the network.&lt;br/&gt;&lt;br/&gt;  Corresponding Source conveyed, and Installation Information provided,&lt;br/&gt;in accord with this section must be in a format that is publicly&lt;br/&gt;documented (and with an implementation available to the public in&lt;br/&gt;source code form), and must require no special password or key for&lt;br/&gt;unpacking, reading or copying.&lt;br/&gt;&lt;br/&gt;  7. Additional Terms.&lt;br/&gt;&lt;br/&gt;  &amp;#34;Additional permissions&amp;#34; are terms that supplement the terms of this&lt;br/&gt;License by making exceptions from one or more of its conditions.&lt;br/&gt;Additional permissions that are applicable to the entire Program shall&lt;br/&gt;be treated as though they were included in this License, to the extent&lt;br/&gt;that they are valid under applicable law.  If additional permissions&lt;br/&gt;apply only to part of the Program, that part may be used separately&lt;br/&gt;under those permissions, but the entire Program remains governed by&lt;br/&gt;this License without regard to the additional permissions.&lt;br/&gt;&lt;br/&gt;  When you convey a copy of a covered work, you may at your option&lt;br/&gt;remove any additional permissions from that copy, or from any part of&lt;br/&gt;it.  (Additional permissions may be written to require their own&lt;br/&gt;removal in certain cases when you modify the work.)  You may place&lt;br/&gt;additional permissions on material, added by you to a covered work,&lt;br/&gt;for which you have or can give appropriate copyright permission.&lt;br/&gt;&lt;br/&gt;  Notwithstanding any other provision of this License, for material you&lt;br/&gt;add to a covered work, you may (if authorized by the copyright holders of&lt;br/&gt;that material) supplement the terms of this License with terms:&lt;br/&gt;&lt;br/&gt;    a) Disclaiming warranty or limiting liability differently from the&lt;br/&gt;    terms of sections 15 and 16 of this License; or&lt;br/&gt;&lt;br/&gt;    b) Requiring preservation of specified reasonable legal notices or&lt;br/&gt;    author attributions in that material or in the Appropriate Legal&lt;br/&gt;    Notices displayed by works containing it; or&lt;br/&gt;&lt;br/&gt;    c) Prohibiting misrepresentation of the origin of that material, or&lt;br/&gt;    requiring that modified versions of such material be marked in&lt;br/&gt;    reasonable ways as different from the original version; or&lt;br/&gt;&lt;br/&gt;    d) Limiting the use for publicity purposes of names of licensors or&lt;br/&gt;    authors of the material; or&lt;br/&gt;&lt;br/&gt;    e) Declining to grant rights under trademark law for use of some&lt;br/&gt;    trade names, trademarks, or service marks; or&lt;br/&gt;&lt;br/&gt;    f) Requiring indemnification of licensors and authors of that&lt;br/&gt;    material by anyone who conveys the material (or modified versions of&lt;br/&gt;    it) with contractual assumptions of liability to the recipient, for&lt;br/&gt;    any liability that these contractual assumptions directly impose on&lt;br/&gt;    those licensors and authors.&lt;br/&gt;&lt;br/&gt;  All other non-permissive additional terms are considered &amp;#34;further&lt;br/&gt;restrictions&amp;#34; within the meaning of section 10.  If the Program as you&lt;br/&gt;received it, or any part of it, contains a notice stating that it is&lt;br/&gt;governed by this License along with a term that is a further&lt;br/&gt;restriction, you may remove that term.  If a license document contains&lt;br/&gt;a further restriction but permits relicensing or conveying under this&lt;br/&gt;License, you may add to a covered work material governed by the terms&lt;br/&gt;of that license document, provided that the further restriction does&lt;br/&gt;not survive such relicensing or conveying.&lt;br/&gt;&lt;br/&gt;  If you add terms to a covered work in accord with this section, you&lt;br/&gt;must place, in the relevant source files, a statement of the&lt;br/&gt;additional terms that apply to those files, or a notice indicating&lt;br/&gt;where to find the applicable terms.&lt;br/&gt;&lt;br/&gt;  Additional terms, permissive or non-permissive, may be stated in the&lt;br/&gt;form of a separately written license, or stated as exceptions;&lt;br/&gt;the above requirements apply either way.&lt;br/&gt;&lt;br/&gt;  8. Termination.&lt;br/&gt;&lt;br/&gt;  You may not propagate or modify a covered work except as expressly&lt;br/&gt;provided under this License.  Any attempt otherwise to propagate or&lt;br/&gt;modify it is void, and will automatically terminate your rights under&lt;br/&gt;this License (including any patent licenses granted under the third&lt;br/&gt;paragraph of section 11).&lt;br/&gt;&lt;br/&gt;  However, if you cease all violation of this License, then your&lt;br/&gt;license from a particular copyright holder is reinstated (a)&lt;br/&gt;provisionally, unless and until the copyright holder explicitly and&lt;br/&gt;finally terminates your license, and (b) permanently, if the copyright&lt;br/&gt;holder fails to notify you of the violation by some reasonable means&lt;br/&gt;prior to 60 days after the cessation.&lt;br/&gt;&lt;br/&gt;  Moreover, your license from a particular copyright holder is&lt;br/&gt;reinstated permanently if the copyright holder notifies you of the&lt;br/&gt;violation by some reasonable means, this is the first time you have&lt;br/&gt;received notice of violation of this License (for any work) from that&lt;br/&gt;copyright holder, and you cure the violation prior to 30 days after&lt;br/&gt;your receipt of the notice.&lt;br/&gt;&lt;br/&gt;  Termination of your rights under this section does not terminate the&lt;br/&gt;licenses of parties who have received copies or rights from you under&lt;br/&gt;this License.  If your rights have been terminated and not permanently&lt;br/&gt;reinstated, you do not qualify to receive new licenses for the same&lt;br/&gt;material under section 10.&lt;br/&gt;&lt;br/&gt;  9. Acceptance Not Required for Having Copies.&lt;br/&gt;&lt;br/&gt;  You are not required to accept this License in order to receive or&lt;br/&gt;run a copy of the Program.  Ancillary propagation of a covered work&lt;br/&gt;occurring solely as a consequence of using peer-to-peer transmission&lt;br/&gt;to receive a copy likewise does not require acceptance.  However,&lt;br/&gt;nothing other than this License grants you permission to propagate or&lt;br/&gt;modify any covered work.  These actions infringe copyright if you do&lt;br/&gt;not accept this License.  Therefore, by modifying or propagating a&lt;br/&gt;covered work, you indicate your acceptance of this License to do so.&lt;br/&gt;&lt;br/&gt;  10. Automatic Licensing of Downstream Recipients.&lt;br/&gt;&lt;br/&gt;  Each time you convey a covered work, the recipient automatically&lt;br/&gt;receives a license from the original licensors, to run, modify and&lt;br/&gt;propagate that work, subject to this License.  You are not responsible&lt;br/&gt;for enforcing compliance by third parties with this License.&lt;br/&gt;&lt;br/&gt;  An &amp;#34;entity transaction&amp;#34; is a transaction transferring control of an&lt;br/&gt;organization, or substantially all assets of one, or subdividing an&lt;br/&gt;organization, or merging organizations.  If propagation of a covered&lt;br/&gt;work results from an entity transaction, each party to that&lt;br/&gt;transaction who receives a copy of the work also receives whatever&lt;br/&gt;licenses to the work the party&amp;#39;s predecessor in interest had or could&lt;br/&gt;give under the previous paragraph, plus a right to possession of the&lt;br/&gt;Corresponding Source of the work from the predecessor in interest, if&lt;br/&gt;the predecessor has it or can get it with reasonable efforts.&lt;br/&gt;&lt;br/&gt;  You may not impose any further restrictions on the exercise of the&lt;br/&gt;rights granted or affirmed under this License.  For example, you may&lt;br/&gt;not impose a license fee, royalty, or other charge for exercise of&lt;br/&gt;rights granted under this License, and you may not initiate litigation&lt;br/&gt;(including a cross-claim or counterclaim in a lawsuit) alleging that&lt;br/&gt;any patent claim is infringed by making, using, selling, offering for&lt;br/&gt;sale, or importing the Program or any portion of it.&lt;br/&gt;&lt;br/&gt;  11. Patents.&lt;br/&gt;&lt;br/&gt;  A &amp;#34;contributor&amp;#34; is a copyright holder who authorizes use under this&lt;br/&gt;License of the Program or a work on which the Program is based.  The&lt;br/&gt;work thus licensed is called the contributor&amp;#39;s &amp;#34;contributor version&amp;#34;.&lt;br/&gt;&lt;br/&gt;  A contributor&amp;#39;s &amp;#34;essential patent claims&amp;#34; are all patent claims&lt;br/&gt;owned or controlled by the contributor, whether already acquired or&lt;br/&gt;hereafter acquired, that would be infringed by some manner, permitted&lt;br/&gt;by this License, of making, using, or selling its contributor version,&lt;br/&gt;but do not include claims that would be infringed only as a&lt;br/&gt;consequence of further modification of the contributor version.  For&lt;br/&gt;purposes of this definition, &amp;#34;control&amp;#34; includes the right to grant&lt;br/&gt;patent sublicenses in a manner consistent with the requirements of&lt;br/&gt;this License.&lt;br/&gt;&lt;br/&gt;  Each contributor grants you a non-exclusive, worldwide, royalty-free&lt;br/&gt;patent license under the contributor&amp;#39;s essential patent claims, to&lt;br/&gt;make, use, sell, offer for sale, import and otherwise run, modify and&lt;br/&gt;propagate the contents of its contributor version.&lt;br/&gt;&lt;br/&gt;  In the following three paragraphs, a &amp;#34;patent license&amp;#34; is any express&lt;br/&gt;agreement or commitment, however denominated, not to enforce a patent&lt;br/&gt;(such as an express permission to practice a patent or covenant not to&lt;br/&gt;sue for patent infringement).  To &amp;#34;grant&amp;#34; such a patent license to a&lt;br/&gt;party means to make such an agreement or commitment not to enforce a&lt;br/&gt;patent against the party.&lt;br/&gt;&lt;br/&gt;  If you convey a covered work, knowingly relying on a patent license,&lt;br/&gt;and the Corresponding Source of the work is not available for anyone&lt;br/&gt;to copy, free of charge and under the terms of this License, through a&lt;br/&gt;publicly available network server or other readily accessible means,&lt;br/&gt;then you must either (1) cause the Corresponding Source to be so&lt;br/&gt;available, or (2) arrange to deprive yourself of the benefit of the&lt;br/&gt;patent license for this particular work, or (3) arrange, in a manner&lt;br/&gt;consistent with the requirements of this License, to extend the patent&lt;br/&gt;license to downstream recipients.  &amp;#34;Knowingly relying&amp;#34; means you have&lt;br/&gt;actual knowledge that, but for the patent license, your conveying the&lt;br/&gt;covered work in a country, or your recipient&amp;#39;s use of the covered work&lt;br/&gt;in a country, would infringe one or more identifiable patents in that&lt;br/&gt;country that you have reason to believe are valid.&lt;br/&gt;&lt;br/&gt;  If, pursuant to or in connection with a single transaction or&lt;br/&gt;arrangement, you convey, or propagate by procuring conveyance of, a&lt;br/&gt;covered work, and grant a patent license to some of the parties&lt;br/&gt;receiving the covered work authorizing them to use, propagate, modify&lt;br/&gt;or convey a specific copy of the covered work, then the patent license&lt;br/&gt;you grant is automatically extended to all recipients of the covered&lt;br/&gt;work and works based on it.&lt;br/&gt;&lt;br/&gt;  A patent license is &amp;#34;discriminatory&amp;#34; if it does not include within&lt;br/&gt;the scope of its coverage, prohibits the exercise of, or is&lt;br/&gt;conditioned on the non-exercise of one or more of the rights that are&lt;br/&gt;specifically granted under this License.  You may not convey a covered&lt;br/&gt;work if you are a party to an arrangement with a third party that is&lt;br/&gt;in the business of distributing software, under which you make payment&lt;br/&gt;to the third party based on the extent of your activity of conveying&lt;br/&gt;the work, and under which the third party grants, to any of the&lt;br/&gt;parties who would receive the covered work from you, a discriminatory&lt;br/&gt;patent license (a) in connection with copies of the covered work&lt;br/&gt;conveyed by you (or copies made from those copies), or (b) primarily&lt;br/&gt;for and in connection with specific products or compilations that&lt;br/&gt;contain the covered work, unless you entered into that arrangement,&lt;br/&gt;or that patent license was granted, prior to 28 March 2007.&lt;br/&gt;&lt;br/&gt;  Nothing in this License shall be construed as excluding or limiting&lt;br/&gt;any implied license or other defenses to infringement that may&lt;br/&gt;otherwise be available to you under applicable patent law.&lt;br/&gt;&lt;br/&gt;  12. No Surrender of Others&amp;#39; Freedom.&lt;br/&gt;&lt;br/&gt;  If conditions are imposed on you (whether by court order, agreement or&lt;br/&gt;otherwise) that contradict the conditions of this License, they do not&lt;br/&gt;excuse you from the conditions of this License.  If you cannot convey a&lt;br/&gt;covered work so as to satisfy simultaneously your obligations under this&lt;br/&gt;License and any other pertinent obligations, then as a consequence you may&lt;br/&gt;not convey it at all.  For example, if you agree to terms that obligate you&lt;br/&gt;to collect a royalty for further conveying from those to whom you convey&lt;br/&gt;the Program, the only way you could satisfy both those terms and this&lt;br/&gt;License would be to refrain entirely from conveying the Program.&lt;br/&gt;&lt;br/&gt;  13. Use with the GNU Affero General Public License.&lt;br/&gt;&lt;br/&gt;  Notwithstanding any other provision of this License, you have&lt;br/&gt;permission to link or combine any covered work with a work licensed&lt;br/&gt;under version 3 of the GNU Affero General Public License into a single&lt;br/&gt;combined work, and to convey the resulting work.  The terms of this&lt;br/&gt;License will continue to apply to the part which is the covered work,&lt;br/&gt;but the special requirements of the GNU Affero General Public License,&lt;br/&gt;section 13, concerning interaction through a network will apply to the&lt;br/&gt;combination as such.&lt;br/&gt;&lt;br/&gt;  14. Revised Versions of this License.&lt;br/&gt;&lt;br/&gt;  The Free Software Foundation may publish revised and/or new versions of&lt;br/&gt;the GNU General Public License from time to time.  Such new versions will&lt;br/&gt;be similar in spirit to the present version, but may differ in detail to&lt;br/&gt;address new problems or concerns.&lt;br/&gt;&lt;br/&gt;  Each version is given a distinguishing version number.  If the&lt;br/&gt;Program specifies that a certain numbered version of the GNU General&lt;br/&gt;Public License &amp;#34;or any later version&amp;#34; applies to it, you have the&lt;br/&gt;option of following the terms and conditions either of that numbered&lt;br/&gt;version or of any later version published by the Free Software&lt;br/&gt;Foundation.  If the Program does not specify a version number of the&lt;br/&gt;GNU General Public License, you may choose any version ever published&lt;br/&gt;by the Free Software Foundation.&lt;br/&gt;&lt;br/&gt;  If the Program specifies that a proxy can decide which future&lt;br/&gt;versions of the GNU General Public License can be used, that proxy&amp;#39;s&lt;br/&gt;public statement of acceptance of a version permanently authorizes you&lt;br/&gt;to choose that version for the Program.&lt;br/&gt;&lt;br/&gt;  Later license versions may give you additional or different&lt;br/&gt;permissions.  However, no additional obligations are imposed on any&lt;br/&gt;author or copyright holder as a result of your choosing to follow a&lt;br/&gt;later version.&lt;br/&gt;&lt;br/&gt;  15. Disclaimer of Warranty.&lt;br/&gt;&lt;br/&gt;  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY&lt;br/&gt;APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT&lt;br/&gt;HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM &amp;#34;AS IS&amp;#34; WITHOUT WARRANTY&lt;br/&gt;OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,&lt;br/&gt;THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR&lt;br/&gt;PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM&lt;br/&gt;IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF&lt;br/&gt;ALL NECESSARY SERVICING, REPAIR OR CORRECTION.&lt;br/&gt;&lt;br/&gt;  16. Limitation of Liability.&lt;br/&gt;&lt;br/&gt;  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING&lt;br/&gt;WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS&lt;br/&gt;THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY&lt;br/&gt;GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE&lt;br/&gt;USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF&lt;br/&gt;DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD&lt;br/&gt;PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),&lt;br/&gt;EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF&lt;br/&gt;SUCH DAMAGES.&lt;br/&gt;&lt;br/&gt;  17. Interpretation of Sections 15 and 16.&lt;br/&gt;&lt;br/&gt;  If the disclaimer of warranty and limitation of liability provided&lt;br/&gt;above cannot be given local legal effect according to their terms,&lt;br/&gt;reviewing courts shall apply local law that most closely approximates&lt;br/&gt;an absolute waiver of all civil liability in connection with the&lt;br/&gt;Program, unless a warranty or assumption of liability accompanies a&lt;br/&gt;copy of the Program in return for a fee.&lt;br/&gt;&lt;br/&gt;                     END OF TERMS AND CONDITIONS&lt;br/&gt;&lt;br/&gt;            How to Apply These Terms to Your New Programs&lt;br/&gt;&lt;br/&gt;  If you develop a new program, and you want it to be of the greatest&lt;br/&gt;possible use to the public, the best way to achieve this is to make it&lt;br/&gt;free software which everyone can redistribute and change under these terms.&lt;br/&gt;&lt;br/&gt;  To do so, attach the following notices to the program.  It is safest&lt;br/&gt;to attach them to the start of each source file to most effectively&lt;br/&gt;state the exclusion of warranty; and each file should have at least&lt;br/&gt;the &amp;#34;copyright&amp;#34; line and a pointer to where the full notice is found.&lt;br/&gt;&lt;br/&gt;    &amp;lt;one line to give the program&amp;#39;s name and a brief idea of what it does.&amp;gt;&lt;br/&gt;    Copyright (C) &amp;lt;year&amp;gt;  &amp;lt;name of author&amp;gt;&lt;br/&gt;&lt;br/&gt;    This program is free software: you can redistribute it and/or modify&lt;br/&gt;    it under the terms of the GNU General Public License as published by&lt;br/&gt;    the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;    (at your option) any later version.&lt;br/&gt;&lt;br/&gt;    This program is distributed in the hope that it will be useful,&lt;br/&gt;    but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br/&gt;    GNU General Public License for more details.&lt;br/&gt;&lt;br/&gt;    You should have received a copy of the GNU General Public License&lt;br/&gt;    along with this program.  If not, see &amp;lt;&lt;a href=&#34;https://www.gnu.org/licenses/gpl-3.0.html&amp;gt&#34;&gt;https://www.gnu.org/licenses/gpl-3.0.html&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;Also add information on how to contact you by electronic and paper mail.&lt;br/&gt;&lt;br/&gt;  If the program does terminal interaction, make it output a short&lt;br/&gt;notice like this when it starts in an interactive mode:&lt;br/&gt;&lt;br/&gt;    &amp;lt;program&amp;gt;  Copyright (C) &amp;lt;year&amp;gt;  &amp;lt;name of author&amp;gt;&lt;br/&gt;    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w&amp;#39;.&lt;br/&gt;    This is free software, and you are welcome to redistribute it&lt;br/&gt;    under certain conditions; type `show c&amp;#39; for details.&lt;br/&gt;&lt;br/&gt;The hypothetical commands `show w&amp;#39; and `show c&amp;#39; should show the appropriate&lt;br/&gt;parts of the General Public License.  Of course, your program&amp;#39;s commands&lt;br/&gt;might be different; for a GUI interface, you would use an &amp;#34;about box&amp;#34;.&lt;br/&gt;&lt;br/&gt;  You should also get your employer (if you work as a programmer) or school,&lt;br/&gt;if any, to sign a &amp;#34;copyright disclaimer&amp;#34; for the program, if necessary.&lt;br/&gt;For more information on this, and how to apply and follow the GNU GPL, see&lt;br/&gt;&amp;lt;&lt;a href=&#34;https://www.gnu.org/licenses/&amp;gt&#34;&gt;https://www.gnu.org/licenses/&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;  The GNU General Public License does not permit incorporating your program&lt;br/&gt;into proprietary programs.  If your program is a subroutine library, you&lt;br/&gt;may consider it more useful to permit linking proprietary applications with&lt;br/&gt;the library.  If this is what you want to do, use the GNU Lesser General&lt;br/&gt;Public License instead of this License.  But first, please read&lt;br/&gt;&amp;lt;&lt;a href=&#34;https://www.gnu.org/licenses/why-not-lgpl.html&amp;gt&#34;&gt;https://www.gnu.org/licenses/why-not-lgpl.html&amp;gt&lt;/a&gt;;.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs2zays8dj370rld4uslha5cc4y8tgkkjsnh6cnr7h3kz99pup60vqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77h9he9u</id>
    
      <title type="html"># Show a Set &amp;gt; `n34 sets show` command **Usage:** ``` Show a ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs2zays8dj370rld4uslha5cc4y8tgkkjsnh6cnr7h3kz99pup60vqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77h9he9u" />
    <content type="html">
      # Show a Set&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 sets show` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Show a single set or all the stored sets&lt;br/&gt;&lt;br/&gt;Usage: n34 sets show [NAME]&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  [NAME]  Name of the set to display. If not provided, lists all available sets&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;Prints all set names to standard output, each followed by its associated repos&lt;br/&gt;and relays. To view the details for a specific set, provide its name as an&lt;br/&gt;argument.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsfuwp6qrgrret94xm082kj60ju9jatq22e799avuqncz08xp8mpmczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77ka3the</id>
    
      <title type="html"># GRASP-05 Archive Status: DRAFT - expect breaking changes ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsfuwp6qrgrret94xm082kj60ju9jatq22e799avuqncz08xp8mpmczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77ka3the" />
    <content type="html">
      # GRASP-05 Archive&lt;br/&gt;&lt;br/&gt;Status: DRAFT - expect breaking changes&lt;br/&gt;&lt;br/&gt;Purpose: to backup or mirror an existing repository.&lt;br/&gt;&lt;br/&gt;MAY accept [git repository announcements](&lt;a href=&#34;https://nips.nostr.com/34#repository-announcements&#34;&gt;https://nips.nostr.com/34#repository-announcements&lt;/a&gt;) that do not list the service in both `clone` and `relays` tags.&lt;br/&gt;&lt;br/&gt;MUST implement GRASP-02.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsfh3szne5kf54k6adu0ypp7h6lmvflhdwkn3ltcnz6m6kx7qah30gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77a3g0ax</id>
    
      <title type="html"># `get_file_hash` macro This project provides a Rust procedural ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsfh3szne5kf54k6adu0ypp7h6lmvflhdwkn3ltcnz6m6kx7qah30gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77a3g0ax" />
    <content type="html">
      # `get_file_hash` macro&lt;br/&gt;&lt;br/&gt;This project provides a Rust procedural macro, `get_file_hash!`, designed to compute the SHA-256 hash of a specified file at compile time. This hash is then embedded directly into your compiled executable. This feature is invaluable for:&lt;br/&gt;&lt;br/&gt;*   **Integrity Verification:** Ensuring the deployed code hasn&amp;#39;t been tampered with.&lt;br/&gt;*   **Versioning:** Embedding a unique identifier linked to the exact source code version.&lt;br/&gt;*   **Cache Busting:** Generating unique names for assets based on their content.&lt;br/&gt;&lt;br/&gt;## Project Structure&lt;br/&gt;&lt;br/&gt;*   `get_file_hash_core`: A foundational crate containing the `get_file_hash!` macro definition.&lt;br/&gt;*   `get_file_hash`: The main library crate that re-exports the macro.&lt;br/&gt;*   `src/bin/get_file_hash.rs`: An example executable demonstrating the macro&amp;#39;s usage by hashing its own source file and updating this `README.md`.&lt;br/&gt;*   `build.rs`: A build script that also utilizes the `get_file_hash!` macro to hash `Cargo.toml` during the build process.&lt;br/&gt;&lt;br/&gt;## Usage of `get_file_hash!` Macro&lt;br/&gt;&lt;br/&gt;To use the `get_file_hash!` macro, ensure you have `get_file_hash` (or `get_file_hash_core` for direct usage) as a dependency in your `Cargo.toml`.&lt;br/&gt;&lt;br/&gt;### Example&lt;br/&gt;&lt;br/&gt;```rust&lt;br/&gt;use get_file_hash::get_file_hash;&lt;br/&gt;use get_file_hash::CARGO_TOML_HASH;&lt;br/&gt;use sha2::{Digest, Sha256};&lt;br/&gt;&lt;br/&gt;fn main() {&lt;br/&gt;    // The macro resolves the path relative to CARGO_MANIFEST_DIR&lt;br/&gt;    let readme_hash = get_file_hash!(&amp;#34;src/bin/readme.rs&amp;#34;);&lt;br/&gt;    let lib_hash = get_file_hash!(&amp;#34;src/lib.rs&amp;#34;);&lt;br/&gt;    println!(&amp;#34;The SHA-256 hash of src/lib.rs is: {}&amp;#34;, lib_hash);&lt;br/&gt;    println!(&amp;#34;The SHA-256 hash of src/bin/readme.rs is: {}&amp;#34;, readme_hash);&lt;br/&gt;    println!(&amp;#34;The SHA-256 hash of Cargo.toml is: {}&amp;#34;, CARGO_TOML_HASH);&lt;br/&gt;}&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;## Release&lt;br/&gt;## [`README.md`](./README.md)&lt;br/&gt;&lt;br/&gt;```bash&lt;br/&gt;cargo run --bin readme &amp;gt; README.md&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;## [`src/bin/readme.rs`](src/bin/readme.rs)&lt;br/&gt;&lt;br/&gt;*   **Target File:** `src/bin/readme.rs`&lt;br/&gt;## NIP-34 Integration: Git Repository Events on Nostr&lt;br/&gt;&lt;br/&gt;This library provides a set of powerful macros and functions for integrating Git repository events with the Nostr protocol, adhering to the [NIP-34: Git Repositories on Nostr](&lt;a href=&#34;https://github.com/nostr-protocol/nips/blob/master/34.md&#34;&gt;https://github.com/nostr-protocol/nips/blob/master/34.md&lt;/a&gt;) specification.&lt;br/&gt;&lt;br/&gt;These tools allow you to publish various Git-related events to Nostr relays, enabling decentralized tracking and collaboration for your code repositories.&lt;br/&gt;&lt;br/&gt;### Available NIP-34 Macros&lt;br/&gt;&lt;br/&gt;Each macro provides a convenient way to publish specific NIP-34 event kinds:&lt;br/&gt;&lt;br/&gt;*   [`repository_announcement!`](#repository_announcement)&lt;br/&gt;    *   Publishes a `Repository Announcement` event (Kind 30617) to announce a new or updated Git repository.&lt;br/&gt;*   [`publish_patch!`](#publish_patch)&lt;br/&gt;    *   Publishes a `Patch` event (Kind 1617) containing a Git patch (diff) for a specific commit.&lt;br/&gt;*   [`publish_pull_request!`](#publish_pull_request)&lt;br/&gt;    *   Publishes a `Pull Request` event (Kind 1618) to propose changes and facilitate code review.&lt;br/&gt;*   [`publish_pr_update!`](#publish_pr_update)&lt;br/&gt;    *   Publishes a `Pull Request Update` event (Kind 1619) to update an existing pull request.&lt;br/&gt;*   [`publish_repository_state!`](#publish_repository_state)&lt;br/&gt;    *   Publishes a `Repository State` event (Kind 1620) to announce the current state of a branch (e.g., its latest commit).&lt;br/&gt;*   [`publish_issue!`](#publish_issue)&lt;br/&gt;    *   Publishes an `Issue` event (Kind 1621) to report bugs, request features, or track tasks.&lt;br/&gt;&lt;br/&gt;### Running NIP-34 Examples&lt;br/&gt;&lt;br/&gt;To see these macros in action, navigate to the `examples/` directory and run each example individually with the `nostr` feature enabled:&lt;br/&gt;&lt;br/&gt;```bash&lt;br/&gt;cargo run --example repository_announcement --features nostr&lt;br/&gt;cargo run --example publish_patch --features nostr&lt;br/&gt;cargo run --example publish_pull_request --features nostr&lt;br/&gt;cargo run --example publish_pr_update --features nostr&lt;br/&gt;cargo run --example publish_repository_state --features nostr&lt;br/&gt;cargo run --example publish_issue --features nostr&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;*   **SHA-256 Hash:** 6c6325c5a4c14f44cbda6ca53179ab3d6666ce7c916365668c6dd1d79215db59&lt;br/&gt;*   **Status:** Integrity Verified..&lt;br/&gt;&lt;br/&gt;##&lt;br/&gt;&lt;br/&gt;## [`build.rs`](build.rs)&lt;br/&gt;&lt;br/&gt;*   **Target File:** `build.rs`&lt;br/&gt;*   **SHA-256 Hash:** 20c958c8cbb5c77cf5eb3763b6da149b61241d328df52d39b7aa97903305c889&lt;br/&gt;*   **Status:** Integrity Verified..&lt;br/&gt;&lt;br/&gt;##&lt;br/&gt;&lt;br/&gt;## [`Cargo.toml`](Cargo.toml)&lt;br/&gt;&lt;br/&gt;*   **Target File:** `Cargo.toml`&lt;br/&gt;*   **SHA-256 Hash:** e3f392bf23b5fb40902acd313a8c76d1943060b6805ea8615de62f9baf0c6513&lt;br/&gt;*   **Status:** Integrity Verified..&lt;br/&gt;&lt;br/&gt;##&lt;br/&gt;&lt;br/&gt;## [`src/lib.rs`](src/lib.rs)&lt;br/&gt;&lt;br/&gt;*   **Target File:** `src/lib.rs`&lt;br/&gt;*   **SHA-256 Hash:** 591593482a6c9aac8793aa1e488e613f52a4effb1ec3465fd9d6a54537f2b123&lt;br/&gt;*   **Status:** Integrity Verified..&lt;br/&gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsf43td3kthggcq0c2d3gvld5yww8wuwwh87wzd94t7w35k73wyxzgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77c0y3zf</id>
    
      <title type="html"># Changelog All notable changes to this project will be ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsf43td3kthggcq0c2d3gvld5yww8wuwwh87wzd94t7w35k73wyxzgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77c0y3zf" />
    <content type="html">
      # Changelog&lt;br/&gt;&lt;br/&gt;All notable changes to this project will be documented in this file.&lt;br/&gt;&lt;br/&gt;The format is based on [Keep a Changelog](&lt;a href=&#34;https://keepachangelog.com/en/1.0.0/&#34;&gt;https://keepachangelog.com/en/1.0.0/&lt;/a&gt;),&lt;br/&gt;and this project adheres to [Semantic Versioning](&lt;a href=&#34;https://semver.org/spec/v2.0.0.html&#34;&gt;https://semver.org/spec/v2.0.0.html&lt;/a&gt;).&lt;br/&gt;&lt;br/&gt;## [0.4.0] - 2025-08-08&lt;br/&gt;&lt;br/&gt;### Added&lt;br/&gt;&lt;br/&gt;- Support signing using NIP-46 bunker - by Awiteb&lt;br/&gt;- Keyring the secret key `n34 config keyring --enable` - by Awiteb&lt;br/&gt;- New flag to `patch apply and merge` to mention patches - by Awiteb&lt;br/&gt;- Sign using NIP-07 - by Awiteb&lt;br/&gt;&lt;br/&gt;### Dependencies&lt;br/&gt;&lt;br/&gt;- Add `keyring`, `nostr-connect`, `nostr-keyring` and `url` to the dependencies - by Awiteb&lt;br/&gt;- Remove `url` from `n34` dependencies - by Awiteb&lt;br/&gt;- Upgrade to `nostr@0.43.0` - by Awiteb&lt;br/&gt;&lt;br/&gt;### Documentation&lt;br/&gt;&lt;br/&gt;- N34 book - by Awiteb&lt;br/&gt;- Fix status command docs - by Awiteb&lt;br/&gt;&lt;br/&gt;### Refactor&lt;br/&gt;&lt;br/&gt;- Move the trait extensions to `traits.rs` - by Awiteb&lt;br/&gt;- Move `root` and `root-revision` to constants - by Awiteb&lt;br/&gt;&lt;br/&gt;## [0.3.0] - 2025-07-05&lt;br/&gt;&lt;br/&gt;### Added&lt;br/&gt;&lt;br/&gt;- New `patch send` command to send patches - by Awiteb&lt;br/&gt;- Add `alt` tag to the git issue - by Awiteb&lt;br/&gt;- Add `description` tag to the patch - by Awiteb&lt;br/&gt;- New `config pow` command to set the default PoW difficulty - by Awiteb&lt;br/&gt;- New `config relays` command to set the default fallbacks relays - by Awiteb&lt;br/&gt;- New `issue view` command to view an issue - by Awiteb&lt;br/&gt;- New `patch fetch` command to fetch patches - by Awiteb&lt;br/&gt;- New `issue {reopen,close,resolve}` commands to manage issue status - by Awiteb&lt;br/&gt;- New `patch` subcommands apply,close,draft,merge and reopen to manage the patch status - by Awiteb&lt;br/&gt;- View the repo maintainers as `npub` - by Awiteb&lt;br/&gt;- New `patch list` commands to list the repo patches - by Awiteb&lt;br/&gt;- New `issue list` commands to list the repo issues - by Awiteb&lt;br/&gt;- Improve exit codes and make them more specific - by Awiteb&lt;br/&gt;&lt;br/&gt;### Dependencies&lt;br/&gt;&lt;br/&gt;- Add `either@1.15.0` to the dependencies - by Awiteb&lt;br/&gt;- Update `nostr` to `0.42.2` - by Awiteb&lt;br/&gt;- Remove `bitcoin_hashes` and use `nostr::hashes` re-export - by Awiteb&lt;br/&gt;&lt;br/&gt;### Fixed&lt;br/&gt;&lt;br/&gt;- Not to return an error if `nostr-address` file does not exist - by Awiteb&lt;br/&gt;- Spelling in help content - by DanConwayDev&lt;br/&gt;- Fix a typo in `EmptySetRelays` error message - by Awiteb&lt;br/&gt;- Require a repo in `repo view` command - by Awiteb&lt;br/&gt;&lt;br/&gt;### Refactor&lt;br/&gt;&lt;br/&gt;- Store the config in `CliOptions` instead of its path - by Awiteb&lt;br/&gt;- Improve commands running and make the signer optional for some commands - by Awiteb&lt;br/&gt;&lt;br/&gt;### Removed&lt;br/&gt;&lt;br/&gt;- Remove the `--repo` option and make the repo an argument - by Awiteb&lt;br/&gt;- Remove the `--to` flag from `reply` command and make it an argument - by Awiteb&lt;br/&gt;- Remove `--euc` flag from `patch send` command and use the repo euc - by Awiteb&lt;br/&gt;&lt;br/&gt;## [0.2.0] - 2025-06-01&lt;br/&gt;&lt;br/&gt;### Added&lt;br/&gt;&lt;br/&gt;- Add `--force-id` flag to bypass case validation in `repo announce` - by Awiteb&lt;br/&gt;- Add `--address-file` flag to `repo announce` command - by Awiteb&lt;br/&gt;- Read the `nostr-address` file in `repo view` command - by Awiteb&lt;br/&gt;- Read the `nostr-address` file in `issue new` command - by Awiteb&lt;br/&gt;- Read the `nostr-address` file in `reply` command - by Awiteb&lt;br/&gt;- A `--quote-to` flag to quote the replied to content in the editor - by Awiteb&lt;br/&gt;- Enter repository as nip5 - by Awiteb&lt;br/&gt;- Make the relays list optional - by Awiteb&lt;br/&gt;- Events and naddrs can starts with `nostr:` - by Awiteb&lt;br/&gt;- Support relays and naddrs sets - by Awiteb&lt;br/&gt;&lt;br/&gt;### Dependencies&lt;br/&gt;&lt;br/&gt;- Add `chrono@0.4.41` to the dependencies - by Awiteb&lt;br/&gt;- Enable `nip05` feature of `nostr` crate - by Awiteb&lt;br/&gt;- Add `serde@1.0.219`, `dirs@6.0.0` and `toml@0.8.22` - by Awiteb&lt;br/&gt;&lt;br/&gt;### Fixed&lt;br/&gt;&lt;br/&gt;- Create a valid naddr string - by Awiteb&lt;br/&gt;&lt;br/&gt;### Refactor&lt;br/&gt;&lt;br/&gt;- Support more than one naddr instead of one - by Awiteb&lt;br/&gt;&lt;br/&gt;## [0.1.0] - 2025-05-21&lt;br/&gt;&lt;br/&gt;### Added&lt;br/&gt;&lt;br/&gt;- Setup the CLI and create `repo view` command - by Awiteb&lt;br/&gt;- Add `repo announce` command - by Awiteb&lt;br/&gt;- Support PoW - by Awiteb&lt;br/&gt;- Add `issue new` command - by Awiteb&lt;br/&gt;- New `reply` command - by Awiteb&lt;br/&gt;&lt;br/&gt;### Dependencies&lt;br/&gt;&lt;br/&gt;- Add nedded dependencies - by Awiteb&lt;br/&gt;- Add `easy_ext@1.0.2` to the dependencies - by Awiteb&lt;br/&gt;- Add `convert_case@0.8.0` to the dependencies - by Awiteb&lt;br/&gt;- Add `tempfile@3.19.1` to the dependencies - by Awiteb&lt;br/&gt;- Add `futures@0.3.31` to the dependencies - by Awiteb&lt;br/&gt;- Bump `nostr` and `nostr_sdk` to `0.42.0` - by Awiteb&lt;br/&gt;&lt;br/&gt;## [0.0.0] - 2025-05-01&lt;br/&gt;&lt;br/&gt;### Added&lt;br/&gt;&lt;br/&gt;- Initialize the project - by Awiteb&lt;br/&gt;&lt;br/&gt;[0.4.0]: &lt;a href=&#34;https://git.4rs.nl/awiteb/n34.git/tag/?h=v0.4.0&#34;&gt;https://git.4rs.nl/awiteb/n34.git/tag/?h=v0.4.0&lt;/a&gt;&lt;br/&gt;[0.3.0]: &lt;a href=&#34;https://git.4rs.nl/awiteb/n34.git/tag/?h=v0.3.0&#34;&gt;https://git.4rs.nl/awiteb/n34.git/tag/?h=v0.3.0&lt;/a&gt;&lt;br/&gt;[0.2.0]: &lt;a href=&#34;https://git.4rs.nl/awiteb/n34.git/tag/?h=v0.2.0&#34;&gt;https://git.4rs.nl/awiteb/n34.git/tag/?h=v0.2.0&lt;/a&gt;&lt;br/&gt;[0.1.0]: &lt;a href=&#34;https://git.4rs.nl/awiteb/n34.git/tag/?h=v0.1.0&#34;&gt;https://git.4rs.nl/awiteb/n34.git/tag/?h=v0.1.0&lt;/a&gt;&lt;br/&gt;[0.0.0]: &lt;a href=&#34;https://git.4rs.nl/awiteb/n34.git/tag/?h=v0.0.0&#34;&gt;https://git.4rs.nl/awiteb/n34.git/tag/?h=v0.0.0&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;!-- generated by git-cliff --&amp;gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsf563tm2nauvy2hrpk0762k6h3de6s89ym30m0378fy43gl9excgqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7735xg52</id>
    
      <title type="html">// n34 - A CLI to interact with NIP-34 and other stuff related to ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsf563tm2nauvy2hrpk0762k6h3de6s89ym30m0378fy43gl9excgqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7735xg52" />
    <content type="html">
      // n34 - A CLI to interact with NIP-34 and other stuff related to codes in nostr&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU General Public License as published by&lt;br/&gt;// the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/gpl-3.0.html&amp;gt&#34;&gt;https://gnu.org/licenses/gpl-3.0.html&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::{fs, io::Write};&lt;br/&gt;&lt;br/&gt;use clap::Args;&lt;br/&gt;use futures::future;&lt;br/&gt;use nostr::{event::EventBuilder, key::PublicKey, types::Url};&lt;br/&gt;&lt;br/&gt;use crate::{&lt;br/&gt;    cli::{CliOptions, CommandRunner, NOSTR_ADDRESS_FILE, traits::RelayOrSetVecExt},&lt;br/&gt;    error::N34Result,&lt;br/&gt;    nostr_utils::{NostrClient, traits::NewGitRepositoryAnnouncement, utils},&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;/// Header written to new `nostr-address` files. Contains two trailing newline&lt;br/&gt;/// for formatting.&lt;br/&gt;const NOSTR_ADDRESS_FILE_HEADER: &amp;amp;str = r##&amp;#34;# This file contains NIP-19 `naddr` entities for repositories that accept this&lt;br/&gt;# project&amp;#39;s issues and patches.&lt;br/&gt;#&lt;br/&gt;# The file acts as a **read-only reference** for retrieving repository relays&lt;br/&gt;# when embedded in an `naddr` and mentions those repositories when opening&lt;br/&gt;# patches or issues. Modifications here will not affect in the relays, as the&lt;br/&gt;# file is **explicitly untracked**. Its goal is to simplify contributions by&lt;br/&gt;# removing the need for manual address entry.&lt;br/&gt;#&lt;br/&gt;# Each entry must start with &amp;#34;naddr&amp;#34;. Embedded relays are **strongly recommended**&lt;br/&gt;# to assist client-side discovery.&lt;br/&gt;#&lt;br/&gt;# Empty lines are ignored. Lines starting with &amp;#34;#&amp;#34; are treated as comments.&lt;br/&gt;&lt;br/&gt;&amp;#34;##;&lt;br/&gt;&lt;br/&gt;/// Arguments for the `repo announce` command&lt;br/&gt;#[derive(Args, Debug)]&lt;br/&gt;pub struct AnnounceArgs {&lt;br/&gt;    /// Unique identifier for the repository in kebab-case.&lt;br/&gt;    #[arg(long = &amp;#34;id&amp;#34;)]&lt;br/&gt;    repo_id:      String,&lt;br/&gt;    /// A name for the repository.&lt;br/&gt;    #[arg(short, long)]&lt;br/&gt;    name:         Option&amp;lt;String&amp;gt;,&lt;br/&gt;    /// A description for the repository.&lt;br/&gt;    #[arg(short, long)]&lt;br/&gt;    description:  Option&amp;lt;String&amp;gt;,&lt;br/&gt;    /// Webpage URLs for the repository (if provided by the git server).&lt;br/&gt;    #[arg(short, long)]&lt;br/&gt;    web:          Vec&amp;lt;Url&amp;gt;,&lt;br/&gt;    /// URLs for cloning the repository.&lt;br/&gt;    #[arg(short, long)]&lt;br/&gt;    clone:        Vec&amp;lt;Url&amp;gt;,&lt;br/&gt;    /// Additional maintainers of the repository (besides yourself).&lt;br/&gt;    #[arg(short, long)]&lt;br/&gt;    maintainers:  Vec&amp;lt;PublicKey&amp;gt;,&lt;br/&gt;    /// Labels to categorize the repository. Can be specified multiple times.&lt;br/&gt;    #[arg(short, long)]&lt;br/&gt;    label:        Vec&amp;lt;String&amp;gt;,&lt;br/&gt;    /// Skip kebab-case validation for the repository ID&lt;br/&gt;    #[arg(long)]&lt;br/&gt;    force_id:     bool,&lt;br/&gt;    /// If set, creates a `nostr-address` file to enable automatic address&lt;br/&gt;    /// discovery by n34&lt;br/&gt;    #[arg(long)]&lt;br/&gt;    address_file: bool,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl CommandRunner for AnnounceArgs {&lt;br/&gt;    const NEED_RELAYS: bool = true;&lt;br/&gt;&lt;br/&gt;    async fn run(mut self, options: CliOptions) -&amp;gt; N34Result&amp;lt;()&amp;gt; {&lt;br/&gt;        let relays = options.relays.clone().flat_relays(&amp;amp;options.config.sets)?;&lt;br/&gt;        let client = NostrClient::init(&amp;amp;options, &amp;amp;relays).await;&lt;br/&gt;        let user_pubk = client.pubkey().await?;&lt;br/&gt;        let relays_list = client.user_relays_list(user_pubk).await?;&lt;br/&gt;        client&lt;br/&gt;            .add_relays(&amp;amp;utils::add_read_relays(relays_list.as_ref()))&lt;br/&gt;            .await;&lt;br/&gt;&lt;br/&gt;        if !self.maintainers.contains(&amp;amp;user_pubk) {&lt;br/&gt;            self.maintainers.insert(0, user_pubk);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        let naddr = utils::repo_naddr(&amp;amp;self.repo_id, user_pubk, &amp;amp;relays)?;&lt;br/&gt;        let event = EventBuilder::new_git_repo(&lt;br/&gt;            self.repo_id,&lt;br/&gt;            self.name.map(utils::str_trim),&lt;br/&gt;            self.description.map(utils::str_trim),&lt;br/&gt;            self.web,&lt;br/&gt;            self.clone,&lt;br/&gt;            relays.clone(),&lt;br/&gt;            self.maintainers.clone(),&lt;br/&gt;            self.label.into_iter().map(utils::str_trim).collect(),&lt;br/&gt;            self.force_id,&lt;br/&gt;        )?&lt;br/&gt;        .dedup_tags()&lt;br/&gt;        .pow(options.pow.unwrap_or_default())&lt;br/&gt;        .build(user_pubk);&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;        if self.address_file {&lt;br/&gt;            let address_path = std::env::current_dir()?.join(NOSTR_ADDRESS_FILE);&lt;br/&gt;            if !address_path.exists() {&lt;br/&gt;                tracing::info!(&lt;br/&gt;                    &amp;#34;Creating new address file: &amp;#39;{NOSTR_ADDRESS_FILE}&amp;#39; at path &amp;#39;{}&amp;#39; with default \&lt;br/&gt;                     header&amp;#34;,&lt;br/&gt;                    address_path.display()&lt;br/&gt;                );&lt;br/&gt;                fs::write(&amp;amp;address_path, NOSTR_ADDRESS_FILE_HEADER)?;&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            let mut file = fs::OpenOptions::new().append(true).open(&amp;amp;address_path)?;&lt;br/&gt;&lt;br/&gt;            tracing::info!(&amp;#34;Appending naddr &amp;#39;{naddr}&amp;#39; to address file: &amp;#39;{NOSTR_ADDRESS_FILE}&amp;#39;&amp;#34;);&lt;br/&gt;            file.write_all(format!(&amp;#34;{naddr}\n&amp;#34;).as_bytes())?;&lt;br/&gt;            tracing::info!(&amp;#34;Successfully wrote naddr to address file&amp;#34;);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        let write_relays = [&lt;br/&gt;            relays,&lt;br/&gt;            utils::add_write_relays(relays_list.as_ref()),&lt;br/&gt;            // Include read relays for each maintainer (if found)&lt;br/&gt;            future::join_all(&lt;br/&gt;                self.maintainers&lt;br/&gt;                    .iter()&lt;br/&gt;                    .map(|pkey| client.read_relays_from_user(*pkey)),&lt;br/&gt;            )&lt;br/&gt;            .await&lt;br/&gt;            .into_iter()&lt;br/&gt;            .flatten()&lt;br/&gt;            .collect(),&lt;br/&gt;        ]&lt;br/&gt;        .concat();&lt;br/&gt;        let nevent = utils::new_nevent(event.id.expect(&amp;#34;There is an id&amp;#34;), &amp;amp;write_relays)?;&lt;br/&gt;&lt;br/&gt;        client&lt;br/&gt;            .send_event_to(event, relays_list.as_ref(), &amp;amp;write_relays)&lt;br/&gt;            .await?;&lt;br/&gt;&lt;br/&gt;        println!(&amp;#34;Event: {nevent}&amp;#34;,);&lt;br/&gt;        println!(&amp;#34;Repo Address: {naddr}&amp;#34;,);&lt;br/&gt;&lt;br/&gt;        Ok(())&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsfvhjc2nlq74ss2svqcyx4kefa46ht0z07cam8v72z75hau5q7teszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk772kap85</id>
    
      <title type="html"># Draft an Open Patch &amp;gt; `n34 patch draft` command **Usage:** ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsfvhjc2nlq74ss2svqcyx4kefa46ht0z07cam8v72z75hau5q7teszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk772kap85" />
    <content type="html">
      # Draft an Open Patch&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 patch draft` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Converts an open patch to draft state&lt;br/&gt;&lt;br/&gt;Usage: n34 patch draft [OPTIONS] &amp;lt;PATCH_ID&amp;gt;&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  &amp;lt;PATCH_ID&amp;gt;  The open patch id to draft it. Must be orignal root patch&lt;br/&gt;&lt;br/&gt;Options:&lt;br/&gt;      --repo &amp;lt;NADDR-NIP05-OR-SET&amp;gt;  Repository address in `naddr` format (`naddr1...`), NIP-05 format (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;Issue a kind `1633` (Draft status) for the specified patch. The patch have to&lt;br/&gt;be open.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsfvk8zlwdu30hh753z7v0gddravh3zrjeyp8ek8djwp3edsd8y4aczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77xmkyks</id>
    
      <title type="html">// n34 - A CLI to interact with NIP-34 and other stuff related to ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsfvk8zlwdu30hh753z7v0gddravh3zrjeyp8ek8djwp3edsd8y4aczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77xmkyks" />
    <content type="html">
      // n34 - A CLI to interact with NIP-34 and other stuff related to codes in nostr&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU General Public License as published by&lt;br/&gt;// the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/gpl-3.0.html&amp;gt&#34;&gt;https://gnu.org/licenses/gpl-3.0.html&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use clap::Args;&lt;br/&gt;&lt;br/&gt;use crate::{&lt;br/&gt;    cli::{CliOptions, traits::CommandRunner},&lt;br/&gt;    error::N34Result,&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;#[derive(Args, Debug)]&lt;br/&gt;pub struct PowArgs {&lt;br/&gt;    /// The new default PoW difficulty&lt;br/&gt;    difficulty: u8,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl CommandRunner for PowArgs {&lt;br/&gt;    const NEED_SIGNER: bool = false;&lt;br/&gt;&lt;br/&gt;    async fn run(self, mut options: CliOptions) -&amp;gt; N34Result&amp;lt;()&amp;gt; {&lt;br/&gt;        options.config.pow = Some(self.difficulty);&lt;br/&gt;        options.config.dump()&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsftup4y8ttmx63xnfra4ehrlw4rx7l4g6a2glkq6cu3kxedndnzlczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77lhzxvw</id>
    
      <title type="html">[package] name = &amp;#34;n34-relay&amp;#34; description = &amp;#34;A nostr ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsftup4y8ttmx63xnfra4ehrlw4rx7l4g6a2glkq6cu3kxedndnzlczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77lhzxvw" />
    <content type="html">
      [package]&lt;br/&gt;name         = &amp;#34;n34-relay&amp;#34;&lt;br/&gt;description  = &amp;#34;A nostr GRASP relay implementation&amp;#34;&lt;br/&gt;version      = &amp;#34;0.1.1&amp;#34;&lt;br/&gt;edition      = &amp;#34;2024&amp;#34;&lt;br/&gt;license      = &amp;#34;AGPL-3.0-or-later&amp;#34;&lt;br/&gt;authors      = [&amp;#34;Awiteb &amp;lt;a@4rs.nl&amp;gt;&amp;#34;]&lt;br/&gt;readme       = &amp;#34;README.md&amp;#34;&lt;br/&gt;repository   = &amp;#34;&lt;a href=&#34;https://github.com/gnostr-org/get_file_hash.git&amp;#34&#34;&gt;https://github.com/gnostr-org/get_file_hash.git&amp;#34&lt;/a&gt;;&lt;br/&gt;documentation = &amp;#34;&lt;a href=&#34;https://relay.n34.dev/docs.html&amp;#34&#34;&gt;https://relay.n34.dev/docs.html&amp;#34&lt;/a&gt;;&lt;br/&gt;homepage      = &amp;#34;&lt;a href=&#34;https://relay.n34.dev&amp;#34&#34;&gt;https://relay.n34.dev&amp;#34&lt;/a&gt;;&lt;br/&gt;keywords     = [&amp;#34;nostr&amp;#34;, &amp;#34;NIP-34&amp;#34;, &amp;#34;GRASP&amp;#34;]&lt;br/&gt;rust-version = &amp;#34;1.88.0&amp;#34;&lt;br/&gt;&lt;br/&gt;[features]&lt;br/&gt;gen-protos = []&lt;br/&gt;&lt;br/&gt;[package.metadata.wix]&lt;br/&gt;upgrade-guid = &amp;#34;036A2A4F-DA54-4FE2-B2D8-8C58D5814874&amp;#34;&lt;br/&gt;path-guid = &amp;#34;97D3207D-71DB-4DD0-B548-E43E8C664B7D&amp;#34;&lt;br/&gt;license = false&lt;br/&gt;eula = false&lt;br/&gt;&lt;br/&gt;documentation = &amp;#34;&lt;a href=&#34;https://relay.n34.dev/docs.html&amp;#34&#34;&gt;https://relay.n34.dev/docs.html&amp;#34&lt;/a&gt;;&lt;br/&gt;homepage      = &amp;#34;&lt;a href=&#34;https://relay.n34.dev&amp;#34&#34;&gt;https://relay.n34.dev&amp;#34&lt;/a&gt;;&lt;br/&gt;&lt;br/&gt;[[bin]]&lt;br/&gt;name = &amp;#34;nip34_relay&amp;#34;&lt;br/&gt;path = &amp;#34;src/main.rs&amp;#34;&lt;br/&gt;&lt;br/&gt;[dependencies]&lt;br/&gt;rhai = { version = &amp;#34;1.23.4&amp;#34;, features = [&lt;br/&gt;  &amp;#34;no_position&amp;#34;,&lt;br/&gt;  &amp;#34;sync&amp;#34;,&lt;br/&gt;  &amp;#34;serde&amp;#34;,&lt;br/&gt;  &amp;#34;decimal&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;tokio = { version = &amp;#34;1.47.1&amp;#34;, features = [&lt;br/&gt;  &amp;#34;macros&amp;#34;,&lt;br/&gt;  &amp;#34;rt-multi-thread&amp;#34;,&lt;br/&gt;  &amp;#34;signal&amp;#34;,&lt;br/&gt;  &amp;#34;fs&amp;#34;,&lt;br/&gt;  &amp;#34;process&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;tonic = { version = &amp;#34;0.14.2&amp;#34;, features = [&lt;br/&gt;  &amp;#34;tls-ring&amp;#34;,&lt;br/&gt;  &amp;#34;tls-webpki-roots&amp;#34;,&lt;br/&gt;  &amp;#34;gzip&amp;#34;,&lt;br/&gt;  &amp;#34;deflate&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;tower-http = { version = &amp;#34;0.6.6&amp;#34;, features = [&lt;br/&gt;  &amp;#34;cors&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-br&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-deflate&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-gzip&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-zstd&amp;#34;,&lt;br/&gt;  &amp;#34;trace&amp;#34;,&lt;br/&gt;  &amp;#34;timeout&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;&lt;br/&gt;axum               = { version = &amp;#34;0.8.6&amp;#34;, features = [&amp;#34;http2&amp;#34;, &amp;#34;ws&amp;#34;] }&lt;br/&gt;base64             = &amp;#34;0.22.1&amp;#34;&lt;br/&gt;chrono             = &amp;#34;0.4.42&amp;#34;&lt;br/&gt;config             = { version = &amp;#34;0.15.15&amp;#34;, default-features = false, features = [&amp;#34;toml&amp;#34;] }&lt;br/&gt;const_format       = &amp;#34;0.2.34&amp;#34;&lt;br/&gt;convert_case       = &amp;#34;0.8.0&amp;#34;&lt;br/&gt;easy-ext           = &amp;#34;1.0.2&amp;#34;&lt;br/&gt;either             = &amp;#34;1.15.0&amp;#34;&lt;br/&gt;flume              = &amp;#34;0.11.1&amp;#34;&lt;br/&gt;futures            = &amp;#34;0.3.31&amp;#34;&lt;br/&gt;hyper              = &amp;#34;1.7.0&amp;#34;&lt;br/&gt;hyper-util         = &amp;#34;0.1.17&amp;#34;&lt;br/&gt;parking_lot        = { version = &amp;#34;0.12.5&amp;#34;, features = [&amp;#34;serde&amp;#34;] }&lt;br/&gt;prost              = &amp;#34;0.14.1&amp;#34;&lt;br/&gt;serde              = { version = &amp;#34;1.0.219&amp;#34;, features = [&amp;#34;rc&amp;#34;] }&lt;br/&gt;serde_json         = &amp;#34;1.0.145&amp;#34;&lt;br/&gt;serde_with         = &amp;#34;3.15.0&amp;#34;&lt;br/&gt;sha1               = &amp;#34;0.10.6&amp;#34;&lt;br/&gt;sha2               = &amp;#34;0.10.9&amp;#34;&lt;br/&gt;strum              = { version = &amp;#34;0.27.2&amp;#34;, features = [&amp;#34;derive&amp;#34;] }&lt;br/&gt;thiserror          = &amp;#34;2.0.16&amp;#34;&lt;br/&gt;tokio-util         = { version = &amp;#34;0.7.17&amp;#34;, features = [&amp;#34;io&amp;#34;] }&lt;br/&gt;toml               = &amp;#34;0.9.5&amp;#34;&lt;br/&gt;tonic-prost        = &amp;#34;0.14.2&amp;#34;&lt;br/&gt;tower              = { version = &amp;#34;0.5.2&amp;#34;, features = [&amp;#34;limit&amp;#34;] }&lt;br/&gt;tracing            = &amp;#34;0.1.41&amp;#34;&lt;br/&gt;tracing-subscriber = { version = &amp;#34;0.3.20&amp;#34;, features = [&amp;#34;env-filter&amp;#34;] }&lt;br/&gt;dirs = &amp;#34;6.0.0&amp;#34;&lt;br/&gt;&lt;br/&gt;  # We frequently switch between stable and unstable versions; this will make the&lt;br/&gt;  # process easier.&lt;br/&gt;  [dependencies.nostr]&lt;br/&gt;  default-features = false&lt;br/&gt;  features         = [&amp;#34;std&amp;#34;]&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;  [dependencies.nostr-database]&lt;br/&gt;  default-features = false&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;  [dependencies.nostr-lmdb]&lt;br/&gt;  default-features = false&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;  [dependencies.nostr-relay-builder]&lt;br/&gt;  default-features = false&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;&lt;br/&gt;[build-dependencies]&lt;br/&gt;tonic-prost-build = &amp;#34;0.14.2&amp;#34;&lt;br/&gt;[target.&amp;#39;cfg(not(windows))&amp;#39;.build-dependencies]&lt;br/&gt;protobuf-src = &amp;#34;2.1.0&amp;#34;&lt;br/&gt;&lt;br/&gt;# [profile.release]&lt;br/&gt;# lto       = &amp;#34;fat&amp;#34;&lt;br/&gt;# opt-level = 3&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsfgj94cayrn32x846mz446n8vlhx6fy9jyzt570vj98anpx6vwr2qzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk770lecus</id>
    
      <title type="html">const IS_ALL = true; fn admit_query(filter) { if ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsfgj94cayrn32x846mz446n8vlhx6fy9jyzt570vj98anpx6vwr2qzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk770lecus" />
    <content type="html">
      const IS_ALL = true;&lt;br/&gt;&lt;br/&gt;fn admit_query(filter) {&lt;br/&gt;  if filter.get(&amp;#34;kinds&amp;#34;)?.contains(1) {&lt;br/&gt;    throw &amp;#34;Exploring relay notes is not permitted&amp;#34;;&lt;br/&gt;  }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsf8xcs8ahrm2gmplsv4yg5wjcg0uf77z829d22ulu2rrwm7ryjgsszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77fejqqm</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] use frost_secp256k1_tr as ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsf8xcs8ahrm2gmplsv4yg5wjcg0uf77z829d22ulu2rrwm7ryjgsszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77fejqqm" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use frost_secp256k1_tr as frost;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use rand::thread_rng;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use std::collections::BTreeMap;&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    let mut rng = thread_rng();&lt;br/&gt;    let max_signers = 3;&lt;br/&gt;    let min_signers = 2;&lt;br/&gt;&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    // Round 0: Key Generation (Trusted Dealer)&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    &lt;br/&gt;    // In a real P2P setup, you&amp;#39;d use Distributed Key Generation (DKG).&lt;br/&gt;    // For local testing/simulations, the trusted dealer is faster.&lt;br/&gt;    let (shares, pubkey_package) = frost::keys::generate_with_dealer(&lt;br/&gt;        max_signers,&lt;br/&gt;        min_signers,&lt;br/&gt;        frost::keys::IdentifierList::Default,&lt;br/&gt;        &amp;amp;mut rng,&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    // Verifying the public key exists&lt;br/&gt;    let group_public_key = pubkey_package.verifying_key();&lt;br/&gt;    println!(&amp;#34;Group Public Key: {:?}&amp;#34;, group_public_key);&lt;br/&gt;&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    // Round 1: Commitment&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    &lt;br/&gt;    let message = b&amp;#34;BIP-64MOD Consensus Proposal&amp;#34;;&lt;br/&gt;    let mut signing_commitments = BTreeMap::new();&lt;br/&gt;    let mut participant_nonces = BTreeMap::new();&lt;br/&gt;&lt;br/&gt;    // Participants 1 and 2 decide to sign&lt;br/&gt;    for i in 1..=min_signers {&lt;br/&gt;        let identifier = frost::Identifier::try_from(i as u16)?;&lt;br/&gt;        &lt;br/&gt;        // Generate nonces and commitments&lt;br/&gt;        let (nonces, commitments) = frost::round1::commit(&lt;br/&gt;            shares[&amp;amp;identifier].signing_share(),&lt;br/&gt;            &amp;amp;mut rng,&lt;br/&gt;        );&lt;br/&gt;        &lt;br/&gt;        signing_commitments.insert(identifier, commitments);&lt;br/&gt;        participant_nonces.insert(identifier, nonces);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    // Round 2: Signing&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    &lt;br/&gt;    let mut signature_shares = BTreeMap::new();&lt;br/&gt;    let signing_package = frost::SigningPackage::new(signing_commitments, message);&lt;br/&gt;&lt;br/&gt;    for i in 1..=min_signers {&lt;br/&gt;        let identifier = frost::Identifier::try_from(i as u16)?;&lt;br/&gt;        let nonces = &amp;amp;participant_nonces[&amp;amp;identifier];&lt;br/&gt;        &lt;br/&gt;        // Each participant produces a signature share&lt;br/&gt;        let key_package: frost::keys::KeyPackage = shares[&amp;amp;identifier].clone().try_into()?;&lt;br/&gt;        let share = frost::round2::sign(&amp;amp;signing_package, nonces, &amp;amp;key_package)?;&lt;br/&gt;        signature_shares.insert(identifier, share);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    // Finalization: Aggregation&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    &lt;br/&gt;    let group_signature = frost::aggregate(&lt;br/&gt;        &amp;amp;signing_package,&lt;br/&gt;        &amp;amp;signature_shares,&lt;br/&gt;        &amp;amp;pubkey_package,&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    // Verification&lt;br/&gt;    group_public_key.verify(message, &amp;amp;group_signature)?;&lt;br/&gt;    &lt;br/&gt;    println!(&amp;#34;Threshold signature verified successfully!&amp;#34;);&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example trusted-dealer --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsf9le8e5z3c09zf05fatcscv5ejm03x2j3wlauzptsvtasxndw40szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77cehn3z</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsf9le8e5z3c09zf05fatcscv5ejm03x2j3wlauzptsvtasxndw40szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77cehn3z" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::{fmt, fs, sync::Arc};&lt;br/&gt;&lt;br/&gt;use nostr::{event::Event, filter::Filter};&lt;br/&gt;use rhai::{&lt;br/&gt;    Dynamic,&lt;br/&gt;    Engine,&lt;br/&gt;    OptimizationLevel,&lt;br/&gt;    Scope,&lt;br/&gt;    module_resolvers::FileModuleResolver,&lt;br/&gt;    serde::DynamicSerializer,&lt;br/&gt;};&lt;br/&gt;use serde::Serialize;&lt;br/&gt;&lt;br/&gt;use super::{RhaiPlugin, RhaiPlugins, rhai_errors::RhaiPluginsResult};&lt;br/&gt;use crate::{pathes, relay_config::RelayConfig};&lt;br/&gt;&lt;br/&gt;/// Rhai plugins manager&lt;br/&gt;pub struct RhaiPluginsRunner {&lt;br/&gt;    plugins: RhaiPlugins,&lt;br/&gt;    engine:  Engine,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl RhaiPluginsRunner {&lt;br/&gt;    /// Create the engine&lt;br/&gt;    fn load_engine() -&amp;gt; Engine {&lt;br/&gt;        let mut engine = Engine::new();&lt;br/&gt;        engine.set_allow_loop_expressions(false);&lt;br/&gt;        engine.set_strict_variables(true);&lt;br/&gt;        engine.set_optimization_level(OptimizationLevel::Simple);&lt;br/&gt;        engine.set_module_resolver(FileModuleResolver::new_with_path(pathes::rhai_plugins_dir()));&lt;br/&gt;        engine&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Create a new `[RhaiPluginsRunner]` instance&lt;br/&gt;    pub fn new(config: &amp;amp;RelayConfig) -&amp;gt; RhaiPluginsResult&amp;lt;Self&amp;gt; {&lt;br/&gt;        let engine = Self::load_engine();&lt;br/&gt;        let rhai_plugins_dir = pathes::rhai_plugins_dir();&lt;br/&gt;        let _ = fs::create_dir_all(&amp;amp;rhai_plugins_dir);&lt;br/&gt;&lt;br/&gt;        let plugin_name_path = |name: &amp;amp;str| {&lt;br/&gt;            let mut path = rhai_plugins_dir.join(name);&lt;br/&gt;            path.set_extension(&amp;#34;rhai&amp;#34;);&lt;br/&gt;            path&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        let plugins = config&lt;br/&gt;            .plugins&lt;br/&gt;            .rhai&lt;br/&gt;            .plugins&lt;br/&gt;            .iter()&lt;br/&gt;            .map(|plugin_name| {&lt;br/&gt;                Ok(Arc::new(RhaiPlugin::from_file(&lt;br/&gt;                    &amp;amp;engine,&lt;br/&gt;                    plugin_name,&lt;br/&gt;                    plugin_name_path(plugin_name),&lt;br/&gt;                )?))&lt;br/&gt;            })&lt;br/&gt;            .collect::&amp;lt;RhaiPluginsResult&amp;lt;Vec&amp;lt;_&amp;gt;&amp;gt;&amp;gt;()?;&lt;br/&gt;&lt;br/&gt;        Ok(Self {&lt;br/&gt;            engine,&lt;br/&gt;            plugins: RhaiPlugins::new(plugins),&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    fn admit_something&amp;lt;T&amp;gt;(&lt;br/&gt;        &amp;amp;self,&lt;br/&gt;        all_something: &amp;amp;[Arc&amp;lt;RhaiPlugin&amp;gt;],&lt;br/&gt;        any_something: &amp;amp;[Arc&amp;lt;RhaiPlugin&amp;gt;],&lt;br/&gt;        fn_name: &amp;amp;str,&lt;br/&gt;        argument: &amp;amp;T,&lt;br/&gt;    ) -&amp;gt; Result&amp;lt;(), String&amp;gt;&lt;br/&gt;    where&lt;br/&gt;        T: Serialize &#43; fmt::Debug,&lt;br/&gt;    {&lt;br/&gt;        // all all-plugins must pass&lt;br/&gt;        for plugin in all_something {&lt;br/&gt;            execute_rhai_fn(&amp;amp;plugin.name, fn_name, &amp;amp;self.engine, &amp;amp;plugin.ast, argument)?;&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // Pass if there is no any-plugins&lt;br/&gt;        if self.plugins.any_write.is_empty() {&lt;br/&gt;            return Ok(());&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // to store the first rejection message&lt;br/&gt;        let mut reject_msg = None;&lt;br/&gt;        for plugin in any_something {&lt;br/&gt;            match execute_rhai_fn(&amp;amp;plugin.name, fn_name, &amp;amp;self.engine, &amp;amp;plugin.ast, argument) {&lt;br/&gt;                // One any-plugin must pass to return `Ok(())`&lt;br/&gt;                Ok(()) =&amp;gt; return Ok(()),&lt;br/&gt;                // store the first rejection message&lt;br/&gt;                Err(msg) if reject_msg.is_none() =&amp;gt; reject_msg = Some(msg),&lt;br/&gt;                _ =&amp;gt; {}&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // No any-plugin passed, returns the first rejection message&lt;br/&gt;        Err(reject_msg.unwrap())&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Processes the given event by executing the `admit_event` function across&lt;br/&gt;    /// all plugins. For success, all plugins in `all_write` must pass, and&lt;br/&gt;    /// at least one plugin in `any_write` must pass. If all checks pass,&lt;br/&gt;    /// `Ok(())` is returned. Otherwise, the first rejection message is returned&lt;br/&gt;    /// as an error.&lt;br/&gt;    pub fn admit_event(&amp;amp;self, event: &amp;amp;Event) -&amp;gt; Result&amp;lt;(), String&amp;gt; {&lt;br/&gt;        self.admit_something(&lt;br/&gt;            &amp;amp;self.plugins.all_write,&lt;br/&gt;            &amp;amp;self.plugins.any_write,&lt;br/&gt;            &amp;#34;admit_event&amp;#34;,&lt;br/&gt;            event,&lt;br/&gt;        )&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Processes the given query by executing the `admit_query` function across&lt;br/&gt;    /// all plugins. For success, all plugins in `all_query` must pass, and&lt;br/&gt;    /// at least one plugin in `any_query` must pass. If all checks pass,&lt;br/&gt;    /// `Ok(())` is returned. Otherwise, the first rejection message is returned&lt;br/&gt;    /// as an error.&lt;br/&gt;    pub fn admit_query(&amp;amp;self, query: &amp;amp;Filter) -&amp;gt; Result&amp;lt;(), String&amp;gt; {&lt;br/&gt;        self.admit_something(&lt;br/&gt;            &amp;amp;self.plugins.all_query,&lt;br/&gt;            &amp;amp;self.plugins.any_query,&lt;br/&gt;            &amp;#34;admit_query&amp;#34;,&lt;br/&gt;            query,&lt;br/&gt;        )&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Convert the type to rhai map. In case of error, log it and returns error&lt;br/&gt;fn to_rhai_map&amp;lt;T: Serialize &#43; fmt::Debug&amp;gt;(v: &amp;amp;T) -&amp;gt; Option&amp;lt;Dynamic&amp;gt; {&lt;br/&gt;    match v.serialize(&amp;amp;mut DynamicSerializer::new(Dynamic::UNIT)) {&lt;br/&gt;        Ok(v) =&amp;gt; Some(v),&lt;br/&gt;        Err(err) =&amp;gt; {&lt;br/&gt;            // This shouldn&amp;#39;t happen&lt;br/&gt;            tracing::error!(&lt;br/&gt;                event = ?v,&lt;br/&gt;                &amp;#34;Failed to serialize an event to rhai map, {err}&amp;#34;&lt;br/&gt;            );&lt;br/&gt;            None&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Runs a Rhai function with the provided argument using the given engine and&lt;br/&gt;/// AST.&lt;br/&gt;///&lt;br/&gt;/// Returns the Result&amp;lt;(), reject_msg&amp;gt;&lt;br/&gt;fn execute_rhai_fn&amp;lt;T: Serialize &#43; fmt::Debug&amp;gt;(&lt;br/&gt;    plugin_name: &amp;amp;str,&lt;br/&gt;    fn_name: &amp;amp;str,&lt;br/&gt;    engine: &amp;amp;Engine,&lt;br/&gt;    ast: &amp;amp;rhai::AST,&lt;br/&gt;    argument: &amp;amp;T,&lt;br/&gt;) -&amp;gt; Result&amp;lt;(), String&amp;gt; {&lt;br/&gt;    let Some(rhai_map) = to_rhai_map(argument) else {&lt;br/&gt;        return Ok(());&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    if let Err(err) = engine.call_fn::&amp;lt;()&amp;gt;(&amp;amp;mut Scope::new(), ast, fn_name, (rhai_map,)) {&lt;br/&gt;        match *err {&lt;br/&gt;            rhai::EvalAltResult::ErrorRuntime(dynamic, ..) =&amp;gt; {&lt;br/&gt;                match dynamic.into_string() {&lt;br/&gt;                    Ok(s) =&amp;gt; return Err(s),&lt;br/&gt;                    Err(type_name) =&amp;gt; {&lt;br/&gt;                        tracing::error!(&lt;br/&gt;                            plugin = %plugin_name,&lt;br/&gt;                            fn = %fn_name,&lt;br/&gt;                            &amp;#34;Rhai plugin threw a `{type_name}` instead of a string as a rejection message&amp;#34;,&lt;br/&gt;                        );&lt;br/&gt;                    }&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;            _ =&amp;gt; {&lt;br/&gt;                tracing::error!(&lt;br/&gt;                    plugin = %plugin_name,&lt;br/&gt;                    fn = %fn_name,&lt;br/&gt;                    &amp;#34;Rhai plugin encountered an error: {err}&amp;#34;,&lt;br/&gt;                );&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsfpg7x5sqxgqyns6pmx8g4akmq9xeewj37sf5neelrad0f9pyj57gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7784ec75</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsfpg7x5sqxgqyns6pmx8g4akmq9xeewj37sf5neelrad0f9pyj57gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7784ec75" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use nostr::{event::Event, message::MachineReadablePrefix, util::BoxedFuture};&lt;br/&gt;use nostr_relay_builder::builder::WritePolicyResult;&lt;br/&gt;&lt;br/&gt;use crate::relay::plugins_manager::RelayPlugin;&lt;br/&gt;&lt;br/&gt;/// A plugin to check the event size.&lt;br/&gt;#[derive(Debug)]&lt;br/&gt;pub struct EventSizePlugin(pub usize);&lt;br/&gt;&lt;br/&gt;impl RelayPlugin for EventSizePlugin {&lt;br/&gt;    fn check_event&amp;lt;&amp;#39;a&amp;gt;(&amp;amp;&amp;#39;a self, event: &amp;amp;&amp;#39;a Event) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, Option&amp;lt;WritePolicyResult&amp;gt;&amp;gt; {&lt;br/&gt;        Box::pin(async move {&lt;br/&gt;            let event_size = event&lt;br/&gt;                .tags&lt;br/&gt;                .iter()&lt;br/&gt;                .flat_map(|t| t.as_slice())&lt;br/&gt;                .fold(0, |acc: usize, tag_content| {&lt;br/&gt;                    acc.saturating_add(tag_content.len())&lt;br/&gt;                })&lt;br/&gt;                .saturating_add(event.content.len());&lt;br/&gt;&lt;br/&gt;            if event_size &amp;gt; self.0 {&lt;br/&gt;                return Some(WritePolicyResult::reject(&lt;br/&gt;                    MachineReadablePrefix::Blocked,&lt;br/&gt;                    format!(&lt;br/&gt;                        &amp;#34;event size {event_size} is larger than maximum allowed {}&amp;#34;,&lt;br/&gt;                        self.0&lt;br/&gt;                    ),&lt;br/&gt;                ));&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            None&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsg4x05rnyc2sgh4844ncgqehfjhht4gdz6wwnvdltah87vclavnqgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk775lyszh</id>
    
      <title type="html">&amp;lt;svg width=&amp;#34;38&amp;#34; height=&amp;#34;38&amp;#34; viewBox=&amp;#34;0 0 ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsg4x05rnyc2sgh4844ncgqehfjhht4gdz6wwnvdltah87vclavnqgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk775lyszh" />
    <content type="html">
      &amp;lt;svg width=&amp;#34;38&amp;#34; height=&amp;#34;38&amp;#34; viewBox=&amp;#34;0 0 38 38&amp;#34; fill=&amp;#34;none&amp;#34; xmlns=&amp;#34;&lt;a href=&#34;http://www.w3.org/2000/svg&amp;#34;&amp;gt&#34;&gt;http://www.w3.org/2000/svg&amp;#34;&amp;gt&lt;/a&gt;;&lt;br/&gt;&amp;lt;g clip-path=&amp;#34;url(#clip0_10637_23016)&amp;#34;&amp;gt;&lt;br/&gt;&amp;lt;path d=&amp;#34;M8.97955 38C6.7705 37.9997 4.97969 36.2091 4.97955 34C4.97955 32.7232 5.57941 31.5879 6.5108 30.8555C6.01655 29.1838 5.60284 27.6704 5.1065 26.0176C4.44377 23.8104 5.10116 21.3791 6.88971 19.8643L15.0889 12.9209C15.0189 12.6246 14.9805 12.3158 14.9805 11.998C14.9805 10.1857 16.1862 8.65567 17.8389 8.16406L17.8389 1.14258C17.8567 0.428482 18.368 2.24113e-05 18.9991 -1.23663e-06C19.6302 -1.18264e-06 20.1239 0.428458 20.1241 1.14258L20.1241 8.16504C21.7762 8.65702 22.9815 10.1861 22.9815 11.998C22.9815 12.3216 22.9427 12.6362 22.8702 12.9375L31.1231 19.9268C32.861 21.3988 33.559 23.7624 32.8995 25.9424L31.421 30.8301C32.3701 31.5615 32.9825 32.709 32.9825 34C32.9823 36.209 31.1915 37.9997 28.9825 38C26.7732 38 24.9816 36.2092 24.9815 34C24.9815 31.7907 26.7731 29.999 28.9825 29.999C29.0827 29.999 29.1819 30.0054 29.2803 30.0127L30.712 25.2803C31.1076 23.9723 30.6883 22.5541 29.6456 21.6709L21.6944 14.9375C21.2519 15.3462 20.7166 15.6556 20.1241 15.832L20.1241 23.9092C21.4555 24.38 22.41 25.649 22.4102 27.1416C22.4102 29.0353 20.8743 30.5713 18.9805 30.5713C17.087 30.571 15.5518 29.0352 15.5518 27.1416C15.552 25.6486 16.507 24.3797 17.8389 23.9092L17.8389 15.832C17.2413 15.6543 16.7027 15.3405 16.2579 14.9268L8.36725 21.6084C7.30237 22.5104 6.88332 23.9861 7.29596 25.3603C7.79327 27.0164 8.18706 28.4554 8.64557 30.0156C8.75575 30.0065 8.86701 29.999 8.97955 29.999C11.1889 29.999 12.9805 31.7907 12.9805 34C12.9804 36.2092 11.1888 38 8.97955 38Z&amp;#34; fill=&amp;#34;black&amp;#34;/&amp;gt;&lt;br/&gt;&amp;lt;/g&amp;gt;&lt;br/&gt;&amp;lt;defs&amp;gt;&lt;br/&gt;&amp;lt;clipPath id=&amp;#34;clip0_10637_23016&amp;#34;&amp;gt;&lt;br/&gt;&amp;lt;rect width=&amp;#34;38&amp;#34; height=&amp;#34;38&amp;#34; fill=&amp;#34;white&amp;#34;/&amp;gt;&lt;br/&gt;&amp;lt;/clipPath&amp;gt;&lt;br/&gt;&amp;lt;/defs&amp;gt;&lt;br/&gt;&amp;lt;/svg&amp;gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsgneagw2f00s4s02t7kd83sj0r2qr2krternsz4paalg93v8r42xszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77exkv0h</id>
    
      <title type="html">// n34 - A CLI to interact with NIP-34 and other stuff related to ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsgneagw2f00s4s02t7kd83sj0r2qr2krternsz4paalg93v8r42xszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77exkv0h" />
    <content type="html">
      // n34 - A CLI to interact with NIP-34 and other stuff related to codes in nostr&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU General Public License as published by&lt;br/&gt;// the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/gpl-3.0.html&amp;gt&#34;&gt;https://gnu.org/licenses/gpl-3.0.html&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;/// `repo announce` subcommand&lt;br/&gt;mod announce;&lt;br/&gt;/// `repo view` subcommand&lt;br/&gt;mod view;&lt;br/&gt;&lt;br/&gt;use clap::Subcommand;&lt;br/&gt;&lt;br/&gt;use self::announce::AnnounceArgs;&lt;br/&gt;use self::view::ViewArgs;&lt;br/&gt;use super::{CliOptions, CommandRunner};&lt;br/&gt;use crate::error::N34Result;&lt;br/&gt;&lt;br/&gt;#[derive(Subcommand, Debug)]&lt;br/&gt;pub enum RepoSubcommands {&lt;br/&gt;    /// View details of a nostr git repository&lt;br/&gt;    View(ViewArgs),&lt;br/&gt;    /// Broadcast and update a git repository&lt;br/&gt;    Announce(AnnounceArgs),&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl CommandRunner for RepoSubcommands {&lt;br/&gt;    async fn run(self, options: CliOptions) -&amp;gt; N34Result&amp;lt;()&amp;gt; {&lt;br/&gt;        crate::run_command!(self, options, &amp;amp; View Announce)&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsgj8ch2xl7r6gjxmemsdm7mg36k2ds7nr78g4lkd2vn22zc3mhc2szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77qy7evc</id>
    
      <title type="html"># Grasp - Git Relays Authorized via Signed-Nostr Proofs Status: ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsgj8ch2xl7r6gjxmemsdm7mg36k2ds7nr78g4lkd2vn22zc3mhc2szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77qy7evc" />
    <content type="html">
      # Grasp - Git Relays Authorized via Signed-Nostr Proofs&lt;br/&gt;&lt;br/&gt;Status: DRAFT - expect breaking changes&lt;br/&gt;&lt;br/&gt;Contributions to open-source projects shouldn&amp;#39;t be permissioned by a platform like GitHub. Git repoistory hosting should be distributed. Grasp is a protocol like blossom, but for git.&lt;br/&gt;&lt;br/&gt;## Overview&lt;br/&gt;&lt;br/&gt;There may be many grasp servers anywhere -- like Blossom servers -- that host repositories from anyone (maybe they&amp;#39;ll ask for a pre-payment, maybe they will have a free quota for some Nostr users and so on) that you can just push your repositories to. And your pushes are pre-authorized by publishing a Nostr event beforehand that says what is your repository state (branch=commit, HEAD=branch or something like that).&lt;br/&gt;&lt;br/&gt;Then when announcing your repository you can include multiple git&#43;http URLs to these servers that people can clone the project from. And Git-enabled Nostr clients can contact these servers to download and display source code and Git history data.&lt;br/&gt;&lt;br/&gt;## Specification&lt;br/&gt;&lt;br/&gt;GRASP-01 is required. Everything else is optional.&lt;br/&gt;&lt;br/&gt;* GRASP-01 - Core Service Requirements&lt;br/&gt;* GRASP-02 - Proactive Sync&lt;br/&gt;* GRASP-05 - Archive&lt;br/&gt;&lt;br/&gt;Reference implementation - [ngit-relay](&lt;a href=&#34;https://gitworkshop.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-relay&#34;&gt;https://gitworkshop.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-relay&lt;/a&gt;)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;TODO:&lt;br/&gt;- Service Announcements and Discovery&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsgd6n8xgqwx0au5ys9qy2fmsrqp4h8g808uwekat0fmzfn74d5exgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77ef0zk3</id>
    
      <title type="html">{ &amp;#34;nodes&amp;#34;: { &amp;#34;flake-utils&amp;#34;: { &amp;#34;inputs&amp;#34;: { ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsgd6n8xgqwx0au5ys9qy2fmsrqp4h8g808uwekat0fmzfn74d5exgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77ef0zk3" />
    <content type="html">
      {&lt;br/&gt;  &amp;#34;nodes&amp;#34;: {&lt;br/&gt;    &amp;#34;flake-utils&amp;#34;: {&lt;br/&gt;      &amp;#34;inputs&amp;#34;: {&lt;br/&gt;        &amp;#34;systems&amp;#34;: &amp;#34;systems&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;locked&amp;#34;: {&lt;br/&gt;        &amp;#34;lastModified&amp;#34;: 1731533236,&lt;br/&gt;        &amp;#34;narHash&amp;#34;: &amp;#34;sha256-l0KFg5HjrsfsO/JpG&#43;r7fRrqm12kzFHyUHqHCVpMMbI=&amp;#34;,&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;numtide&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;flake-utils&amp;#34;,&lt;br/&gt;        &amp;#34;rev&amp;#34;: &amp;#34;11707dc2f618dd54ca8739b309ec4fc024de578b&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;original&amp;#34;: {&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;numtide&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;flake-utils&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    &amp;#34;nixpkgs&amp;#34;: {&lt;br/&gt;      &amp;#34;locked&amp;#34;: {&lt;br/&gt;        &amp;#34;lastModified&amp;#34;: 1754498491,&lt;br/&gt;        &amp;#34;narHash&amp;#34;: &amp;#34;sha256-erbiH2agUTD0Z30xcVSFcDHzkRvkRXOQ3lb887bcVrs=&amp;#34;,&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;NixOS&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;nixpkgs&amp;#34;,&lt;br/&gt;        &amp;#34;rev&amp;#34;: &amp;#34;c2ae88e026f9525daf89587f3cbee584b92b6134&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;original&amp;#34;: {&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;NixOS&amp;#34;,&lt;br/&gt;        &amp;#34;ref&amp;#34;: &amp;#34;nixos-unstable&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;nixpkgs&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    &amp;#34;nixpkgs_2&amp;#34;: {&lt;br/&gt;      &amp;#34;locked&amp;#34;: {&lt;br/&gt;        &amp;#34;lastModified&amp;#34;: 1744536153,&lt;br/&gt;        &amp;#34;narHash&amp;#34;: &amp;#34;sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=&amp;#34;,&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;NixOS&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;nixpkgs&amp;#34;,&lt;br/&gt;        &amp;#34;rev&amp;#34;: &amp;#34;18dd725c29603f582cf1900e0d25f9f1063dbf11&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;original&amp;#34;: {&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;NixOS&amp;#34;,&lt;br/&gt;        &amp;#34;ref&amp;#34;: &amp;#34;nixpkgs-unstable&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;nixpkgs&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    &amp;#34;root&amp;#34;: {&lt;br/&gt;      &amp;#34;inputs&amp;#34;: {&lt;br/&gt;        &amp;#34;flake-utils&amp;#34;: &amp;#34;flake-utils&amp;#34;,&lt;br/&gt;        &amp;#34;nixpkgs&amp;#34;: &amp;#34;nixpkgs&amp;#34;,&lt;br/&gt;        &amp;#34;rust-overlay&amp;#34;: &amp;#34;rust-overlay&amp;#34;&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    &amp;#34;rust-overlay&amp;#34;: {&lt;br/&gt;      &amp;#34;inputs&amp;#34;: {&lt;br/&gt;        &amp;#34;nixpkgs&amp;#34;: &amp;#34;nixpkgs_2&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;locked&amp;#34;: {&lt;br/&gt;        &amp;#34;lastModified&amp;#34;: 1754575663,&lt;br/&gt;        &amp;#34;narHash&amp;#34;: &amp;#34;sha256-afOx8AG0KYtw7mlt6s6ahBBy7eEHZwws3iCRoiuRQS4=&amp;#34;,&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;oxalica&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;rust-overlay&amp;#34;,&lt;br/&gt;        &amp;#34;rev&amp;#34;: &amp;#34;6db0fb0e9cec2e9729dc52bf4898e6c135bb8a0f&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;original&amp;#34;: {&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;oxalica&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;rust-overlay&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    &amp;#34;systems&amp;#34;: {&lt;br/&gt;      &amp;#34;locked&amp;#34;: {&lt;br/&gt;        &amp;#34;lastModified&amp;#34;: 1681028828,&lt;br/&gt;        &amp;#34;narHash&amp;#34;: &amp;#34;sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=&amp;#34;,&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;nix-systems&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;default&amp;#34;,&lt;br/&gt;        &amp;#34;rev&amp;#34;: &amp;#34;da67096a3b9bf56a91d16901293e51ba5b49a27e&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;original&amp;#34;: {&lt;br/&gt;        &amp;#34;owner&amp;#34;: &amp;#34;nix-systems&amp;#34;,&lt;br/&gt;        &amp;#34;repo&amp;#34;: &amp;#34;default&amp;#34;,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;github&amp;#34;&lt;br/&gt;      }&lt;br/&gt;    }&lt;br/&gt;  },&lt;br/&gt;  &amp;#34;root&amp;#34;: &amp;#34;root&amp;#34;,&lt;br/&gt;  &amp;#34;version&amp;#34;: 7&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsgdcn5lslqr83c0xhpwxjh2jrp2f7lulh49cy4nxv2vmflcpnmmfqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk779gd0wt</id>
    
      <title type="html">// n34 - A CLI to interact with NIP-34 and other stuff related to ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsgdcn5lslqr83c0xhpwxjh2jrp2f7lulh49cy4nxv2vmflcpnmmfqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk779gd0wt" />
    <content type="html">
      // n34 - A CLI to interact with NIP-34 and other stuff related to codes in nostr&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU General Public License as published by&lt;br/&gt;// the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/gpl-3.0.html&amp;gt&#34;&gt;https://gnu.org/licenses/gpl-3.0.html&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use clap::{ArgGroup, Args};&lt;br/&gt;&lt;br/&gt;use crate::{&lt;br/&gt;    cli::{Cli, CliOptions, traits::CommandRunner},&lt;br/&gt;    error::N34Result,&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;#[derive(Args, Debug)]&lt;br/&gt;#[clap(&lt;br/&gt;    group(&lt;br/&gt;        ArgGroup::new(&amp;#34;options&amp;#34;)&lt;br/&gt;            .required(true)&lt;br/&gt;    )&lt;br/&gt;)]&lt;br/&gt;pub struct KeyringArgs {&lt;br/&gt;    /// Turns on secret key keyring. Requires entering the key once when&lt;br/&gt;    /// enabled.&lt;br/&gt;    #[arg(long, group = &amp;#34;options&amp;#34;)]&lt;br/&gt;    enable:  bool,&lt;br/&gt;    /// Turns off secret key keyring. Removes any existing key and prevents&lt;br/&gt;    /// storing new ones.&lt;br/&gt;    #[arg(long, group = &amp;#34;options&amp;#34;)]&lt;br/&gt;    disable: bool,&lt;br/&gt;    /// Deletes current key and stores the next provided key.&lt;br/&gt;    #[arg(long, group = &amp;#34;options&amp;#34;)]&lt;br/&gt;    reset:   bool,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl CommandRunner for KeyringArgs {&lt;br/&gt;    const NEED_SIGNER: bool = false;&lt;br/&gt;&lt;br/&gt;    async fn run(self, mut options: CliOptions) -&amp;gt; N34Result&amp;lt;()&amp;gt; {&lt;br/&gt;        let keyring = nostr_keyring::NostrKeyring::new(Cli::N34_KEYRING_SERVICE_NAME);&lt;br/&gt;&lt;br/&gt;        if self.enable {&lt;br/&gt;            options.config.keyring_secret_key = true;&lt;br/&gt;        } else if self.disable {&lt;br/&gt;            options.config.keyring_secret_key = false;&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        if self.reset || self.disable {&lt;br/&gt;            let _ = keyring.delete(Cli::USER_KEY_PAIR_ENTRY);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        options.config.dump()&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsgx49sn23t4cyjcp5jp5x55pruaxxmnr83x9l9xyt8d2wtpz4tpaczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77jlp8ga</id>
    
      <title type="html"># This file was autogenerated by dist: ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsgx49sn23t4cyjcp5jp5x55pruaxxmnr83x9l9xyt8d2wtpz4tpaczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77jlp8ga" />
    <content type="html">
      # This file was autogenerated by dist: &lt;a href=&#34;https://axodotdev.github.io/cargo-dist&#34;&gt;https://axodotdev.github.io/cargo-dist&lt;/a&gt;&lt;br/&gt;#&lt;br/&gt;# Copyright 2022-2024, axodotdev&lt;br/&gt;# SPDX-License-Identifier: MIT or Apache-2.0&lt;br/&gt;#&lt;br/&gt;# CI that:&lt;br/&gt;#&lt;br/&gt;# * checks for a Git Tag that looks like a release&lt;br/&gt;# * builds artifacts with dist (archives, installers, hashes)&lt;br/&gt;# * uploads those artifacts to temporary workflow zip&lt;br/&gt;# * on success, uploads the artifacts to a GitHub Release&lt;br/&gt;#&lt;br/&gt;# Note that the GitHub Release will be created with a generated&lt;br/&gt;# title/body based on your changelogs.&lt;br/&gt;&lt;br/&gt;name: Release&lt;br/&gt;permissions:&lt;br/&gt;  &amp;#34;contents&amp;#34;: &amp;#34;write&amp;#34;&lt;br/&gt;&lt;br/&gt;# This task will run whenever you push a git tag that looks like a version&lt;br/&gt;# like &amp;#34;1.0.0&amp;#34;, &amp;#34;v0.1.0-prerelease.1&amp;#34;, &amp;#34;my-app/0.1.0&amp;#34;, &amp;#34;releases/v1.0.0&amp;#34;, etc.&lt;br/&gt;# Various formats will be parsed into a VERSION and an optional PACKAGE_NAME, where&lt;br/&gt;# PACKAGE_NAME must be the name of a Cargo package in your workspace, and VERSION&lt;br/&gt;# must be a Cargo-style SemVer Version (must have at least major.minor.patch).&lt;br/&gt;#&lt;br/&gt;# If PACKAGE_NAME is specified, then the announcement will be for that&lt;br/&gt;# package (erroring out if it doesn&amp;#39;t have the given version or isn&amp;#39;t dist-able).&lt;br/&gt;#&lt;br/&gt;# If PACKAGE_NAME isn&amp;#39;t specified, then the announcement will be for all&lt;br/&gt;# (dist-able) packages in the workspace with that version (this mode is&lt;br/&gt;# intended for workspaces with only one dist-able package, or with all dist-able&lt;br/&gt;# packages versioned/released in lockstep).&lt;br/&gt;#&lt;br/&gt;# If you push multiple tags at once, separate instances of this workflow will&lt;br/&gt;# spin up, creating an independent announcement for each one. However, GitHub&lt;br/&gt;# will hard limit this to 3 tags per commit, as it will assume more tags is a&lt;br/&gt;# mistake.&lt;br/&gt;#&lt;br/&gt;# If there&amp;#39;s a prerelease-style suffix to the version, then the release(s)&lt;br/&gt;# will be marked as a prerelease.&lt;br/&gt;on:&lt;br/&gt;  pull_request:&lt;br/&gt;  push:&lt;br/&gt;    tags:&lt;br/&gt;      - &amp;#39;**[0-9]&#43;.[0-9]&#43;.[0-9]&#43;*&amp;#39;&lt;br/&gt;&lt;br/&gt;jobs:&lt;br/&gt;  # Run &amp;#39;dist plan&amp;#39; (or host) to determine what tasks we need to do&lt;br/&gt;  install-deps:&lt;br/&gt;    runs-on: &amp;#34;ubuntu-latest&amp;#34;&lt;br/&gt;    outputs:&lt;br/&gt;      val: ${{ steps.plan.outputs.manifest }}&lt;br/&gt;      tag: ${{ !github.event.pull_request &amp;amp;&amp;amp; github.ref_name || &amp;#39;&amp;#39; }}&lt;br/&gt;      tag-flag: ${{ !github.event.pull_request &amp;amp;&amp;amp; format(&amp;#39;--tag={0}&amp;#39;, github.ref_name) || &amp;#39;&amp;#39; }}&lt;br/&gt;      publishing: ${{ !github.event.pull_request }}&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;&lt;br/&gt;      - name: Install-deps&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          if [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;Linux&amp;#34; ]]; then&lt;br/&gt;            sudo apt-get update&lt;br/&gt;            sudo apt-get install -y pkg-config libdbus-1-dev curl unzip&lt;br/&gt;&lt;br/&gt;            # Install a pinned modern protoc&lt;br/&gt;            PROTOC_ZIP=protoc-25.3-linux-x86_64.zip&lt;br/&gt;            curl -LO &lt;a href=&#34;https://github.com/protocolbuffers/protobuf/releases/download/v25.3/$PROTOC_ZIP&#34;&gt;https://github.com/protocolbuffers/protobuf/releases/download/v25.3/$PROTOC_ZIP&lt;/a&gt;&lt;br/&gt;            sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc&lt;br/&gt;            sudo unzip -o $PROTOC_ZIP -d /usr/local &amp;#39;include/*&amp;#39;&lt;br/&gt;            rm -f $PROTOC_ZIP&lt;br/&gt;&lt;br/&gt;          elif [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;macOS&amp;#34; ]]; then&lt;br/&gt;            brew install protobuf&lt;br/&gt;          elif [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;Windows&amp;#34; ]]; then&lt;br/&gt;            choco install protoc --no-progress&lt;br/&gt;            echo &amp;#34;C:\ProgramData\chocolatey\bin&amp;#34; &amp;gt;&amp;gt; $GITHUB_PATH&lt;br/&gt;          fi&lt;br/&gt;&lt;br/&gt;          protoc --version&lt;br/&gt;&lt;br/&gt;  plan:&lt;br/&gt;    needs:&lt;br/&gt;      - install-deps&lt;br/&gt;    runs-on: &amp;#34;ubuntu-latest&amp;#34;&lt;br/&gt;    outputs:&lt;br/&gt;      val: ${{ steps.plan.outputs.manifest }}&lt;br/&gt;      tag: ${{ !github.event.pull_request &amp;amp;&amp;amp; github.ref_name || &amp;#39;&amp;#39; }}&lt;br/&gt;      tag-flag: ${{ !github.event.pull_request &amp;amp;&amp;amp; format(&amp;#39;--tag={0}&amp;#39;, github.ref_name) || &amp;#39;&amp;#39; }}&lt;br/&gt;      publishing: ${{ !github.event.pull_request }}&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install dist&lt;br/&gt;        # we specify bash to get pipefail; it guards against the `curl` command&lt;br/&gt;        # failing. otherwise `sh` won&amp;#39;t catch that `curl` returned non-0&lt;br/&gt;        shell: bash&lt;br/&gt;        run: &amp;#34;curl --proto &amp;#39;=https&amp;#39; --tlsv1.2 -LsSf &lt;a href=&#34;https://github.com/axodotdev/cargo-dist/releases/download/v0.30.3/cargo-dist-installer.sh&#34;&gt;https://github.com/axodotdev/cargo-dist/releases/download/v0.30.3/cargo-dist-installer.sh&lt;/a&gt; | sh&amp;#34;&lt;br/&gt;      - name: Cache dist&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: cargo-dist-cache&lt;br/&gt;          path: ~/.cargo/bin/dist&lt;br/&gt;      # sure would be cool if github gave us proper conditionals...&lt;br/&gt;      # so here&amp;#39;s a doubly-nested ternary-via-truthiness to try to provide the best possible&lt;br/&gt;      # functionality based on whether this is a pull_request, and whether it&amp;#39;s from a fork.&lt;br/&gt;      # (PRs run on the *source* but secrets are usually on the *target* -- that&amp;#39;s *good*&lt;br/&gt;      # but also really annoying to build CI around when it needs secrets to work right.)&lt;br/&gt;      - id: plan&lt;br/&gt;        run: |&lt;br/&gt;          dist ${{ (!github.event.pull_request &amp;amp;&amp;amp; format(&amp;#39;host --steps=create --tag={0}&amp;#39;, github.ref_name)) || &amp;#39;plan&amp;#39; }} --output-format=json &amp;gt; plan-dist-manifest.json&lt;br/&gt;          echo &amp;#34;dist ran successfully&amp;#34;&lt;br/&gt;          cat plan-dist-manifest.json&lt;br/&gt;          echo &amp;#34;manifest=$(jq -c &amp;#34;.&amp;#34; plan-dist-manifest.json)&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;      - name: &amp;#34;Upload dist-manifest.json&amp;#34;&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: artifacts-plan-dist-manifest&lt;br/&gt;          path: plan-dist-manifest.json&lt;br/&gt;&lt;br/&gt;  # Build and packages all the platform-specific things&lt;br/&gt;  build-local-artifacts:&lt;br/&gt;    name: build-local-artifacts (${{ join(matrix.targets, &amp;#39;, &amp;#39;) }})&lt;br/&gt;    # Let the initial task tell us to not run (currently very blunt)&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - install-deps&lt;br/&gt;    if: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix.include != null &amp;amp;&amp;amp; (needs.plan.outputs.publishing == &amp;#39;true&amp;#39; || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == &amp;#39;upload&amp;#39;) }}&lt;br/&gt;    strategy:&lt;br/&gt;      fail-fast: false&lt;br/&gt;      # Target platforms/runners are computed by dist in create-release.&lt;br/&gt;      # Each member of the matrix has the following arguments:&lt;br/&gt;      #&lt;br/&gt;      # - runner: the github runner&lt;br/&gt;      # - dist-args: cli flags to pass to dist&lt;br/&gt;      # - install-dist: expression to run to install dist on the runner&lt;br/&gt;      #&lt;br/&gt;      # Typically there will be:&lt;br/&gt;      # - 1 &amp;#34;global&amp;#34; task that builds universal installers&lt;br/&gt;      # - N &amp;#34;local&amp;#34; tasks that build each platform&amp;#39;s binaries and platform-specific installers&lt;br/&gt;      matrix: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix }}&lt;br/&gt;    runs-on: ${{ matrix.runner }}&lt;br/&gt;    container: ${{ matrix.container &amp;amp;&amp;amp; matrix.container.image || null }}&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;      BUILD_MANIFEST_NAME: target/distrib/${{ join(matrix.targets, &amp;#39;-&amp;#39;) }}-dist-manifest.json&lt;br/&gt;    steps:&lt;br/&gt;      - name: enable windows longpaths&lt;br/&gt;        run: |&lt;br/&gt;          git config --global core.longpaths true&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install Rust non-interactively if not already installed&lt;br/&gt;        if: ${{ matrix.container }}&lt;br/&gt;        run: |&lt;br/&gt;          if ! command -v cargo &amp;gt; /dev/null 2&amp;gt;&amp;amp;1; then&lt;br/&gt;            curl --proto &amp;#39;=https&amp;#39; --tlsv1.2 -sSf &lt;a href=&#34;https://sh.rustup.rs&#34;&gt;https://sh.rustup.rs&lt;/a&gt; | sh -s -- -y&lt;br/&gt;            echo &amp;#34;$HOME/.cargo/bin&amp;#34; &amp;gt;&amp;gt; $GITHUB_PATH&lt;br/&gt;          fi&lt;br/&gt;      - name: Install dist&lt;br/&gt;        run: ${{ matrix.install_dist.run }}&lt;br/&gt;      # Get the dist-manifest&lt;br/&gt;      - name: Fetch local artifacts&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: target/distrib/&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      - name: Install dependencies&lt;br/&gt;        run: |&lt;br/&gt;          ${{ matrix.packages_install }}&lt;br/&gt;      - name: Install-deps&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          if [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;Linux&amp;#34; ]]; then&lt;br/&gt;            sudo apt-get update&lt;br/&gt;            sudo apt-get install -y pkg-config libdbus-1-dev curl unzip&lt;br/&gt;&lt;br/&gt;            # Install a pinned modern protoc&lt;br/&gt;            PROTOC_ZIP=protoc-25.3-linux-x86_64.zip&lt;br/&gt;            curl -LO &lt;a href=&#34;https://github.com/protocolbuffers/protobuf/releases/download/v25.3/$PROTOC_ZIP&#34;&gt;https://github.com/protocolbuffers/protobuf/releases/download/v25.3/$PROTOC_ZIP&lt;/a&gt;&lt;br/&gt;            sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc&lt;br/&gt;            sudo unzip -o $PROTOC_ZIP -d /usr/local &amp;#39;include/*&amp;#39;&lt;br/&gt;            rm -f $PROTOC_ZIP&lt;br/&gt;&lt;br/&gt;          elif [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;macOS&amp;#34; ]]; then&lt;br/&gt;            brew install protobuf&lt;br/&gt;          elif [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;Windows&amp;#34; ]]; then&lt;br/&gt;            choco install protoc --no-progress&lt;br/&gt;            echo &amp;#34;C:\ProgramData\chocolatey\bin&amp;#34; &amp;gt;&amp;gt; $GITHUB_PATH&lt;br/&gt;          fi&lt;br/&gt;&lt;br/&gt;          protoc --version&lt;br/&gt;&lt;br/&gt;      - name: Configure Cargo for Windows builds&lt;br/&gt;        if: runner.os == &amp;#39;Windows&amp;#39;&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          # Put target dir somewhere short and less likely to be locked&lt;br/&gt;          echo &amp;#34;CARGO_TARGET_DIR=D:/cargo-target&amp;#34; &amp;gt;&amp;gt; $GITHUB_ENV&lt;br/&gt;          # Reduce file-handle pressure / parallel writes&lt;br/&gt;          echo &amp;#34;CARGO_BUILD_JOBS=2&amp;#34; &amp;gt;&amp;gt; $GITHUB_ENV&lt;br/&gt;          # Avoid incremental artifacts (less churn, fewer locks)&lt;br/&gt;          echo &amp;#34;CARGO_INCREMENTAL=0&amp;#34; &amp;gt;&amp;gt; $GITHUB_ENV&lt;br/&gt;&lt;br/&gt;      - name: Build artifacts&lt;br/&gt;        run: |&lt;br/&gt;          # Actually do builds and make zips and whatnot&lt;br/&gt;          dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} &amp;gt; dist-manifest.json&lt;br/&gt;          echo &amp;#34;dist ran successfully&amp;#34;&lt;br/&gt;      - id: cargo-dist&lt;br/&gt;        name: Post-build&lt;br/&gt;        # We force bash here just because github makes it really hard to get values up&lt;br/&gt;        # to &amp;#34;real&amp;#34; actions without writing to env-vars, and writing to env-vars has&lt;br/&gt;        # inconsistent syntax between shell and powershell.&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          # Parse out what we just built and upload it to scratch storage&lt;br/&gt;          echo &amp;#34;paths&amp;lt;&amp;lt;EOF&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;          dist print-upload-files-from-manifest --manifest dist-manifest.json &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;          echo &amp;#34;EOF&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;&lt;br/&gt;          cp dist-manifest.json &amp;#34;$BUILD_MANIFEST_NAME&amp;#34;&lt;br/&gt;      - name: &amp;#34;Upload artifacts&amp;#34;&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: artifacts-build-local-${{ join(matrix.targets, &amp;#39;_&amp;#39;) }}&lt;br/&gt;          path: |&lt;br/&gt;            ${{ steps.cargo-dist.outputs.paths }}&lt;br/&gt;            ${{ env.BUILD_MANIFEST_NAME }}&lt;br/&gt;&lt;br/&gt;  # Build and package all the platform-agnostic(ish) things&lt;br/&gt;  build-global-artifacts:&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - install-deps&lt;br/&gt;      - build-local-artifacts&lt;br/&gt;    runs-on: &amp;#34;ubuntu-latest&amp;#34;&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;      BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install cached dist&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: cargo-dist-cache&lt;br/&gt;          path: ~/.cargo/bin/&lt;br/&gt;      - run: chmod &#43;x ~/.cargo/bin/dist&lt;br/&gt;      - name: Install-deps&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          if [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;Linux&amp;#34; ]]; then&lt;br/&gt;            sudo apt-get update&lt;br/&gt;            sudo apt-get install -y pkg-config libdbus-1-dev curl unzip&lt;br/&gt;&lt;br/&gt;            # Install a pinned modern protoc&lt;br/&gt;            PROTOC_ZIP=protoc-25.3-linux-x86_64.zip&lt;br/&gt;            curl -LO &lt;a href=&#34;https://github.com/protocolbuffers/protobuf/releases/download/v25.3/$PROTOC_ZIP&#34;&gt;https://github.com/protocolbuffers/protobuf/releases/download/v25.3/$PROTOC_ZIP&lt;/a&gt;&lt;br/&gt;            sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc&lt;br/&gt;            sudo unzip -o $PROTOC_ZIP -d /usr/local &amp;#39;include/*&amp;#39;&lt;br/&gt;            rm -f $PROTOC_ZIP&lt;br/&gt;&lt;br/&gt;          elif [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;macOS&amp;#34; ]]; then&lt;br/&gt;            brew install protobuf&lt;br/&gt;          elif [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;Windows&amp;#34; ]]; then&lt;br/&gt;            choco install protoc --no-progress&lt;br/&gt;            echo &amp;#34;C:\ProgramData\chocolatey\bin&amp;#34; &amp;gt;&amp;gt; $GITHUB_PATH&lt;br/&gt;          fi&lt;br/&gt;&lt;br/&gt;          protoc --version&lt;br/&gt;&lt;br/&gt;      # Get all the local artifacts for the global tasks to use (for e.g. checksums)&lt;br/&gt;      - name: Fetch local artifacts&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: target/distrib/&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      - id: cargo-dist&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json &amp;#34;--artifacts=global&amp;#34; &amp;gt; dist-manifest.json&lt;br/&gt;          echo &amp;#34;dist ran successfully&amp;#34;&lt;br/&gt;&lt;br/&gt;          # Parse out what we just built and upload it to scratch storage&lt;br/&gt;          echo &amp;#34;paths&amp;lt;&amp;lt;EOF&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;          jq --raw-output &amp;#34;.upload_files[]&amp;#34; dist-manifest.json &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;          echo &amp;#34;EOF&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;&lt;br/&gt;          cp dist-manifest.json &amp;#34;$BUILD_MANIFEST_NAME&amp;#34;&lt;br/&gt;      - name: &amp;#34;Upload artifacts&amp;#34;&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: artifacts-build-global&lt;br/&gt;          path: |&lt;br/&gt;            ${{ steps.cargo-dist.outputs.paths }}&lt;br/&gt;            ${{ env.BUILD_MANIFEST_NAME }}&lt;br/&gt;  # Determines if we should publish/announce&lt;br/&gt;  host:&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - install-deps&lt;br/&gt;      - build-local-artifacts&lt;br/&gt;      - build-global-artifacts&lt;br/&gt;    # Only run if we&amp;#39;re &amp;#34;publishing&amp;#34;, and only if plan, local and global didn&amp;#39;t fail (skipped is fine)&lt;br/&gt;    if: ${{ always() &amp;amp;&amp;amp; needs.plan.result == &amp;#39;success&amp;#39; &amp;amp;&amp;amp; needs.plan.outputs.publishing == &amp;#39;true&amp;#39; &amp;amp;&amp;amp; (needs.build-global-artifacts.result == &amp;#39;skipped&amp;#39; || needs.build-global-artifacts.result == &amp;#39;success&amp;#39;) &amp;amp;&amp;amp; (needs.build-local-artifacts.result == &amp;#39;skipped&amp;#39; || needs.build-local-artifacts.result == &amp;#39;success&amp;#39;) }}&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;    runs-on: &amp;#34;ubuntu-latest&amp;#34;&lt;br/&gt;    outputs:&lt;br/&gt;      val: ${{ steps.host.outputs.manifest }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install cached dist&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: cargo-dist-cache&lt;br/&gt;          path: ~/.cargo/bin/&lt;br/&gt;      - run: chmod &#43;x ~/.cargo/bin/dist&lt;br/&gt;      # Fetch artifacts from scratch-storage&lt;br/&gt;      - name: Fetch artifacts&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: target/distrib/&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      - id: host&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          dist host ${{ needs.plan.outputs.tag-flag }} --steps=upload --steps=release --output-format=json &amp;gt; dist-manifest.json&lt;br/&gt;          echo &amp;#34;artifacts uploaded and released successfully&amp;#34;&lt;br/&gt;          cat dist-manifest.json&lt;br/&gt;          echo &amp;#34;manifest=$(jq -c &amp;#34;.&amp;#34; dist-manifest.json)&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;      - name: &amp;#34;Upload dist-manifest.json&amp;#34;&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          # Overwrite the previous copy&lt;br/&gt;          name: artifacts-dist-manifest&lt;br/&gt;          path: dist-manifest.json&lt;br/&gt;      # Create a GitHub Release while uploading all files to it&lt;br/&gt;      - name: &amp;#34;Download GitHub Artifacts&amp;#34;&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: artifacts&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      - name: Cleanup&lt;br/&gt;        run: |&lt;br/&gt;          # Remove the granular manifests&lt;br/&gt;          rm -f artifacts/*-dist-manifest.json&lt;br/&gt;      - name: Create GitHub Release&lt;br/&gt;        env:&lt;br/&gt;          PRERELEASE_FLAG: &amp;#34;${{ fromJson(steps.host.outputs.manifest).announcement_is_prerelease &amp;amp;&amp;amp; &amp;#39;--prerelease&amp;#39; || &amp;#39;&amp;#39; }}&amp;#34;&lt;br/&gt;          ANNOUNCEMENT_TITLE: &amp;#34;${{ fromJson(steps.host.outputs.manifest).announcement_title }}&amp;#34;&lt;br/&gt;          ANNOUNCEMENT_BODY: &amp;#34;${{ fromJson(steps.host.outputs.manifest).announcement_github_body }}&amp;#34;&lt;br/&gt;          RELEASE_COMMIT: &amp;#34;${{ github.sha }}&amp;#34;&lt;br/&gt;        run: |&lt;br/&gt;          # Write and read notes from a file to avoid quoting breaking things&lt;br/&gt;          echo &amp;#34;$ANNOUNCEMENT_BODY&amp;#34; &amp;gt; $RUNNER_TEMP/notes.txt&lt;br/&gt;&lt;br/&gt;          gh release create &amp;#34;${{ needs.plan.outputs.tag }}&amp;#34; --target &amp;#34;$RELEASE_COMMIT&amp;#34; $PRERELEASE_FLAG --title &amp;#34;$ANNOUNCEMENT_TITLE&amp;#34; --notes-file &amp;#34;$RUNNER_TEMP/notes.txt&amp;#34; artifacts/*&lt;br/&gt;&lt;br/&gt;  publish-homebrew-formula:&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - host&lt;br/&gt;      - install-deps&lt;br/&gt;      - build-local-artifacts&lt;br/&gt;      - build-global-artifacts&lt;br/&gt;    runs-on: &amp;#34;ubuntu-latest&amp;#34;&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;      PLAN: ${{ needs.plan.outputs.val }}&lt;br/&gt;      GITHUB_USER: &amp;#34;axo bot&amp;#34;&lt;br/&gt;      GITHUB_EMAIL: &amp;#34;admin&#43;bot@axo.dev&amp;#34;&lt;br/&gt;    if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: true&lt;br/&gt;          repository: &amp;#34;gnostr-org/homebrew-gnostr&amp;#34;&lt;br/&gt;          token: ${{ secrets.HOMEBREW_TAP_TOKEN }}&lt;br/&gt;      # So we have access to the formula&lt;br/&gt;      - name: Fetch homebrew formulae&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: Formula/&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      # This is extra complex because you can make your Formula name not match your app name&lt;br/&gt;      # so we need to find releases with a *.rb file, and publish with that filename.&lt;br/&gt;      - name: Commit formula files&lt;br/&gt;        run: |&lt;br/&gt;          git config --global user.name &amp;#34;${GITHUB_USER}&amp;#34;&lt;br/&gt;          git config --global user.email &amp;#34;${GITHUB_EMAIL}&amp;#34;&lt;br/&gt;&lt;br/&gt;          for release in $(echo &amp;#34;$PLAN&amp;#34; | jq --compact-output &amp;#39;.releases[] | select([.artifacts[] | endswith(&amp;#34;.rb&amp;#34;)] | any)&amp;#39;); do&lt;br/&gt;            filename=$(echo &amp;#34;$release&amp;#34; | jq &amp;#39;.artifacts[] | select(endswith(&amp;#34;.rb&amp;#34;))&amp;#39; --raw-output)&lt;br/&gt;            name=$(echo &amp;#34;$filename&amp;#34; | sed &amp;#34;s/\.rb$//&amp;#34;)&lt;br/&gt;            version=$(echo &amp;#34;$release&amp;#34; | jq .app_version --raw-output)&lt;br/&gt;&lt;br/&gt;            export PATH=&amp;#34;/home/linuxbrew/.linuxbrew/bin:$PATH&amp;#34;&lt;br/&gt;            brew update&lt;br/&gt;            # We avoid reformatting user-provided data such as the app description and homepage.&lt;br/&gt;            brew style --except-cops FormulaAudit/Homepage,FormulaAudit/Desc,FormulaAuditStrict --fix &amp;#34;Formula/${filename}&amp;#34; || true&lt;br/&gt;&lt;br/&gt;            git add &amp;#34;Formula/${filename}&amp;#34;&lt;br/&gt;            git commit -m &amp;#34;${name} ${version}&amp;#34;&lt;br/&gt;          done&lt;br/&gt;          git push&lt;br/&gt;&lt;br/&gt;  announce:&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - install-deps&lt;br/&gt;      - build-local-artifacts&lt;br/&gt;      - build-global-artifacts&lt;br/&gt;      - host&lt;br/&gt;      - publish-homebrew-formula&lt;br/&gt;    # use &amp;#34;always() &amp;amp;&amp;amp; ...&amp;#34; to allow us to wait for all publish jobs while&lt;br/&gt;    # still allowing individual publish jobs to skip themselves (for prereleases).&lt;br/&gt;    # &amp;#34;host&amp;#34; however must run to completion, no skipping allowed!&lt;br/&gt;    if: ${{ always() &amp;amp;&amp;amp; needs.host.result == &amp;#39;success&amp;#39; &amp;amp;&amp;amp; (needs.publish-homebrew-formula.result == &amp;#39;skipped&amp;#39; || needs.publish-homebrew-formula.result == &amp;#39;success&amp;#39;) }}&lt;br/&gt;    runs-on: &amp;#34;ubuntu-latest&amp;#34;&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsg9hppvq0xfv8zmrlvzlxyy34g5ul6sxp3mew8ely9g89vqujhhsczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77tyfapn</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsg9hppvq0xfv8zmrlvzlxyy34g5ul6sxp3mew8ely9g89vqujhhsczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77tyfapn" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::path::PathBuf;&lt;br/&gt;use std::env;&lt;br/&gt;&lt;br/&gt;const BASE_DIR_ENV_VAR: &amp;amp;str = &amp;#34;N34_RELAY_BASE_DIR&amp;#34;;&lt;br/&gt;&lt;br/&gt;/// Returns the base directory for n34-relay.&lt;br/&gt;/// Priority:&lt;br/&gt;/// 1. Environment variable `N34_RELAY_BASE_DIR`&lt;br/&gt;/// 2. OS-specific config directory &#43; `/n34-relay`&lt;br/&gt;/// 3. Fallback to current directory if config_dir is unavailable&lt;br/&gt;pub fn get_base_dir() -&amp;gt; PathBuf {&lt;br/&gt;    if let Ok(env_path) = env::var(BASE_DIR_ENV_VAR) {&lt;br/&gt;        return PathBuf::from(env_path);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // Linux:   /home/alice/.config/n34-relay&lt;br/&gt;    // macOS:   /Users/alice/Library/Application Support/n34-relay&lt;br/&gt;    // Windows: C:\Users\Alice\AppData\Roaming\n34-relay&lt;br/&gt;    dirs::config_dir()&lt;br/&gt;        .map(|path| path.join(&amp;#34;n34-relay&amp;#34;))&lt;br/&gt;        .unwrap_or_else(|| PathBuf::from(&amp;#34;.&amp;#34;))&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Alias for get_base_dir to fix E0425 errors in downstream functions&lt;br/&gt;pub fn base_dir_path() -&amp;gt; PathBuf {&lt;br/&gt;    get_base_dir()&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Helper for the default config file path&lt;br/&gt;pub fn get_default_config_path() -&amp;gt; PathBuf {&lt;br/&gt;    base_dir_path().join(&amp;#34;config.toml&amp;#34;)&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;pub fn config_file_path() -&amp;gt; PathBuf {&lt;br/&gt;    get_default_config_path()&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;pub fn lmdb_dir_path() -&amp;gt; PathBuf {&lt;br/&gt;    base_dir_path().join(&amp;#34;lmdb&amp;#34;)&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;pub fn logs_file_path() -&amp;gt; PathBuf {&lt;br/&gt;    base_dir_path().join(&amp;#34;logs.log&amp;#34;)&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;pub fn homepage_file_path() -&amp;gt; PathBuf {&lt;br/&gt;    base_dir_path().join(&amp;#34;homepage.html&amp;#34;)&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;pub fn rhai_plugins_dir() -&amp;gt; PathBuf {&lt;br/&gt;    base_dir_path().join(&amp;#34;rhai-plugins&amp;#34;)&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;pub fn grasp_repos() -&amp;gt; PathBuf {&lt;br/&gt;    base_dir_path().join(&amp;#34;repos&amp;#34;)&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsgrnp6860mgq7trt67yphlv5qvv495z3mmdaka5ry38lyzt5e8vaczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77g9n4cs</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsgrnp6860mgq7trt67yphlv5qvv495z3mmdaka5ry38lyzt5e8vaczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77g9n4cs" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::sync::Arc;&lt;br/&gt;&lt;br/&gt;use axum::{&lt;br/&gt;    Extension,&lt;br/&gt;    extract::Query,&lt;br/&gt;    response::{IntoResponse, Response},&lt;br/&gt;};&lt;br/&gt;use hyper::{HeaderMap, StatusCode};&lt;br/&gt;&lt;br/&gt;use super::{ServiceQuery, git_command::GitCommand};&lt;br/&gt;use crate::router_state::RouterState;&lt;br/&gt;&lt;br/&gt;/// Retrieves Git repository reference information for a given service.&lt;br/&gt;/// Returns a response containing the references or an appropriate error message&lt;br/&gt;/// if the repository or service is not found.&lt;br/&gt;pub async fn info_refs(&lt;br/&gt;    Extension(state): Extension&amp;lt;Arc&amp;lt;RouterState&amp;gt;&amp;gt;,&lt;br/&gt;    params: super::PublicKeyAndRepoPath,&lt;br/&gt;    Query(ServiceQuery { service }): Query&amp;lt;ServiceQuery&amp;gt;,&lt;br/&gt;    headers: HeaderMap,&lt;br/&gt;) -&amp;gt; Response {&lt;br/&gt;    let Some(repo_path) = state.repo_path(&amp;amp;params.public_key, &amp;amp;params.repo_name) else {&lt;br/&gt;        return (StatusCode::NOT_FOUND, &amp;#34;Repository not found&amp;#34;).into_response();&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    match GitCommand::new(&amp;amp;state.config.grasp.git_path, &amp;amp;repo_path)&lt;br/&gt;        .refs(&amp;amp;service, super::utils::contains_git_v2(&amp;amp;headers))&lt;br/&gt;        .await&lt;br/&gt;    {&lt;br/&gt;        Ok(response_body) =&amp;gt; {&lt;br/&gt;            Response::builder()&lt;br/&gt;                .status(StatusCode::OK)&lt;br/&gt;                .header(&lt;br/&gt;                    &amp;#34;Content-Type&amp;#34;,&lt;br/&gt;                    format!(&amp;#34;application/x-git-{}-advertisement&amp;#34;, service.name()),&lt;br/&gt;                )&lt;br/&gt;                .header(&amp;#34;Pragma&amp;#34;, &amp;#34;no-cache&amp;#34;)&lt;br/&gt;                .header(&amp;#34;Cache-Control&amp;#34;, crate::git_server::CACHE_CONTROL_NO_CACHE)&lt;br/&gt;                .header(&amp;#34;Expires&amp;#34;, crate::git_server::EXPIRES_NO_CACHE)&lt;br/&gt;                .body(response_body)&lt;br/&gt;                .expect(&amp;#34;valid response&amp;#34;)&lt;br/&gt;        }&lt;br/&gt;        Err(err_msg) =&amp;gt; (StatusCode::INTERNAL_SERVER_ERROR, err_msg).into_response(),&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsgpaymsye4hfrj79rre744grraaasepegc44hx7hv987a56x56t3szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77rwgvq3</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsgpaymsye4hfrj79rre744grraaasepegc44hx7hv987a56x56t3szyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77rwgvq3" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::path::PathBuf;&lt;br/&gt;&lt;br/&gt;use nostr_database::DatabaseError;&lt;br/&gt;&lt;br/&gt;use crate::relay::GrpcError;&lt;br/&gt;use crate::relay::RhaiPluginsError;&lt;br/&gt;&lt;br/&gt;/// Relay `Result` type&lt;br/&gt;pub type RelayResult&amp;lt;T&amp;gt; = Result&amp;lt;T, RelayError&amp;gt;;&lt;br/&gt;&lt;br/&gt;/// Relay errors&lt;br/&gt;#[derive(Debug, thiserror::Error)]&lt;br/&gt;pub enum RelayError {&lt;br/&gt;    #[error(&amp;#34;IO Error: {0}&amp;#34;)]&lt;br/&gt;    Io(#[from] std::io::Error),&lt;br/&gt;    #[error(&amp;#34;Database error: {0}&amp;#34;)]&lt;br/&gt;    Database(#[from] DatabaseError),&lt;br/&gt;    #[error(&amp;#34;gRPC initialization error: {0}&amp;#34;)]&lt;br/&gt;    Grpc(#[from] GrpcError),&lt;br/&gt;    #[error(&amp;#34;Rhai error: {0}&amp;#34;)]&lt;br/&gt;    Rhai(#[from] RhaiPluginsError),&lt;br/&gt;    #[error(&amp;#34;File system Error: path `{0}` {1}&amp;#34;)]&lt;br/&gt;    Fs(PathBuf, String),&lt;br/&gt;    #[error(&amp;#34;Config error: {0}&amp;#34;)]&lt;br/&gt;    Config(String),&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs8arq0scxhd4amkuj0y8njs7emh0lpmx4mg9tau8zh73ufr0dtklczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77wa632h</id>
    
      <title type="html"># Issue Management Using `n34`, you can manage Git issues stored ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs8arq0scxhd4amkuj0y8njs7emh0lpmx4mg9tau8zh73ufr0dtklczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77wa632h" />
    <content type="html">
      # Issue Management&lt;br/&gt;&lt;br/&gt;Using `n34`, you can manage Git issues stored in Nostr relays, adhering to&lt;br/&gt;the [NIP-34] standard. In Nostr, events are immutable, meaning their IDs are&lt;br/&gt;derived from the SHA-256 hash of their timestamp, content, author, and tags.&lt;br/&gt;As a result, issues cannot be edited directly. However, with `n34`, you can&lt;br/&gt;create new issues, view existing ones, or update their status—such as closing,&lt;br/&gt;resolving, or reopening them.&lt;br/&gt;&lt;br/&gt;[NIP-34] introduces support for drafting issues, though this feature is not&lt;br/&gt;currently implemented in `n34` due to the lack of a clear use case for drafting&lt;br/&gt;issues. The inclusion of this functionality may stem from its shared use in both&lt;br/&gt;issues and patches, suggesting it was primarily designed for patch management.&lt;br/&gt;&lt;br/&gt;[NIP-34]: &lt;a href=&#34;https://github.com/nostr-protocol/nips/blob/master/34.md&#34;&gt;https://github.com/nostr-protocol/nips/blob/master/34.md&lt;/a&gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs8eraucsrq9wqach3ajjalp7608tr3y4g9rg78pmve6zwayzrxsygzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77wvnf8y</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs8eraucsrq9wqach3ajjalp7608tr3y4g9rg78pmve6zwayzrxsygzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77wvnf8y" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::{collections::BTreeSet, sync::Arc};&lt;br/&gt;&lt;br/&gt;use either::Either;&lt;br/&gt;use nostr::{event::Event, filter::Filter, message::MachineReadablePrefix, util::BoxedFuture};&lt;br/&gt;use nostr_relay_builder::builder::{&lt;br/&gt;    QueryPolicy,&lt;br/&gt;    QueryPolicyResult,&lt;br/&gt;    WritePolicy,&lt;br/&gt;    WritePolicyResult,&lt;br/&gt;};&lt;br/&gt;use tonic::transport::Channel;&lt;br/&gt;&lt;br/&gt;use self::plugins_api::{&lt;br/&gt;    Empty,&lt;br/&gt;    PluginInfo,&lt;br/&gt;    PluginPriority,&lt;br/&gt;    PluginRequest,&lt;br/&gt;    PluginType,&lt;br/&gt;    plugin_request::PluginRequestBody,&lt;br/&gt;    plugin_response::PluginResponseBody,&lt;br/&gt;    plugins_service_client::PluginsServiceClient,&lt;br/&gt;};&lt;br/&gt;use crate::{relay::plugins_manager::PluginsManagerTrait, relay_config::RelayConfig};&lt;br/&gt;&lt;br/&gt;mod plugins_api {&lt;br/&gt;    tonic::include_proto!(&amp;#34;plugins&amp;#34;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;type GrpcResult&amp;lt;T&amp;gt; = Result&amp;lt;T, GrpcError&amp;gt;;&lt;br/&gt;type PluginClient = PluginsServiceClient&amp;lt;Channel&amp;gt;;&lt;br/&gt;&lt;br/&gt;/// gRPC errors&lt;br/&gt;#[derive(Debug, thiserror::Error)]&lt;br/&gt;pub enum GrpcError {&lt;br/&gt;    #[error(&amp;#34;Transport: {0:?}&amp;#34;)]&lt;br/&gt;    Transport(#[from] tonic::transport::Error),&lt;br/&gt;    #[error(&amp;#34;Call error: {0}&amp;#34;)]&lt;br/&gt;    CallErr(String),&lt;br/&gt;    #[error(&amp;#34;A plugin service without any plugin {0}&amp;#34;)]&lt;br/&gt;    NoPlugins(hyper::Uri),&lt;br/&gt;    #[error(&amp;#34;Unknown plugin type: {0}&amp;#34;)]&lt;br/&gt;    UnknownPluginType(i32),&lt;br/&gt;    #[error(&amp;#34;Unknown plugin priority: {0}&amp;#34;)]&lt;br/&gt;    UnknownPluginPriority(i32),&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Represents a gRPC plugin.&lt;br/&gt;#[derive(Debug)]&lt;br/&gt;pub struct GrpcPlugin {&lt;br/&gt;    /// The name of the plugin.&lt;br/&gt;    name:     String,&lt;br/&gt;    /// Indicates whether the plugin is for writing or querying.&lt;br/&gt;    is_write: bool,&lt;br/&gt;    /// Plugin priority, `all` or `any`&lt;br/&gt;    is_all:   bool,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Handles gRPC plugin service.&lt;br/&gt;#[derive(Debug)]&lt;br/&gt;pub struct GrpcPluginService {&lt;br/&gt;    /// Service uri&lt;br/&gt;    pub uri:               hyper::Uri,&lt;br/&gt;    /// The gRPC client used to call the `RunPlugin` RPC.&lt;br/&gt;    pub grpc_client:       PluginClient,&lt;br/&gt;    /// Write plugins of type `all`&lt;br/&gt;    pub all_write_plugins: Vec&amp;lt;GrpcPlugin&amp;gt;,&lt;br/&gt;    /// Write plugins of type `any`&lt;br/&gt;    pub any_write_plugins: Vec&amp;lt;GrpcPlugin&amp;gt;,&lt;br/&gt;    /// Query plugins of type `all`&lt;br/&gt;    pub all_query_plugins: Vec&amp;lt;GrpcPlugin&amp;gt;,&lt;br/&gt;    /// Query plugins of type `any`&lt;br/&gt;    pub any_query_plugins: Vec&amp;lt;GrpcPlugin&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Manages multiple gRPC plugin services.&lt;br/&gt;///&lt;br/&gt;/// This is safe to clone as it uses an internal reference counter.&lt;br/&gt;#[derive(Debug, Clone)]&lt;br/&gt;pub struct GrpcPluginsManager {&lt;br/&gt;    /// A collection of gRPC services, each of which contains multiple plugins.&lt;br/&gt;    pub services: Arc&amp;lt;Vec&amp;lt;GrpcPluginService&amp;gt;&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl GrpcPluginService {&lt;br/&gt;    /// Create a new service and connect to it&lt;br/&gt;    pub async fn new(service_uri: hyper::Uri) -&amp;gt; GrpcResult&amp;lt;Self&amp;gt; {&lt;br/&gt;        tracing::debug!(service_uri = %service_uri, &amp;#34;connecting to a plugins service&amp;#34;);&lt;br/&gt;        let mut client = PluginClient::connect(service_uri.clone()).await?;&lt;br/&gt;&lt;br/&gt;        tracing::debug!(service_uri = %service_uri, &amp;#34;calling `GetPlugins` RPC&amp;#34;);&lt;br/&gt;        let mut plugins = client&lt;br/&gt;            .get_plugins(Empty {})&lt;br/&gt;            .await&lt;br/&gt;            .map_err(|err| GrpcError::CallErr(err.to_string()))?&lt;br/&gt;            .into_inner()&lt;br/&gt;            .plugins;&lt;br/&gt;&lt;br/&gt;        // Sort and remove all duplicates&lt;br/&gt;        plugins.sort_unstable_by_key(|plugin| plugin.name.clone());&lt;br/&gt;        plugins.dedup_by_key(|plugin: &amp;amp;mut PluginInfo| plugin.name.clone());&lt;br/&gt;        tracing::debug!(service_uri = %service_uri, &amp;#34;received {} plugins: {plugins:?}&amp;#34;, plugins.len());&lt;br/&gt;&lt;br/&gt;        if plugins.is_empty() {&lt;br/&gt;            return Err(GrpcError::NoPlugins(service_uri));&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        let mut all_write_plugins = Vec::new();&lt;br/&gt;        let mut any_write_plugins = Vec::new();&lt;br/&gt;        let mut all_query_plugins = Vec::new();&lt;br/&gt;        let mut any_query_plugins = Vec::new();&lt;br/&gt;&lt;br/&gt;        for plugin in plugins.into_iter().map(GrpcPlugin::try_from) {&lt;br/&gt;            let plugin = plugin?;&lt;br/&gt;            match (plugin.is_write, plugin.is_all) {&lt;br/&gt;                (true, true) =&amp;gt; all_write_plugins.push(plugin),&lt;br/&gt;                (true, false) =&amp;gt; any_write_plugins.push(plugin),&lt;br/&gt;                (false, true) =&amp;gt; all_query_plugins.push(plugin),&lt;br/&gt;                (false, false) =&amp;gt; any_query_plugins.push(plugin),&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        Ok(Self {&lt;br/&gt;            uri: service_uri,&lt;br/&gt;            grpc_client: client,&lt;br/&gt;            all_write_plugins,&lt;br/&gt;            any_write_plugins,&lt;br/&gt;            all_query_plugins,&lt;br/&gt;            any_query_plugins,&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl GrpcPluginsManager {&lt;br/&gt;    /// Initializes a gRPC plugins manager using the provided services.&lt;br/&gt;    ///&lt;br/&gt;    /// Connects to each service to retrieve its available plugins.&lt;br/&gt;    pub async fn with_services(services: &amp;amp;[hyper::Uri]) -&amp;gt; GrpcResult&amp;lt;Self&amp;gt; {&lt;br/&gt;        let mut manager_services = Vec::new();&lt;br/&gt;&lt;br/&gt;        for service in services {&lt;br/&gt;            manager_services.push(GrpcPluginService::new(service.clone()).await?);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        Ok(Self {&lt;br/&gt;            services: Arc::new(manager_services),&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Gets the manager if gRPC plugins are configured, otherwise returns None.&lt;br/&gt;    /// Logs an error if initialization fails.&lt;br/&gt;    pub async fn maybe_manager(config: &amp;amp;RelayConfig) -&amp;gt; Option&amp;lt;Self&amp;gt; {&lt;br/&gt;        if config.plugins.grpc.is_empty() {&lt;br/&gt;            tracing::info!(&amp;#34;gRPC plugins list is empty, skipping connection&amp;#34;);&lt;br/&gt;            return None;&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        match GrpcPluginsManager::with_services(&amp;amp;config.plugins.grpc).await {&lt;br/&gt;            Ok(manager) =&amp;gt; {&lt;br/&gt;                tracing::info!(&amp;#34;Successfully initialized gRPC plugins manager&amp;#34;);&lt;br/&gt;                Some(manager)&lt;br/&gt;            }&lt;br/&gt;            Err(err) =&amp;gt; {&lt;br/&gt;                tracing::error!(&amp;#34;Failed to initialize gRPC plugins. Error: {}&amp;#34;, err);&lt;br/&gt;                None&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl GrpcPlugin {&lt;br/&gt;    /// Run the plugin&lt;br/&gt;    pub async fn run(&lt;br/&gt;        &amp;amp;self,&lt;br/&gt;        uri: &amp;amp;hyper::Uri,&lt;br/&gt;        client: &amp;amp;mut PluginClient,&lt;br/&gt;        body: Either&amp;lt;&amp;amp;Event, &amp;amp;Filter&amp;gt;,&lt;br/&gt;    ) -&amp;gt; Result&amp;lt;(), String&amp;gt; {&lt;br/&gt;        let request = if self.is_write {&lt;br/&gt;            assert!(body.is_left());&lt;br/&gt;            write_plugin_request(&amp;amp;self.name, body.unwrap_left())&lt;br/&gt;        } else {&lt;br/&gt;            assert!(body.is_right());&lt;br/&gt;            query_plugin_request(&amp;amp;self.name, body.unwrap_right().clone())&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        match client&lt;br/&gt;            .run_plugin(request)&lt;br/&gt;            .await&lt;br/&gt;            .map(|r| r.into_inner().plugin_response_body)&lt;br/&gt;        {&lt;br/&gt;            Ok(Some(PluginResponseBody::Accept(..))) =&amp;gt; Ok(()),&lt;br/&gt;            Ok(Some(PluginResponseBody::RejectMsg(msg))) =&amp;gt; Err(msg),&lt;br/&gt;            Ok(None) =&amp;gt; {&lt;br/&gt;                tracing::warn!(service_uri = %uri, plugin_name = %self.name, &amp;#34;plugin returns none body&amp;#34;);&lt;br/&gt;                Ok(())&lt;br/&gt;            }&lt;br/&gt;            Err(err) =&amp;gt; {&lt;br/&gt;                tracing::error!(service_uri = %uri, plugin_name = %self.name, &amp;#34;plugin returns error: {err:?}&amp;#34;);&lt;br/&gt;                Ok(())&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl GrpcPluginService {&lt;br/&gt;    /// Executes the provided `all_plugins` and `any_plugins` with the given&lt;br/&gt;    /// `body`.&lt;br/&gt;    ///&lt;br/&gt;    /// The `all_plugins` must all accept the `body` (either an `Event` or&lt;br/&gt;    /// `Filter`). If they do, the `any_plugins` are then checked. If at&lt;br/&gt;    /// least one `any_plugin` accepts the `body`, the function returns&lt;br/&gt;    /// `Ok(())`. Otherwise, it returns an `Err` with the rejection message&lt;br/&gt;    /// from the first `any_plugin` that rejected the `body`.&lt;br/&gt;    async fn run_plugins(&lt;br/&gt;        &amp;amp;self,&lt;br/&gt;        body: Either&amp;lt;&amp;amp;Event, &amp;amp;Filter&amp;gt;,&lt;br/&gt;        all_plugins: &amp;amp;[GrpcPlugin],&lt;br/&gt;        any_plugins: &amp;amp;[GrpcPlugin],&lt;br/&gt;    ) -&amp;gt; Result&amp;lt;(), String&amp;gt; {&lt;br/&gt;        if all_plugins.is_empty() &amp;amp;&amp;amp; any_plugins.is_empty() {&lt;br/&gt;            return Ok(());&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        let mut client = self.grpc_client.clone();&lt;br/&gt;&lt;br/&gt;        // All `all_plugins` must accept the `body` to proceed.&lt;br/&gt;        for plugin in all_plugins {&lt;br/&gt;            plugin.run(&amp;amp;self.uri, &amp;amp;mut client, body).await?&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // If there are no `any_plugins`, the `body` is accepted.&lt;br/&gt;        if any_plugins.is_empty() {&lt;br/&gt;            return Ok(());&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        let mut reject_msg = None;&lt;br/&gt;        for plugin in any_plugins {&lt;br/&gt;            match plugin.run(&amp;amp;self.uri, &amp;amp;mut client, body).await {&lt;br/&gt;                // If any `any_plugin` accepts the `body`, return `Ok(())`.&lt;br/&gt;                Ok(()) =&amp;gt; return Ok(()),&lt;br/&gt;                // Store the rejection message from the first `any_plugin` that rejects the `body`.&lt;br/&gt;                Err(msg) if reject_msg.is_none() =&amp;gt; reject_msg = Some(msg),&lt;br/&gt;                _ =&amp;gt; (),&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // If no `any_plugin` accepts the `body`, return the first rejection message.&lt;br/&gt;        Err(reject_msg.unwrap())&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Executes the write plugins for the given `event`.&lt;br/&gt;    ///&lt;br/&gt;    /// Returns `Ok(())` if all `all_plugins` accept the `event` and at least&lt;br/&gt;    /// one `any_plugin` accepts it. Otherwise, returns `Err(reject_msg)`&lt;br/&gt;    /// with the rejection message.&lt;br/&gt;    pub async fn run_write_plugins(&amp;amp;self, event: &amp;amp;Event) -&amp;gt; Result&amp;lt;(), String&amp;gt; {&lt;br/&gt;        self.run_plugins(&lt;br/&gt;            Either::Left(event),&lt;br/&gt;            &amp;amp;self.all_write_plugins,&lt;br/&gt;            &amp;amp;self.any_write_plugins,&lt;br/&gt;        )&lt;br/&gt;        .await&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Executes the query plugins for the given `event`.&lt;br/&gt;    ///&lt;br/&gt;    /// Returns `Ok(())` if all `all_plugins` accept the `event` and at least&lt;br/&gt;    /// one `any_plugin` accepts it. Otherwise, returns `Err(reject_msg)`&lt;br/&gt;    /// with the rejection message.&lt;br/&gt;    pub async fn run_query_plugins(&amp;amp;self, query: &amp;amp;Filter) -&amp;gt; Result&amp;lt;(), String&amp;gt; {&lt;br/&gt;        self.run_plugins(&lt;br/&gt;            Either::Right(query),&lt;br/&gt;            &amp;amp;self.all_query_plugins,&lt;br/&gt;            &amp;amp;self.any_query_plugins,&lt;br/&gt;        )&lt;br/&gt;        .await&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl TryFrom&amp;lt;PluginInfo&amp;gt; for GrpcPlugin {&lt;br/&gt;    type Error = GrpcError;&lt;br/&gt;&lt;br/&gt;    fn try_from(plugin: PluginInfo) -&amp;gt; Result&amp;lt;Self, Self::Error&amp;gt; {&lt;br/&gt;        tracing::debug!(&lt;br/&gt;            plugin_name = %plugin.name,&lt;br/&gt;            plugin_type = %plugin.plugin_type,&lt;br/&gt;            plugin_priority = %plugin.priority,&lt;br/&gt;            &amp;#34;processing plugin info&amp;#34;&lt;br/&gt;        );&lt;br/&gt;&lt;br/&gt;        let is_write = PluginType::try_from(plugin.plugin_type)&lt;br/&gt;            .map_err(|_| GrpcError::UnknownPluginType(plugin.plugin_type))?&lt;br/&gt;            == PluginType::Write;&lt;br/&gt;&lt;br/&gt;        let is_all = PluginPriority::try_from(plugin.priority)&lt;br/&gt;            .map_err(|_| GrpcError::UnknownPluginPriority(plugin.priority))?&lt;br/&gt;            == PluginPriority::All;&lt;br/&gt;&lt;br/&gt;        Ok(Self {&lt;br/&gt;            name: plugin.name,&lt;br/&gt;            is_write,&lt;br/&gt;            is_all,&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl WritePolicy for GrpcPluginsManager {&lt;br/&gt;    fn admit_event&amp;lt;&amp;#39;a&amp;gt;(&lt;br/&gt;        &amp;amp;&amp;#39;a self,&lt;br/&gt;        event: &amp;amp;&amp;#39;a Event,&lt;br/&gt;        _: &amp;amp;&amp;#39;a std::net::SocketAddr,&lt;br/&gt;    ) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, WritePolicyResult&amp;gt; {&lt;br/&gt;        Box::pin(async {&lt;br/&gt;            for service in self.services.iter() {&lt;br/&gt;                if let Err(reject_msg) = service.run_write_plugins(event).await {&lt;br/&gt;                    tracing::debug!(service_url = %service.uri, &amp;#34;event rejected: {}&amp;#34;, event.id);&lt;br/&gt;                    return WritePolicyResult::reject(MachineReadablePrefix::Blocked, reject_msg);&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            WritePolicyResult::Accept&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl QueryPolicy for GrpcPluginsManager {&lt;br/&gt;    fn admit_query&amp;lt;&amp;#39;a&amp;gt;(&lt;br/&gt;        &amp;amp;&amp;#39;a self,&lt;br/&gt;        query: &amp;amp;&amp;#39;a Filter,&lt;br/&gt;        _: &amp;amp;&amp;#39;a std::net::SocketAddr,&lt;br/&gt;    ) -&amp;gt; BoxedFuture&amp;lt;&amp;#39;a, QueryPolicyResult&amp;gt; {&lt;br/&gt;        Box::pin(async move {&lt;br/&gt;            for service in self.services.iter() {&lt;br/&gt;                if let Err(reject_msg) = service.run_query_plugins(query).await {&lt;br/&gt;                    tracing::debug!(service_url = %service.uri, &amp;#34;query rejected: {query:?}&amp;#34;);&lt;br/&gt;                    return QueryPolicyResult::reject(MachineReadablePrefix::Blocked, reject_msg);&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            QueryPolicyResult::Accept&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl PluginsManagerTrait for GrpcPluginsManager {}&lt;br/&gt;&lt;br/&gt;/// Make a new write plugin request&lt;br/&gt;fn write_plugin_request(plugin_name: &amp;amp;str, event: &amp;amp;Event) -&amp;gt; PluginRequest {&lt;br/&gt;    let tags = event&lt;br/&gt;        .tags&lt;br/&gt;        .iter()&lt;br/&gt;        .map(|tag| {&lt;br/&gt;            plugins_api::Tag {&lt;br/&gt;                tag_kind: tag.kind().as_str().to_owned(),&lt;br/&gt;                values:   tag.as_slice()[1..].to_vec(),&lt;br/&gt;            }&lt;br/&gt;        })&lt;br/&gt;        .collect();&lt;br/&gt;&lt;br/&gt;    PluginRequest {&lt;br/&gt;        plugin_name:         plugin_name.to_owned(),&lt;br/&gt;        plugin_request_body: Some(PluginRequestBody::Event(plugins_api::Event {&lt;br/&gt;            tags,&lt;br/&gt;            id: event.id.to_hex(),&lt;br/&gt;            public_key: event.pubkey.to_hex(),&lt;br/&gt;            created_at: event.created_at.as_secs(),&lt;br/&gt;            kind: event.kind.as_u16() as u32,&lt;br/&gt;            content: event.content.clone(),&lt;br/&gt;            signature: event.sig.to_string(),&lt;br/&gt;        })),&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Make a new query plugin request&lt;br/&gt;fn query_plugin_request(plugin_name: &amp;amp;str, filter: Filter) -&amp;gt; PluginRequest {&lt;br/&gt;    let tags = filter&lt;br/&gt;        .generic_tags&lt;br/&gt;        .iter()&lt;br/&gt;        .map(|(tag, values)| {&lt;br/&gt;            plugins_api::Tag {&lt;br/&gt;                tag_kind: tag.as_str().to_owned(),&lt;br/&gt;                values:   values.clone().into_iter().collect(),&lt;br/&gt;            }&lt;br/&gt;        })&lt;br/&gt;        .collect();&lt;br/&gt;&lt;br/&gt;    PluginRequest {&lt;br/&gt;        plugin_name:         plugin_name.to_owned(),&lt;br/&gt;        plugin_request_body: Some(PluginRequestBody::Filter(plugins_api::Filter {&lt;br/&gt;            tags,&lt;br/&gt;            ids: map_set(filter.ids, |id| id.to_hex()),&lt;br/&gt;            authors: map_set(filter.authors, |pkey| pkey.to_hex()),&lt;br/&gt;            kinds: map_set(filter.kinds, |kind| kind.as_u16() as u32),&lt;br/&gt;            since: filter.since.map(|t| t.as_secs()),&lt;br/&gt;            until: filter.until.map(|t| t.as_secs()),&lt;br/&gt;            limit: filter&lt;br/&gt;                .limit&lt;br/&gt;                .map(|limit| limit.try_into().unwrap_or(u64::MAX)),&lt;br/&gt;        })),&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;fn map_set&amp;lt;T, R&amp;gt;(option_set: Option&amp;lt;BTreeSet&amp;lt;T&amp;gt;&amp;gt;, map_fn: impl FnMut(T) -&amp;gt; R) -&amp;gt; Vec&amp;lt;R&amp;gt; {&lt;br/&gt;    option_set&lt;br/&gt;        .map(|set| set.into_iter().map(map_fn).collect())&lt;br/&gt;        .unwrap_or_default()&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs8ka7pvj57zhp94m2wq87lpydfz7ylc574zvjp563nu4glygwu8ggzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77hx73xp</id>
    
      <title type="html">&amp;lt;svg width=&amp;#34;38&amp;#34; height=&amp;#34;38&amp;#34; viewBox=&amp;#34;0 0 ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs8ka7pvj57zhp94m2wq87lpydfz7ylc574zvjp563nu4glygwu8ggzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77hx73xp" />
    <content type="html">
      &amp;lt;svg width=&amp;#34;38&amp;#34; height=&amp;#34;38&amp;#34; viewBox=&amp;#34;0 0 38 38&amp;#34; fill=&amp;#34;none&amp;#34; xmlns=&amp;#34;&lt;a href=&#34;http://www.w3.org/2000/svg&amp;#34;&amp;gt&#34;&gt;http://www.w3.org/2000/svg&amp;#34;&amp;gt&lt;/a&gt;;&lt;br/&gt;&amp;lt;path d=&amp;#34;M29.0764 15.6124C30.5211 16.836 31.101 18.8009 30.5527 20.6129L28.443 27.5849C28.2911 28.087 27.7609 28.3709 27.2588 28.219C26.7566 28.067 26.4727 27.5369 26.6247 27.0347L28.7343 20.0626C29.0633 18.9754 28.7151 17.7966 27.8483 17.0625L19.9348 10.3598L19.9348 22.3223C19.9348 22.847 19.5094 23.2723 18.9848 23.2723C18.4765 23.2723 18.0614 22.8732 18.0359 22.3712L18.0348 22.3223L18.0348 10.3431L10.1625 17.0108C9.27738 17.7605 8.92888 18.9867 9.27185 20.1289C9.97826 22.4813 10.4326 24.3067 11.3354 27.0087C11.5016 27.5064 11.233 28.0446 10.7353 28.2108C10.2377 28.3771 9.6995 28.1085 9.53324 27.6108C8.62079 24.8798 8.13033 22.9339 7.4521 20.6753C6.90122 18.8407 7.44801 16.8201 8.93462 15.561L18.0348 7.85311V0C18.5095 0.000463867 18.4596 0.000802736 18.9843 0.000802736C19.509 0.000802781 19.5783 0 19.9348 1.69873e-07V7.86981L29.0764 15.6124Z&amp;#34; fill=&amp;#34;white&amp;#34;/&amp;gt;&lt;br/&gt;&amp;lt;path d=&amp;#34;M30.6218 27.3098C30.6218 29.1461 29.1331 30.6348 27.2968 30.6348C25.4605 30.6348 23.9718 29.1461 23.9718 27.3098C23.9718 25.4734 25.4605 23.9848 27.2968 23.9848C29.1331 23.9848 30.6218 25.4734 30.6218 27.3098Z&amp;#34; fill=&amp;#34;white&amp;#34;/&amp;gt;&lt;br/&gt;&amp;lt;path d=&amp;#34;M13.9968 27.3098C13.9968 29.1461 12.5081 30.6348 10.6718 30.6348C8.83545 30.6348 7.3468 29.1461 7.3468 27.3098C7.3468 25.4734 8.83545 23.9848 10.6718 23.9848C12.5081 23.9848 13.9968 25.4734 13.9968 27.3098Z&amp;#34; fill=&amp;#34;white&amp;#34;/&amp;gt;&lt;br/&gt;&amp;lt;path d=&amp;#34;M22.3093 9.02228C22.3093 10.8586 20.8206 12.3473 18.9843 12.3473C17.148 12.3473 15.6593 10.8586 15.6593 9.02228C15.6593 7.18594 17.148 5.69729 18.9843 5.69729C20.8206 5.69729 22.3093 7.18594 22.3093 9.02228Z&amp;#34; fill=&amp;#34;white&amp;#34;/&amp;gt;&lt;br/&gt;&amp;lt;path d=&amp;#34;M21.8343 21.6098C21.8343 23.1838 20.5583 24.4598 18.9843 24.4598C17.4103 24.4598 16.1343 23.1838 16.1343 21.6098C16.1343 20.0358 17.4103 18.7598 18.9843 18.7598C20.5583 18.7598 21.8343 20.0358 21.8343 21.6098Z&amp;#34; fill=&amp;#34;white&amp;#34;/&amp;gt;&lt;br/&gt;&amp;lt;/svg&amp;gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs8npeqddyjukadja8tddhlwu2l5a6tvdtsrakxv8w7nnxt74eye6czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk772yhs5l</id>
    
      <title type="html">/// deterministic nostr event build example // deterministic ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs8npeqddyjukadja8tddhlwu2l5a6tvdtsrakxv8w7nnxt74eye6czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk772yhs5l" />
    <content type="html">
      /// deterministic nostr event build example&lt;br/&gt;// deterministic nostr event build example&lt;br/&gt;use get_file_hash_core::get_file_hash;&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;use get_file_hash_core::{get_git_tracked_files, DEFAULT_GNOSTR_KEY, DEFAULT_PICTURE_URL, DEFAULT_BANNER_URL, publish_nostr_event_if_release, get_repo_announcement_event};&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;use nostr_sdk::{EventBuilder, Keys, Tag, SecretKey};&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;use std::fs;&lt;br/&gt;&lt;br/&gt;use std::path::PathBuf;&lt;br/&gt;use sha2::{Digest, Sha256};&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;use ::hex;&lt;br/&gt;&lt;br/&gt;#[tokio::main]&lt;br/&gt;async fn main() {&lt;br/&gt;    let manifest_dir = std::env::var(&amp;#34;CARGO_MANIFEST_DIR&amp;#34;).unwrap();&lt;br/&gt;    let is_git_repo = std::path::Path::new(&amp;amp;manifest_dir).join(&amp;#34;.git&amp;#34;).exists();&lt;br/&gt;    #[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;	#[allow(unused_mut)]&lt;br/&gt;    let mut git_branch_str = String::new();&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=CARGO_PKG_NAME={}&amp;#34;, env!(&amp;#34;CARGO_PKG_NAME&amp;#34;));&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=CARGO_PKG_VERSION={}&amp;#34;, env!(&amp;#34;CARGO_PKG_VERSION&amp;#34;));&lt;br/&gt;&lt;br/&gt;    if is_git_repo {&lt;br/&gt;        let git_commit_hash_output = std::process::Command::new(&amp;#34;git&amp;#34;)&lt;br/&gt;            .args(&amp;amp;[&amp;#34;rev-parse&amp;#34;, &amp;#34;HEAD&amp;#34;])&lt;br/&gt;            .stdout(std::process::Stdio::piped())&lt;br/&gt;            .stderr(std::process::Stdio::piped())&lt;br/&gt;            .output()&lt;br/&gt;            .expect(&amp;#34;Failed to execute git command for commit hash&amp;#34;);&lt;br/&gt;&lt;br/&gt;        let git_commit_hash_str = if git_commit_hash_output.status.success() &amp;amp;&amp;amp; !git_commit_hash_output.stdout.is_empty() {&lt;br/&gt;            String::from_utf8(git_commit_hash_output.stdout).unwrap().trim().to_string()&lt;br/&gt;        } else {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Git commit hash command failed or returned empty. Status: {:?}, Stderr: {}&amp;#34;, &lt;br/&gt;                     git_commit_hash_output.status, String::from_utf8_lossy(&amp;amp;git_commit_hash_output.stderr));&lt;br/&gt;            String::new()&lt;br/&gt;        };&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_COMMIT_HASH={}&amp;#34;, git_commit_hash_str);&lt;br/&gt;&lt;br/&gt;        let git_branch_output = std::process::Command::new(&amp;#34;git&amp;#34;)&lt;br/&gt;            .args(&amp;amp;[&amp;#34;rev-parse&amp;#34;, &amp;#34;--abbrev-ref&amp;#34;, &amp;#34;HEAD&amp;#34;])&lt;br/&gt;            .stdout(std::process::Stdio::piped())&lt;br/&gt;            .stderr(std::process::Stdio::piped())&lt;br/&gt;            .output()&lt;br/&gt;            .expect(&amp;#34;Failed to execute git command for branch name&amp;#34;);&lt;br/&gt;&lt;br/&gt;        let git_branch_str = if git_branch_output.status.success() &amp;amp;&amp;amp; !git_branch_output.stdout.is_empty() {&lt;br/&gt;            String::from_utf8(git_branch_output.stdout).unwrap().trim().to_string()&lt;br/&gt;        } else {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Git branch command failed or returned empty. Status: {:?}, Stderr: {}&amp;#34;, &lt;br/&gt;                     git_branch_output.status, String::from_utf8_lossy(&amp;amp;git_branch_output.stderr));&lt;br/&gt;            String::new()&lt;br/&gt;        };&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_BRANCH={}&amp;#34;, git_branch_str);&lt;br/&gt;    } else {&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_COMMIT_HASH=&amp;#34;);&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_BRANCH=&amp;#34;);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;cargo:rerun-if-changed=.git/HEAD&amp;#34;);&lt;br/&gt;&lt;br/&gt;    //#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;    //let relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;&lt;br/&gt;    let cargo_toml_hash = get_file_hash!(&amp;#34;../Cargo.toml&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=CARGO_TOML_HASH={}&amp;#34;, cargo_toml_hash);&lt;br/&gt;&lt;br/&gt;    let lib_hash = get_file_hash!(&amp;#34;../src/lib.rs&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=LIB_HASH={}&amp;#34;, lib_hash);&lt;br/&gt;&lt;br/&gt;    let build_hash = get_file_hash!(&amp;#34;../build.rs&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=BUILD_HASH={}&amp;#34;, build_hash);&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;cargo:rerun-if-changed=Cargo.toml&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rerun-if-changed=src/lib.rs&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rerun-if-changed=build.rs&amp;#34;);&lt;br/&gt;    let online_relays_csv_path = PathBuf::from(&amp;amp;manifest_dir).join(&amp;#34;src/get_file_hash_core/src/online_relays_gps.csv&amp;#34;);&lt;br/&gt;    if online_relays_csv_path.exists() {&lt;br/&gt;        println!(&amp;#34;cargo:rerun-if-changed={}&amp;#34;, online_relays_csv_path.to_str().unwrap());&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;    if cfg!(not(debug_assertions)) {&lt;br/&gt;        println!(&amp;#34;cargo:warning=Nostr feature enabled: Build may take longer due to network operations (publishing events to relays).&amp;#34;);&lt;br/&gt;&lt;br/&gt;        // This code only runs in release builds&lt;br/&gt;        let package_version = std::env::var(&amp;#34;CARGO_PKG_VERSION&amp;#34;).unwrap();&lt;br/&gt;&lt;br/&gt;        let output_dir = PathBuf::from(format!(&amp;#34;.gnostr/build/{}&amp;#34;, package_version));&lt;br/&gt;        if let Err(e) = fs::create_dir_all(&amp;amp;output_dir) {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Failed to create output directory {}: {}&amp;#34;, output_dir.display(), e);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        let files_to_publish: Vec&amp;lt;String&amp;gt; = get_git_tracked_files(&amp;amp;PathBuf::from(&amp;amp;manifest_dir));&lt;br/&gt;&lt;br/&gt;        let git_commit_hash_output = std::process::Command::new(&amp;#34;git&amp;#34;)&lt;br/&gt;            .args(&amp;amp;[&amp;#34;rev-parse&amp;#34;, &amp;#34;HEAD&amp;#34;])&lt;br/&gt;            .stdout(std::process::Stdio::piped())&lt;br/&gt;            .stderr(std::process::Stdio::piped())&lt;br/&gt;            .output()&lt;br/&gt;            .expect(&amp;#34;Failed to execute git command for commit hash&amp;#34;);&lt;br/&gt;&lt;br/&gt;        let git_commit_hash_str = if git_commit_hash_output.status.success() &amp;amp;&amp;amp; !git_commit_hash_output.stdout.is_empty() {&lt;br/&gt;            String::from_utf8(git_commit_hash_output.stdout).unwrap().trim().to_string()&lt;br/&gt;        } else {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Git commit hash command failed or returned empty. Status: {:?}, Stderr: {}&amp;#34;, &lt;br/&gt;                     git_commit_hash_output.status, String::from_utf8_lossy(&amp;amp;git_commit_hash_output.stderr));&lt;br/&gt;            String::new()&lt;br/&gt;        };&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_COMMIT_HASH={}&amp;#34;, git_commit_hash_str);&lt;br/&gt;        // Create padded_commit_hash&lt;br/&gt;        let padded_commit_hash = format!(&amp;#34;{:0&amp;gt;64}&amp;#34;, &amp;amp;git_commit_hash_str);&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=PADDED_COMMIT_HASH={}&amp;#34;, padded_commit_hash);&lt;br/&gt;        // Initialize client and keys once&lt;br/&gt;        let initial_secret_key = SecretKey::parse(&amp;amp;padded_commit_hash).expect(&amp;#34;Failed to create Nostr SecretKey from PADDED_COMMIT_HASH&amp;#34;);&lt;br/&gt;        let initial_keys = Keys::new(initial_secret_key);&lt;br/&gt;        let mut client = nostr_sdk::Client::new(initial_keys.clone());&lt;br/&gt;        let mut relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;&lt;br/&gt;        // Add relays to the client&lt;br/&gt;        for relay_url in relay_urls.iter() {&lt;br/&gt;            if let Err(e) = client.add_relay(relay_url).await {&lt;br/&gt;                println!(&amp;#34;cargo:warning=Failed to add relay {}: {}&amp;#34;, relay_url, e);&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;        client.connect().await;&lt;br/&gt;        println!(&amp;#34;cargo:warning=Added and connected to {} relays.&amp;#34;, relay_urls.len());&lt;br/&gt;&lt;br/&gt;        let mut published_event_ids: Vec&amp;lt;Tag&amp;gt; = Vec::new();&lt;br/&gt;        let mut total_bytes_sent: usize = 0;&lt;br/&gt;    &lt;br/&gt;        for file_path_str in &amp;amp;files_to_publish {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Processing file: {}&amp;#34;, file_path_str);&lt;br/&gt;            match fs::read(file_path_str) {&lt;br/&gt;                Ok(bytes) =&amp;gt; {&lt;br/&gt;                    let mut hasher = Sha256::new();&lt;br/&gt;                    hasher.update(&amp;amp;bytes);&lt;br/&gt;                    let result = hasher.finalize();&lt;br/&gt;                    let file_hash_hex = hex::encode(result);&lt;br/&gt;&lt;br/&gt;                    match SecretKey::from_hex(&amp;amp;file_hash_hex.clone()) {&lt;br/&gt;                        Ok(secret_key) =&amp;gt; {&lt;br/&gt;                            let keys = Keys::new(secret_key);&lt;br/&gt;                            let content = String::from_utf8_lossy(&amp;amp;bytes).into_owned();&lt;br/&gt;                            let tags = vec![&lt;br/&gt;                                Tag::parse([&amp;#34;file&amp;#34;, file_path_str].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                                Tag::parse([&amp;#34;version&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                            ];&lt;br/&gt;                            let event_builder = EventBuilder::text_note(content).tags(tags);&lt;br/&gt;&lt;br/&gt;                            if let Some(event_id) = publish_nostr_event_if_release(&amp;amp;mut client, file_hash_hex, keys.clone(), event_builder, &amp;amp;mut relay_urls, file_path_str, &amp;amp;output_dir, &amp;amp;mut total_bytes_sent).await {&lt;br/&gt;                                published_event_ids.push(Tag::event(event_id));&lt;br/&gt;                            }&lt;br/&gt;&lt;br/&gt;                            // Publish metadata event&lt;br/&gt;                            get_file_hash_core::publish_metadata_event(&lt;br/&gt;                                &amp;amp;keys,&lt;br/&gt;                                &amp;amp;relay_urls,&lt;br/&gt;                                DEFAULT_PICTURE_URL,&lt;br/&gt;                                DEFAULT_BANNER_URL,&lt;br/&gt;                                file_path_str,&lt;br/&gt;                            ).await;&lt;br/&gt;                        }&lt;br/&gt;                        Err(e) =&amp;gt; {&lt;br/&gt;                            println!(&amp;#34;cargo:warning=Failed to derive Nostr secret key for {}: {}&amp;#34;, file_path_str, e);&lt;br/&gt;                        }&lt;br/&gt;                    }&lt;br/&gt;                }&lt;br/&gt;                Err(e) =&amp;gt; {&lt;br/&gt;                    println!(&amp;#34;cargo:warning=Failed to read file {}: {}&amp;#34;, file_path_str, e);&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // Create and publish the build_manifest&lt;br/&gt;        if !published_event_ids.is_empty() {&lt;br/&gt;&lt;br/&gt;            //TODO this will be either the default or detected from env vars PRIVATE_KEY&lt;br/&gt;            let keys = Keys::new(SecretKey::from_hex(DEFAULT_GNOSTR_KEY).expect(&amp;#34;Failed to create Nostr keys from DEFAULT_GNOSTR_KEY&amp;#34;));&lt;br/&gt;            let cloned_keys = keys.clone();&lt;br/&gt;            let content = format!(&amp;#34;Build manifest for get_file_hash v{}&amp;#34;, package_version);&lt;br/&gt;            let mut tags = vec![&lt;br/&gt;                Tag::parse([&amp;#34;build_manifest&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                Tag::parse([&amp;#34;build_manifest&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                Tag::parse([&amp;#34;build_manifest&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                Tag::parse([&amp;#34;build_manifest&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;            ];&lt;br/&gt;            tags.extend(published_event_ids);&lt;br/&gt;&lt;br/&gt;            let event_builder = EventBuilder::text_note(content.clone()).tags(tags);&lt;br/&gt;&lt;br/&gt;            if let Some(event_id) = publish_nostr_event_if_release(&lt;br/&gt;                &amp;amp;mut client,&lt;br/&gt;                hex::encode(Sha256::digest(content.as_bytes())),&lt;br/&gt;                keys,&lt;br/&gt;                event_builder,&lt;br/&gt;                &amp;amp;mut relay_urls,&lt;br/&gt;                &amp;#34;build_manifest.json&amp;#34;,&lt;br/&gt;                &amp;amp;output_dir,&lt;br/&gt;                &amp;amp;mut total_bytes_sent,&lt;br/&gt;            ).await {&lt;br/&gt;&lt;br/&gt;                let build_manifest_event_id = Some(event_id);&lt;br/&gt;&lt;br/&gt;            // Publish metadata event for the build manifest&lt;br/&gt;            get_file_hash_core::publish_metadata_event(&lt;br/&gt;                &amp;amp;cloned_keys, // Use reference to cloned keys here&lt;br/&gt;                &amp;amp;relay_urls,&lt;br/&gt;                DEFAULT_PICTURE_URL,&lt;br/&gt;                DEFAULT_BANNER_URL,&lt;br/&gt;                &amp;amp;format!(&amp;#34;build_manifest:{}&amp;#34;, package_version),&lt;br/&gt;            ).await;&lt;br/&gt;            let git_commit_hash = &amp;amp;git_commit_hash_str;&lt;br/&gt;            let git_branch = &amp;amp;git_branch_str;&lt;br/&gt;            let repo_url = std::env::var(&amp;#34;CARGO_PKG_REPOSITORY&amp;#34;).unwrap();&lt;br/&gt;            let repo_name = std::env::var(&amp;#34;CARGO_PKG_NAME&amp;#34;).unwrap();&lt;br/&gt;            let repo_description = std::env::var(&amp;#34;CARGO_PKG_DESCRIPTION&amp;#34;).unwrap();&lt;br/&gt;&lt;br/&gt;            let output_dir = PathBuf::from(format!(&amp;#34;.gnostr/build/{}&amp;#34;, package_version));&lt;br/&gt;            if let Err(e) = fs::create_dir_all(&amp;amp;output_dir) {&lt;br/&gt;                println!(&amp;#34;cargo:warning=Failed to create output directory {}: {}&amp;#34;, output_dir.display(), e);&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            let announcement_keys = Keys::new(SecretKey::from_hex(build_manifest_event_id.unwrap().to_hex().as_str()).expect(&amp;#34;Failed to create Nostr keys from build_manifest_event_id&amp;#34;));&lt;br/&gt;            let announcement_pubkey_hex = announcement_keys.public_key().to_string();&lt;br/&gt;&lt;br/&gt;            // Publish NIP-34 Repository Announcement&lt;br/&gt;            if let Some(_event_id) = get_repo_announcement_event(&lt;br/&gt;                &amp;amp;mut client,&lt;br/&gt;                &amp;amp;announcement_keys,&lt;br/&gt;                &amp;amp;relay_urls,&lt;br/&gt;                &amp;amp;repo_url,&lt;br/&gt;                &amp;amp;repo_name,&lt;br/&gt;                &amp;amp;repo_description,&lt;br/&gt;                &amp;amp;git_commit_hash,&lt;br/&gt;                &amp;amp;git_branch,&lt;br/&gt;                &amp;amp;output_dir,&lt;br/&gt;                &amp;amp;announcement_pubkey_hex&lt;br/&gt;            ).await {&lt;br/&gt;                // Successfully published announcement&lt;br/&gt;            }&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;        println!(&amp;#34;cargo:warning=Total bytes sent to Nostr relays: {} bytes ({} MB)&amp;#34;, total_bytes_sent, total_bytes_sent as f64 / 1024.0 / 1024.0);&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;// deterministic nostr event build example&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs8w0846lgq8l29ppcnmmuumh3584ttskm623z0rzxl8ht0clu0ttczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77maagtg</id>
    
      <title type="html"># Broadcast and Update a Git Repository &amp;gt; `n34 repo announce` ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs8w0846lgq8l29ppcnmmuumh3584ttskm623z0rzxl8ht0clu0ttczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77maagtg" />
    <content type="html">
      # Broadcast and Update a Git Repository&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 repo announce` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Broadcast and update a git repository&lt;br/&gt;&lt;br/&gt;Usage: n34 repo announce [OPTIONS] --id &amp;lt;REPO_ID&amp;gt;&lt;br/&gt;&lt;br/&gt;Options:&lt;br/&gt;      --id &amp;lt;REPO_ID&amp;gt;               Unique identifier for the repository in kebab-case&lt;br/&gt;  -n, --name &amp;lt;NAME&amp;gt;                A name for the repository&lt;br/&gt;  -d, --description &amp;lt;DESCRIPTION&amp;gt;  A description for the repository&lt;br/&gt;  -w, --web &amp;lt;WEB&amp;gt;                  Webpage URLs for the repository (if provided by the git server)&lt;br/&gt;  -c, --clone &amp;lt;CLONE&amp;gt;              URLs for cloning the repository&lt;br/&gt;  -m, --maintainers &amp;lt;MAINTAINERS&amp;gt;  Additional maintainers of the repository (besides yourself)&lt;br/&gt;  -l, --label &amp;lt;LABEL&amp;gt;              Labels to categorize the repository. Can be specified multiple times&lt;br/&gt;      --force-id                   Skip kebab-case validation for the repository ID&lt;br/&gt;      --address-file               If set, creates a `nostr-address` file to enable automatic address discovery by n34&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;This command generates an announcement event to publish your project. It can be&lt;br/&gt;used to announce a new repository or update an existing one.&lt;br/&gt;&lt;br/&gt;When updating, you must resubmit all repository fields, not just the fields&lt;br/&gt;you wish to change. The command uses this information to build and publish a&lt;br/&gt;completely new announcement event that will replace the old one.&lt;br/&gt;&lt;br/&gt;It is recommended to use the `--address-file` flag. This option creates&lt;br/&gt;a `nostr-address` file that enables `n34` to automatically discover the&lt;br/&gt;repository&amp;#39;s address, simplifying the workflow for contributors.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs8vnpualkkg0cnhsz24708getjscp7vszj7f3zaw85renmmq7qkfczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77hentl0</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] use frost_secp256k1_tr as ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs8vnpualkkg0cnhsz24708getjscp7vszj7f3zaw85renmmq7qkfczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77hentl0" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use frost_secp256k1_tr as frost; // MUST use the -tr variant for BIP-340/Nostr&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use rand::thread_rng;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use serde_json::json;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use sha2::{Digest, Sha256};&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use std::collections::BTreeMap;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use hex;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    let mut rng = thread_rng();&lt;br/&gt;    let (max_signers, min_signers) = (3, 2);&lt;br/&gt;&lt;br/&gt;    // 1. Setup Nostr Event Metadata&lt;br/&gt;    let pubkey_hex = &amp;#34;79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798&amp;#34;; // Example&lt;br/&gt;    let created_at = 1712050000;&lt;br/&gt;    let kind = 1;&lt;br/&gt;    let content = &amp;#34;Hello from ROAST threshold signatures!&amp;#34;;&lt;br/&gt;    &lt;br/&gt;    // 2. Serialize for Nostr ID (per NIP-01)&lt;br/&gt;    let event_json = json!([&lt;br/&gt;        0,&lt;br/&gt;        pubkey_hex,&lt;br/&gt;        created_at,&lt;br/&gt;        kind,&lt;br/&gt;        [],&lt;br/&gt;        content&lt;br/&gt;    ]).to_string();&lt;br/&gt;    &lt;br/&gt;    let mut hasher = Sha256::new();&lt;br/&gt;    hasher.update(event_json.as_bytes());&lt;br/&gt;    let event_id = hasher.finalize(); // This 32-byte hash is our signing message&lt;br/&gt;&lt;br/&gt;    // 3. FROST/ROAST Key Generation&lt;br/&gt;    let (shares, pubkey_package) = frost::keys::generate_with_dealer(&lt;br/&gt;        max_signers,&lt;br/&gt;        min_signers,&lt;br/&gt;        frost::keys::IdentifierList::Default,&lt;br/&gt;        &amp;amp;mut rng,&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    // 4. ROAST Coordination Simulation (Round 1: Commitments)&lt;br/&gt;    // In ROAST, the coordinator keeps a &amp;#34;session&amp;#34; open and collects commitments&lt;br/&gt;    let mut session_commitments = BTreeMap::new();&lt;br/&gt;    let mut signer_nonces = BTreeMap::new();&lt;br/&gt;&lt;br/&gt;    // Signers 1 and 3 respond first (Signer 2 is offline/slow)&lt;br/&gt;    for &amp;amp;id_val in &amp;amp;[1, 3] {&lt;br/&gt;        let id = frost::Identifier::try_from(id_val as u16)?;&lt;br/&gt;        let (nonces, comms) = frost::round1::commit(shares[&amp;amp;id].signing_share(), &amp;amp;mut rng);&lt;br/&gt;        session_commitments.insert(id, comms);&lt;br/&gt;        signer_nonces.insert(id, nonces);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // 5. Round 2: Signing the Nostr ID&lt;br/&gt;    let signing_package = frost::SigningPackage::new(session_commitments, &amp;amp;event_id);&lt;br/&gt;    let mut signature_shares = BTreeMap::new();&lt;br/&gt;&lt;br/&gt;    for (id, nonces) in signer_nonces {&lt;br/&gt;        let key_package: frost::keys::KeyPackage = shares[&amp;amp;id].clone().try_into()?;&lt;br/&gt;        let share = frost::round2::sign(&amp;amp;signing_package, &amp;amp;nonces, &amp;amp;key_package)?;&lt;br/&gt;        signature_shares.insert(id, share);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // 6. Aggregate into a BIP-340 Signature&lt;br/&gt;    let group_signature = frost::aggregate(&lt;br/&gt;        &amp;amp;signing_package,&lt;br/&gt;        &amp;amp;signature_shares,&lt;br/&gt;        &amp;amp;pubkey_package,&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    // 7. Verification (using BIP-340 logic)&lt;br/&gt;    pubkey_package.verifying_key().verify(&amp;amp;event_id, &amp;amp;group_signature)?;&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;Nostr Event ID: {}&amp;#34;, hex::encode(event_id));&lt;br/&gt;    println!(&amp;#34;Threshold Signature (BIP-340): {}&amp;#34;, hex::encode(group_signature.serialize()?));&lt;br/&gt;    println!(&amp;#34;Successfully signed Nostr event using ROAST/FROST!&amp;#34;);&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example frost_bip_340 --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs8v00unqh0e6aa5jszks0zxgckang7cvk739w9tevgprm78dvr98czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk776x8rch</id>
    
      <title type="html"># n34-relay WIP</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs8v00unqh0e6aa5jszks0zxgckang7cvk739w9tevgprm78dvr98czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk776x8rch" />
    <content type="html">
      # n34-relay&lt;br/&gt;&lt;br/&gt;WIP&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs82rcswu78pvs2wqsqs2j3eyw7zfapegtcgpclaq02d8k39u97jugzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77zc209e</id>
    
      <title type="html">use frost_secp256k1_tr as frost; use frost::{Identifier, ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs82rcswu78pvs2wqsqs2j3eyw7zfapegtcgpclaq02d8k39u97jugzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77zc209e" />
    <content type="html">
      use frost_secp256k1_tr as frost;&lt;br/&gt;use frost::{Identifier, keys::IdentifierList, round1, round2};&lt;br/&gt;use rand_chacha::ChaCha20Rng;&lt;br/&gt;use rand_chacha::rand_core::SeedableRng;&lt;br/&gt;use std::collections::BTreeMap;&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    // 1. RECREATE CONTEXT (Same as Signer)&lt;br/&gt;    let mut dealer_rng = ChaCha20Rng::from_seed([0u8; 32]);&lt;br/&gt;    let min_signers = 2;&lt;br/&gt;    let (shares, pubkey_package) = frost::keys::generate_with_dealer(&lt;br/&gt;        3, min_signers, IdentifierList::Default, &amp;amp;mut dealer_rng&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    let p1_id = Identifier::try_from(1u16)?;&lt;br/&gt;    let p2_id = Identifier::try_from(2u16)?;&lt;br/&gt;&lt;br/&gt;    // 2. SIMULATE SIGNING (Round 1 &amp;amp; 2)&lt;br/&gt;    let mut rng1 = ChaCha20Rng::from_seed([1u8; 32]);&lt;br/&gt;    let (p1_nonces, p1_commitments) = round1::commit(shares[&amp;amp;p1_id].signing_share(), &amp;amp;mut rng1);&lt;br/&gt;    let mut rng2 = ChaCha20Rng::from_seed([2u8; 32]);&lt;br/&gt;    let (p2_nonces, p2_commitments) = round1::commit(shares[&amp;amp;p2_id].signing_share(), &amp;amp;mut rng2);&lt;br/&gt;&lt;br/&gt;    let message = b&amp;#34;gnostr-gcc-verification-test&amp;#34;;&lt;br/&gt;    let mut commitments_map = BTreeMap::new();&lt;br/&gt;    commitments_map.insert(p1_id, p1_commitments);&lt;br/&gt;    commitments_map.insert(p2_id, p2_commitments);&lt;br/&gt;    let signing_package = frost::SigningPackage::new(commitments_map, message);&lt;br/&gt;&lt;br/&gt;    // Generate shares (using the KeyPackage method we perfected)&lt;br/&gt;    let p1_key_pkg = frost::keys::KeyPackage::new(p1_id, *shares[&amp;amp;p1_id].signing_share(), &lt;br/&gt;        frost::keys::VerifyingShare::from(*shares[&amp;amp;p1_id].signing_share()), &lt;br/&gt;        *pubkey_package.verifying_key(), min_signers);&lt;br/&gt;    let p2_key_pkg = frost::keys::KeyPackage::new(p2_id, *shares[&amp;amp;p2_id].signing_share(), &lt;br/&gt;        frost::keys::VerifyingShare::from(*shares[&amp;amp;p2_id].signing_share()), &lt;br/&gt;        *pubkey_package.verifying_key(), min_signers);&lt;br/&gt;&lt;br/&gt;    let p1_sig_share = round2::sign(&amp;amp;signing_package, &amp;amp;p1_nonces, &amp;amp;p1_key_pkg)?;&lt;br/&gt;    let p2_sig_share = round2::sign(&amp;amp;signing_package, &amp;amp;p2_nonces, &amp;amp;p2_key_pkg)?;&lt;br/&gt;&lt;br/&gt;    // 3. COORDINATOR: AGGREGATION&lt;br/&gt;    println!(&amp;#34;--- BIP-64MOD: Coordinator Aggregation ---&amp;#34;);&lt;br/&gt;    &lt;br/&gt;    let mut shares_map = BTreeMap::new();&lt;br/&gt;    shares_map.insert(p1_id, p1_sig_share);&lt;br/&gt;    shares_map.insert(p2_id, p2_sig_share);&lt;br/&gt;&lt;br/&gt;    let final_signature = frost::aggregate(&lt;br/&gt;        &amp;amp;signing_package, &lt;br/&gt;        &amp;amp;shares_map, &lt;br/&gt;        &amp;amp;pubkey_package&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    let sig_bytes = final_signature.serialize()?;&lt;br/&gt;    println!(&amp;#34;✅ Aggregation Successful!&amp;#34;);&lt;br/&gt;    println!(&amp;#34;Final Signature (Hex): {}&amp;#34;, hex::encode(&amp;amp;sig_bytes));&lt;br/&gt;&lt;br/&gt;    // 4. VERIFICATION (The moment of truth)&lt;br/&gt;    pubkey_package.verifying_key().verify(message, &amp;amp;final_signature)?;&lt;br/&gt;    println!(&amp;#34;🛡️  Signature Verified against Group Public Key!&amp;#34;);&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() { println!(&amp;#34;Enable nostr feature.&amp;#34;); }&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs8gekalfak7q0e4ypyyr42fuzq72cpd78ncmp300u56zyqplmhzhqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77ywscs0</id>
    
      <title type="html">//! Plugins Service Example //! //! A basic guide to designing ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs8gekalfak7q0e4ypyyr42fuzq72cpd78ncmp300u56zyqplmhzhqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77ywscs0" />
    <content type="html">
      //! Plugins Service Example  &lt;br/&gt;//!&lt;br/&gt;//! A basic guide to designing your plugins service. Feel free to refine or&lt;br/&gt;//! improve this approach.&lt;br/&gt;&lt;br/&gt;use std::{&lt;br/&gt;    collections::HashMap,&lt;br/&gt;    net::{Ipv4Addr, SocketAddr, SocketAddrV4},&lt;br/&gt;    str::FromStr,&lt;br/&gt;    sync::Arc,&lt;br/&gt;    time::{SystemTime, UNIX_EPOCH},&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;use axum::Extension;&lt;br/&gt;use parking_lot::{Mutex, RwLock};&lt;br/&gt;use strum::{AsRefStr, EnumIter, EnumString, IntoEnumIterator};&lt;br/&gt;use tonic::{Code, Request, Response, Status, transport::Server};&lt;br/&gt;&lt;br/&gt;use self::plugins_api::{&lt;br/&gt;    Empty,&lt;br/&gt;    PluginInfo,&lt;br/&gt;    PluginPriority,&lt;br/&gt;    PluginRequest,&lt;br/&gt;    PluginResponse,&lt;br/&gt;    PluginType,&lt;br/&gt;    ServicePlugins,&lt;br/&gt;    plugin_request::PluginRequestBody,&lt;br/&gt;    plugin_response::PluginResponseBody,&lt;br/&gt;    plugins_service_server::{PluginsService, PluginsServiceServer},&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;mod plugins_api {&lt;br/&gt;    tonic::include_proto!(&amp;#34;plugins&amp;#34;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;struct Service;&lt;br/&gt;struct PluginsState {&lt;br/&gt;    max_tags_count: usize,&lt;br/&gt;    events_per_day: usize,&lt;br/&gt;    last_db_wibed:  RwLock&amp;lt;u64&amp;gt;,&lt;br/&gt;    db:             Mutex&amp;lt;HashMap&amp;lt;String, usize&amp;gt;&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl PluginsState {&lt;br/&gt;    /// Initialize the state&lt;br/&gt;    fn new() -&amp;gt; Self {&lt;br/&gt;        Self {&lt;br/&gt;            max_tags_count: 30,&lt;br/&gt;            events_per_day: 5,&lt;br/&gt;            last_db_wibed:  RwLock::new(current_time()),&lt;br/&gt;            db:             Mutex::new(HashMap::new()),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Service plugins.&lt;br/&gt;#[derive(Debug, EnumIter, EnumString, AsRefStr)]&lt;br/&gt;#[strum(serialize_all = &amp;#34;snake_case&amp;#34;)]&lt;br/&gt;enum Plugins {&lt;br/&gt;    /// Restricts the number of tags allowed per event.&lt;br/&gt;    TagsLimit,&lt;br/&gt;    /// Sets a daily limit on the number of events that can be broadcasted for&lt;br/&gt;    /// each public key.&lt;br/&gt;    EventsPerDay,&lt;br/&gt;    /// Prevents the listing of relay kind 1 events (text notes).&lt;br/&gt;    NoKindOne,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl Plugins {&lt;br/&gt;    /// Returns the plugins info&lt;br/&gt;    fn plugins_info() -&amp;gt; Vec&amp;lt;PluginInfo&amp;gt; {&lt;br/&gt;        let mut plugins = Vec::new();&lt;br/&gt;        for plugin in Self::iter() {&lt;br/&gt;            plugins.push(PluginInfo {&lt;br/&gt;                name:        plugin.as_ref().to_owned(),&lt;br/&gt;                plugin_type: plugin.plugin_type() as i32,&lt;br/&gt;                priority:    plugin.plugin_priority() as i32,&lt;br/&gt;            });&lt;br/&gt;        }&lt;br/&gt;        plugins&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Returns the plugin type&lt;br/&gt;    #[inline]&lt;br/&gt;    fn plugin_type(&amp;amp;self) -&amp;gt; PluginType {&lt;br/&gt;        match self {&lt;br/&gt;            Self::TagsLimit =&amp;gt; PluginType::Write,&lt;br/&gt;            Self::EventsPerDay =&amp;gt; PluginType::Write,&lt;br/&gt;            Self::NoKindOne =&amp;gt; PluginType::Query,&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Returns the plugin priority&lt;br/&gt;    #[inline]&lt;br/&gt;    fn plugin_priority(&amp;amp;self) -&amp;gt; PluginPriority {&lt;br/&gt;        PluginPriority::All&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Run write plugin&lt;br/&gt;    async fn run_write(&lt;br/&gt;        &amp;amp;self,&lt;br/&gt;        event: plugins_api::Event,&lt;br/&gt;        state: Arc&amp;lt;PluginsState&amp;gt;,&lt;br/&gt;    ) -&amp;gt; Result&amp;lt;(), String&amp;gt; {&lt;br/&gt;        assert_eq!(self.plugin_type(), PluginType::Write);&lt;br/&gt;&lt;br/&gt;        match self {&lt;br/&gt;            Self::TagsLimit =&amp;gt; run_tags_limit(event, state).await,&lt;br/&gt;            Self::EventsPerDay =&amp;gt; run_events_per_day(event, state).await,&lt;br/&gt;            _ =&amp;gt; unreachable!(), // You must make sure to include all write plugins&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Run query plugin&lt;br/&gt;    async fn run_query(&lt;br/&gt;        &amp;amp;self,&lt;br/&gt;        filter: plugins_api::Filter,&lt;br/&gt;        _state: Arc&amp;lt;PluginsState&amp;gt;,&lt;br/&gt;    ) -&amp;gt; Result&amp;lt;(), String&amp;gt; {&lt;br/&gt;        assert_eq!(self.plugin_type(), PluginType::Query);&lt;br/&gt;&lt;br/&gt;        match self {&lt;br/&gt;            Self::NoKindOne =&amp;gt; run_no_kind_one(filter).await,&lt;br/&gt;            _ =&amp;gt; unreachable!(), // You must make sure to include all query plugins&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[tonic::async_trait]&lt;br/&gt;impl PluginsService for Service {&lt;br/&gt;    async fn run_plugin(&lt;br/&gt;        &amp;amp;self,&lt;br/&gt;        request: Request&amp;lt;PluginRequest&amp;gt;,&lt;br/&gt;    ) -&amp;gt; Result&amp;lt;Response&amp;lt;PluginResponse&amp;gt;, Status&amp;gt; {&lt;br/&gt;        let state = Arc::clone(request.extensions().get::&amp;lt;Arc&amp;lt;PluginsState&amp;gt;&amp;gt;().unwrap());&lt;br/&gt;        let request = request.into_inner();&lt;br/&gt;&lt;br/&gt;        let Ok(plugin) = Plugins::from_str(&amp;amp;request.plugin_name) else {&lt;br/&gt;            return Err(Status::new(&lt;br/&gt;                Code::InvalidArgument,&lt;br/&gt;                format!(&amp;#34;Unknown plugin: {}&amp;#34;, request.plugin_name),&lt;br/&gt;            ));&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        let Some(body) = request.plugin_request_body else {&lt;br/&gt;            return Err(Status::new(&lt;br/&gt;                Code::InvalidArgument,&lt;br/&gt;                &amp;#34;Missing the request body&amp;#34;,&lt;br/&gt;            ));&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        let result = match body {&lt;br/&gt;            PluginRequestBody::Event(event) =&amp;gt; {&lt;br/&gt;                if matches!(plugin.plugin_type(), PluginType::Query) {&lt;br/&gt;                    return Err(Status::new(&lt;br/&gt;                        Code::InvalidArgument,&lt;br/&gt;                        format!(&lt;br/&gt;                            &amp;#34;plugin &amp;#39;{}&amp;#39; is query plugin but received an event&amp;#34;,&lt;br/&gt;                            plugin.as_ref()&lt;br/&gt;                        ),&lt;br/&gt;                    ));&lt;br/&gt;                }&lt;br/&gt;                plugin.run_write(event, state).await&lt;br/&gt;            }&lt;br/&gt;            PluginRequestBody::Filter(filter) =&amp;gt; {&lt;br/&gt;                if matches!(plugin.plugin_type(), PluginType::Write) {&lt;br/&gt;                    return Err(Status::new(&lt;br/&gt;                        Code::InvalidArgument,&lt;br/&gt;                        format!(&lt;br/&gt;                            &amp;#34;plugin &amp;#39;{}&amp;#39; is write plugin but received a filter&amp;#34;,&lt;br/&gt;                            plugin.as_ref()&lt;br/&gt;                        ),&lt;br/&gt;                    ));&lt;br/&gt;                }&lt;br/&gt;                plugin.run_query(filter, state).await&lt;br/&gt;            }&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        match result {&lt;br/&gt;            Ok(()) =&amp;gt; {&lt;br/&gt;                Ok(Response::new(PluginResponse {&lt;br/&gt;                    plugin_response_body: Some(PluginResponseBody::Accept(Empty {})),&lt;br/&gt;                }))&lt;br/&gt;            }&lt;br/&gt;            Err(reject_msg) =&amp;gt; {&lt;br/&gt;                Ok(Response::new(PluginResponse {&lt;br/&gt;                    plugin_response_body: Some(PluginResponseBody::RejectMsg(reject_msg)),&lt;br/&gt;                }))&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    async fn get_plugins(&amp;amp;self, _: Request&amp;lt;Empty&amp;gt;) -&amp;gt; Result&amp;lt;Response&amp;lt;ServicePlugins&amp;gt;, Status&amp;gt; {&lt;br/&gt;        Ok(Response::new(ServicePlugins {&lt;br/&gt;            plugins: Plugins::plugins_info(),&lt;br/&gt;        }))&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[tokio::main]&lt;br/&gt;async fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    let address = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::LOCALHOST, 8080));&lt;br/&gt;    println!(&amp;#34;Service Address: 127.0.0.1:8080&amp;#34;);&lt;br/&gt;&lt;br/&gt;    Server::builder()&lt;br/&gt;        .layer(Extension(Arc::new(PluginsState::new())))&lt;br/&gt;        .add_service(PluginsServiceServer::new(Service))&lt;br/&gt;        .serve(address)&lt;br/&gt;        .await?;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;fn current_time() -&amp;gt; u64 {&lt;br/&gt;    SystemTime::now()&lt;br/&gt;        .duration_since(UNIX_EPOCH)&lt;br/&gt;        .map(|d| d.as_secs())&lt;br/&gt;        .unwrap_or(u64::MAX)&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;// --- Plugins --- //&lt;br/&gt;&lt;br/&gt;async fn run_tags_limit(event: plugins_api::Event, state: Arc&amp;lt;PluginsState&amp;gt;) -&amp;gt; Result&amp;lt;(), String&amp;gt; {&lt;br/&gt;    if event.tags.len() &amp;gt; state.max_tags_count {&lt;br/&gt;        return Err(format!(&lt;br/&gt;            &amp;#34;Too many tags in the event, the limit is {}&amp;#34;,&lt;br/&gt;            state.max_tags_count&lt;br/&gt;        ));&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;async fn run_events_per_day(&lt;br/&gt;    event: plugins_api::Event,&lt;br/&gt;    state: Arc&amp;lt;PluginsState&amp;gt;,&lt;br/&gt;) -&amp;gt; Result&amp;lt;(), String&amp;gt; {&lt;br/&gt;    let mut db = state.db.lock();&lt;br/&gt;&lt;br/&gt;    let count = db.entry(event.public_key).or_insert(1);&lt;br/&gt;&lt;br/&gt;    if *count &amp;gt;= state.events_per_day {&lt;br/&gt;        return Err(&amp;#34;You exceeded your daily limit&amp;#34;.to_owned());&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    *count &#43;= 1;&lt;br/&gt;&lt;br/&gt;    // For testing purposes, the DB is cleared every 5 minutes. In a production&lt;br/&gt;    // environment, this operation should occur every 24 hours, and a persistent&lt;br/&gt;    // database should be used instead of an in-memory one. :)&lt;br/&gt;    let now_time = current_time();&lt;br/&gt;    if { now_time - *state.last_db_wibed.read() } &amp;gt;= 60 * 5 {&lt;br/&gt;        *state.last_db_wibed.write() = now_time;&lt;br/&gt;        *db = HashMap::new();&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;async fn run_no_kind_one(filter: plugins_api::Filter) -&amp;gt; Result&amp;lt;(), String&amp;gt; {&lt;br/&gt;    if filter.ids.is_empty() &amp;amp;&amp;amp; filter.authors.is_empty() &amp;amp;&amp;amp; filter.kinds.contains(&amp;amp;1) {&lt;br/&gt;        return Err(&amp;#34;Exploring relay notes is not permitted&amp;#34;.to_owned());&lt;br/&gt;    }&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs88hrs8mgtjl7e27yq6va7pk327wxt0k6we9x4fspv865e926m6cgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7752tuhz</id>
    
      <title type="html"># Reply to Issues and Patches &amp;gt; `n34 reply` command **Usage:** ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs88hrs8mgtjl7e27yq6va7pk327wxt0k6we9x4fspv865e926m6cgzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7752tuhz" />
    <content type="html">
      # Reply to Issues and Patches&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 reply` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Reply to issues and patches&lt;br/&gt;&lt;br/&gt;Usage: n34 reply [OPTIONS] &amp;lt;--comment &amp;lt;COMMENT&amp;gt;|--editor&amp;gt; &amp;lt;nevent1-or-note1&amp;gt;&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  &amp;lt;nevent1-or-note1&amp;gt;  The issue, patch, or comment to reply to&lt;br/&gt;&lt;br/&gt;Options:&lt;br/&gt;      --quote-to                   Quote the replied-to event in the editor&lt;br/&gt;      --repo &amp;lt;NADDR-NIP05-OR-SET&amp;gt;  Repository address in `naddr` format (`naddr1...`), NIP-05 format (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`&lt;br/&gt;  -c, --comment &amp;lt;COMMENT&amp;gt;          The comment (cannot be used with --editor)&lt;br/&gt;  -e, --editor                     Open editor to write comment (cannot be used with --content)&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;Craft replies ([NIP-22] Comment) to issues, patches, or comments with ease&lt;br/&gt;using the `n34 reply` command. You can either input your reply directly with&lt;br/&gt;the `--comment` option or open an editor for a more detailed response using&lt;br/&gt;`--editor`. Additionally, when using `--editor`, the `--quote-to` option&lt;br/&gt;allows you to include the original content in your editor, enabling precise and&lt;br/&gt;context-aware replies.&lt;br/&gt;&lt;br/&gt;[NIP-22]: &lt;a href=&#34;https://github.com/nostr-protocol/nips/blob/master/22.md&#34;&gt;https://github.com/nostr-protocol/nips/blob/master/22.md&lt;/a&gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs8xaf8pjed5sqtylmrl0a40jd5knzxpsp9w7syjmmvk6f4vccpccszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77v5pd20</id>
    
      <title type="html"># Reopen a Closed Issue &amp;gt; `n34 issue reopen` command ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs8xaf8pjed5sqtylmrl0a40jd5knzxpsp9w7syjmmvk6f4vccpccszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77v5pd20" />
    <content type="html">
      # Reopen a Closed Issue&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 issue reopen` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Reopens a closed issue&lt;br/&gt;&lt;br/&gt;Usage: n34 issue reopen [OPTIONS] &amp;lt;ISSUE_ID&amp;gt;&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  &amp;lt;ISSUE_ID&amp;gt;  The ID of the closed issue to reopen&lt;br/&gt;&lt;br/&gt;Options:&lt;br/&gt;      --repo &amp;lt;NADDR-NIP05-OR-SET&amp;gt;  Repository address in `naddr` format (`naddr1...`), NIP-05 format (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;Issue a kind `1630` (Open status) for the specified issue. The issue have to&lt;br/&gt;be closed.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs8ysn7jmzlqzdlvhzx7xt9cgs7zawesag8d5tcnykhcd0eta4c8uqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77lxxryh</id>
    
      <title type="html">// n34 - A CLI to interact with NIP-34 and other stuff related to ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs8ysn7jmzlqzdlvhzx7xt9cgs7zawesag8d5tcnykhcd0eta4c8uqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77lxxryh" />
    <content type="html">
      // n34 - A CLI to interact with NIP-34 and other stuff related to codes in nostr&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU General Public License as published by&lt;br/&gt;// the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/gpl-3.0.html&amp;gt&#34;&gt;https://gnu.org/licenses/gpl-3.0.html&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::{&lt;br/&gt;    fs,&lt;br/&gt;    path::{Path, PathBuf},&lt;br/&gt;    str::FromStr,&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;use clap::Args;&lt;br/&gt;use nostr::{&lt;br/&gt;    event::{Kind, TagKind},&lt;br/&gt;    filter::Filter,&lt;br/&gt;    nips::nip19::ToBech32,&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;use crate::{&lt;br/&gt;    cli::{&lt;br/&gt;        CliOptions,&lt;br/&gt;        traits::{CommandRunner, OptionNaddrOrSetVecExt, RelayOrSetVecExt},&lt;br/&gt;        types::{NaddrOrSet, NostrEvent},&lt;br/&gt;    },&lt;br/&gt;    error::{N34Error, N34Result},&lt;br/&gt;    nostr_utils::{&lt;br/&gt;        NostrClient,&lt;br/&gt;        traits::{NaddrsUtils, ReposUtils},&lt;br/&gt;        utils,&lt;br/&gt;    },&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;#[derive(Debug, Args)]&lt;br/&gt;pub struct FetchArgs {&lt;br/&gt;    /// Repository address in `naddr` format (`naddr1...`), NIP-05 format&lt;br/&gt;    /// (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`.&lt;br/&gt;    ///&lt;br/&gt;    /// If omitted, looks for a `nostr-address` file.&lt;br/&gt;    #[arg(value_name = &amp;#34;NADDR-NIP05-OR-SET&amp;#34;, long = &amp;#34;repo&amp;#34;)]&lt;br/&gt;    naddrs:   Option&amp;lt;Vec&amp;lt;NaddrOrSet&amp;gt;&amp;gt;,&lt;br/&gt;    /// Output directory for the patches. Default to the current directory&lt;br/&gt;    #[arg(short, long, value_name = &amp;#34;PATH&amp;#34;)]&lt;br/&gt;    output:   Option&amp;lt;PathBuf&amp;gt;,&lt;br/&gt;    /// The patch id to fetch it&lt;br/&gt;    patch_id: NostrEvent,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl CommandRunner for FetchArgs {&lt;br/&gt;    const NEED_SIGNER: bool = false;&lt;br/&gt;&lt;br/&gt;    async fn run(self, options: CliOptions) -&amp;gt; N34Result&amp;lt;()&amp;gt; {&lt;br/&gt;        let naddrs = utils::naddrs_or_file(&lt;br/&gt;            self.naddrs.flat_naddrs(&amp;amp;options.config.sets)?,&lt;br/&gt;            &amp;amp;utils::nostr_address_path()?,&lt;br/&gt;        )?;&lt;br/&gt;        let relays = options.relays.clone().flat_relays(&amp;amp;options.config.sets)?;&lt;br/&gt;        let client = NostrClient::init(&amp;amp;options, &amp;amp;relays).await;&lt;br/&gt;        let output_path = self.output.unwrap_or_default();&lt;br/&gt;&lt;br/&gt;        client&lt;br/&gt;            .add_relays(&lt;br/&gt;                &amp;amp;[&lt;br/&gt;                    naddrs.extract_relays(),&lt;br/&gt;                    self.patch_id.relays,&lt;br/&gt;                    client&lt;br/&gt;                        .fetch_repos(&amp;amp;naddrs.into_coordinates())&lt;br/&gt;                        .await?&lt;br/&gt;                        .extract_relays(),&lt;br/&gt;                ]&lt;br/&gt;                .concat(),&lt;br/&gt;            )&lt;br/&gt;            .await;&lt;br/&gt;&lt;br/&gt;        let root_patch = client&lt;br/&gt;            .fetch_event(&lt;br/&gt;                Filter::new()&lt;br/&gt;                    .id(self.patch_id.event_id)&lt;br/&gt;                    .kind(Kind::GitPatch),&lt;br/&gt;            )&lt;br/&gt;            .await?&lt;br/&gt;            .ok_or(N34Error::CanNotFoundPatch)?;&lt;br/&gt;&lt;br/&gt;        if !root_patch&lt;br/&gt;            .tags&lt;br/&gt;            .iter()&lt;br/&gt;            .any(|t| t.kind() == TagKind::t() &amp;amp;&amp;amp; t.content().is_some_and(|c| c == &amp;#34;root&amp;#34;))&lt;br/&gt;        {&lt;br/&gt;            return Err(N34Error::NotRootPatch);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        let root_author = root_patch.pubkey;&lt;br/&gt;        let root_patch = super::GitPatch::from_str(&amp;amp;root_patch.content)&lt;br/&gt;            .map_err(|err| N34Error::InvalidEvent(format!(&amp;#34;Failed to parse the patch: {err}&amp;#34;)))?;&lt;br/&gt;&lt;br/&gt;        tracing::info!(&amp;#34;Found the root patch: `{}`&amp;#34;, root_patch.subject);&lt;br/&gt;&lt;br/&gt;        let mut patches = client&lt;br/&gt;            .fetch_patch_series(self.patch_id.event_id, root_author)&lt;br/&gt;            .await?&lt;br/&gt;            .into_iter()&lt;br/&gt;            .map(|p| {&lt;br/&gt;                let patch = super::GitPatch::from_str(&amp;amp;p.content).map_err(|err| {&lt;br/&gt;                    N34Error::InvalidEvent(format!(&lt;br/&gt;                        &amp;#34;Failed to parse the patch `{}`: {err}&amp;#34;,&lt;br/&gt;                        p.id.to_bech32().expect(&amp;#34;Infallible&amp;#34;)&lt;br/&gt;                    ))&lt;br/&gt;                })?;&lt;br/&gt;                N34Result::Ok((patch.filename(&amp;amp;output_path)?, patch))&lt;br/&gt;            })&lt;br/&gt;            .collect::&amp;lt;N34Result&amp;lt;Vec&amp;lt;_&amp;gt;&amp;gt;&amp;gt;()?;&lt;br/&gt;        patches.push((root_patch.filename(&amp;amp;output_path)?, root_patch));&lt;br/&gt;        patches.sort_unstable_by_key(|p| p.0.clone());&lt;br/&gt;        patches.dedup_by_key(|p| p.0.clone());&lt;br/&gt;&lt;br/&gt;        if output_path.as_path() != Path::new(&amp;#34;&amp;#34;) &amp;amp;&amp;amp; !output_path.exists() {&lt;br/&gt;            fs::create_dir_all(&amp;amp;output_path)?;&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        for (patch_path, patch) in patches {&lt;br/&gt;            tracing::info!(&amp;#34;Writeing `{}` in `{}`&amp;#34;, patch.subject, patch_path.display());&lt;br/&gt;            fs::write(patch_path, patch.inner)?;&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        Ok(())&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs8zt439unsntygn97awkq3xjnsha90ku66rrj47gvx8mg62zexgugzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77yjg8vh</id>
    
      <title type="html"># Modify a Set &amp;gt; `n34 sets update` command **Usage:** ``` ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs8zt439unsntygn97awkq3xjnsha90ku66rrj47gvx8mg62zexgugzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77yjg8vh" />
    <content type="html">
      # Modify a Set&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 sets update` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Modify an existing set&lt;br/&gt;&lt;br/&gt;Usage: n34 sets update [OPTIONS] &amp;lt;NAME&amp;gt;&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  &amp;lt;NAME&amp;gt;  Name of the set to update&lt;br/&gt;&lt;br/&gt;Options:&lt;br/&gt;      --set-relay &amp;lt;RELAYS&amp;gt;         Add relay to the set, either as URL or set name to extract its relays. [aliases: `--sr`]&lt;br/&gt;      --repo &amp;lt;NADDR-NIP05-OR-SET&amp;gt;  Repository address in `naddr` format (`naddr1...`), NIP-05 format (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`&lt;br/&gt;      --override                   Replace existing relays/repositories instead of adding to them&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;Use this command to update an existing set by its name. By default, providing&lt;br/&gt;relays via `--set-relay` or repositories via `--repo` will add them to the set&amp;#39;s&lt;br/&gt;existing entries. To replace the current relays and repositories with the new&lt;br/&gt;values, use the `--override` flag.&lt;br/&gt;&lt;br/&gt;[passing repositories]: /commands.html#passing-repositories&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsxlmvndy9zr83cwdjtz3q4t0jhuwll7xet8vamr4sj58xsrxve82czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77q43fj7</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsxlmvndy9zr83cwdjtz3q4t0jhuwll7xet8vamr4sj58xsrxve82czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77q43fj7" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use nostr::{event::Kind, key::PublicKey, types::Url};&lt;br/&gt;use serde::{Deserialize, Deserializer, Serialize, Serializer};&lt;br/&gt;&lt;br/&gt;/// Public key paired with an optional reason.&lt;br/&gt;#[derive(Serialize)]&lt;br/&gt;pub struct PubKeyWithReason {&lt;br/&gt;    #[serde(serialize_with = &amp;#34;hex_pubkey_ser&amp;#34;)]&lt;br/&gt;    pub pubkey: PublicKey,&lt;br/&gt;    pub reason: Option&amp;lt;String&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// A kind&lt;br/&gt;pub struct KindParam(pub Kind);&lt;br/&gt;&lt;br/&gt;/// A public key&lt;br/&gt;pub struct PublicKeyParam(pub PublicKey);&lt;br/&gt;&lt;br/&gt;/// A single string&lt;br/&gt;pub struct StringParam(pub String);&lt;br/&gt;&lt;br/&gt;/// A signle URL&lt;br/&gt;pub struct UrlParam(pub Url);&lt;br/&gt;&lt;br/&gt;impl From&amp;lt;PublicKey&amp;gt; for PubKeyWithReason {&lt;br/&gt;    fn from(pubkey: PublicKey) -&amp;gt; Self {&lt;br/&gt;        Self {&lt;br/&gt;            pubkey,&lt;br/&gt;            reason: None,&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;&amp;#39;de&amp;gt; Deserialize&amp;lt;&amp;#39;de&amp;gt; for PubKeyWithReason {&lt;br/&gt;    fn deserialize&amp;lt;D&amp;gt;(deserializer: D) -&amp;gt; Result&amp;lt;Self, D::Error&amp;gt;&lt;br/&gt;    where&lt;br/&gt;        D: Deserializer&amp;lt;&amp;#39;de&amp;gt;,&lt;br/&gt;    {&lt;br/&gt;        let params: Vec&amp;lt;String&amp;gt; = Vec::deserialize(deserializer)?;&lt;br/&gt;&lt;br/&gt;        let pubkey_str = params&lt;br/&gt;            .first()&lt;br/&gt;            .ok_or_else(|| de_err::&amp;lt;D&amp;gt;(&amp;#34;Missing required parameter: public key&amp;#34;))?;&lt;br/&gt;        let pubkey = PublicKey::parse(pubkey_str)&lt;br/&gt;            .map_err(|_| de_err::&amp;lt;D&amp;gt;(format!(&amp;#34;Invalid public key format: &amp;#39;{pubkey_str}&amp;#39;&amp;#34;)))?;&lt;br/&gt;        let reason = params.into_iter().nth(1);&lt;br/&gt;&lt;br/&gt;        Ok(Self { pubkey, reason })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;&amp;#39;de&amp;gt; Deserialize&amp;lt;&amp;#39;de&amp;gt; for KindParam {&lt;br/&gt;    fn deserialize&amp;lt;D&amp;gt;(deserializer: D) -&amp;gt; Result&amp;lt;Self, D::Error&amp;gt;&lt;br/&gt;    where&lt;br/&gt;        D: Deserializer&amp;lt;&amp;#39;de&amp;gt;,&lt;br/&gt;    {&lt;br/&gt;        Ok(Self(Kind::from(&lt;br/&gt;            *Vec::&amp;lt;u16&amp;gt;::deserialize(deserializer)?&lt;br/&gt;                .first()&lt;br/&gt;                .ok_or_else(|| de_err::&amp;lt;D&amp;gt;(&amp;#34;Missing required parameter: kind&amp;#34;))?,&lt;br/&gt;        )))&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;&amp;#39;de&amp;gt; Deserialize&amp;lt;&amp;#39;de&amp;gt; for StringParam {&lt;br/&gt;    fn deserialize&amp;lt;D&amp;gt;(deserializer: D) -&amp;gt; Result&amp;lt;Self, D::Error&amp;gt;&lt;br/&gt;    where&lt;br/&gt;        D: Deserializer&amp;lt;&amp;#39;de&amp;gt;,&lt;br/&gt;    {&lt;br/&gt;        Ok(Self(&lt;br/&gt;            Vec::&amp;lt;String&amp;gt;::deserialize(deserializer)?&lt;br/&gt;                .into_iter()&lt;br/&gt;                .next()&lt;br/&gt;                .ok_or_else(|| {&lt;br/&gt;                    de_err::&amp;lt;D&amp;gt;(&amp;#34;Expected at least one string in the list, but found none&amp;#34;)&lt;br/&gt;                })?,&lt;br/&gt;        ))&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;&amp;#39;de&amp;gt; Deserialize&amp;lt;&amp;#39;de&amp;gt; for PublicKeyParam {&lt;br/&gt;    fn deserialize&amp;lt;D&amp;gt;(deserializer: D) -&amp;gt; Result&amp;lt;Self, D::Error&amp;gt;&lt;br/&gt;    where&lt;br/&gt;        D: Deserializer&amp;lt;&amp;#39;de&amp;gt;,&lt;br/&gt;    {&lt;br/&gt;        Ok(Self(&lt;br/&gt;            PublicKey::parse(&amp;amp;StringParam::deserialize(deserializer)?.0)&lt;br/&gt;                .map_err(|_| de_err::&amp;lt;D&amp;gt;(&amp;#34;Invalid public key format&amp;#34;))?,&lt;br/&gt;        ))&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;&amp;#39;de&amp;gt; Deserialize&amp;lt;&amp;#39;de&amp;gt; for UrlParam {&lt;br/&gt;    fn deserialize&amp;lt;D&amp;gt;(deserializer: D) -&amp;gt; Result&amp;lt;Self, D::Error&amp;gt;&lt;br/&gt;    where&lt;br/&gt;        D: Deserializer&amp;lt;&amp;#39;de&amp;gt;,&lt;br/&gt;    {&lt;br/&gt;        Ok(Self(&lt;br/&gt;            Url::parse(&amp;amp;StringParam::deserialize(deserializer)?.0)&lt;br/&gt;                .map_err(|_| de_err::&amp;lt;D&amp;gt;(&amp;#34;Invalid URL&amp;#34;))?,&lt;br/&gt;        ))&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Converts the public key to a hex string for serialization.&lt;br/&gt;///&lt;br/&gt;/// Note: While this functionality is also provided by the `Serialize`&lt;br/&gt;/// implementation for `PublicKey`, it is included here to guard against&lt;br/&gt;/// potential breaking changes in the beta crate.&lt;br/&gt;pub fn hex_pubkey_ser&amp;lt;S: Serializer&amp;gt;(pubkey: &amp;amp;PublicKey, serializer: S) -&amp;gt; Result&amp;lt;S::Ok, S::Error&amp;gt; {&lt;br/&gt;    pubkey.to_hex().serialize(serializer)&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;/// A function to return a custom deserializing error&lt;br/&gt;fn de_err&amp;lt;&amp;#39;de, D: Deserializer&amp;lt;&amp;#39;de&amp;gt;&amp;gt;(err: impl AsRef&amp;lt;str&amp;gt;) -&amp;gt; D::Error {&lt;br/&gt;    serde::de::Error::custom(err.as_ref())&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsxlt9d7v48s0tgmprdhlr0atde8syqle2svpa9schjwtsln8pk86gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77xex9ud</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsxlt9d7v48s0tgmprdhlr0atde8syqle2svpa9schjwtsln8pk86gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77xex9ud" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::time::{SystemTime, UNIX_EPOCH};&lt;br/&gt;&lt;br/&gt;use axum::http::HeaderValue;&lt;br/&gt;use base64::{&lt;br/&gt;    Engine,&lt;br/&gt;    prelude::{BASE64_STANDARD, BASE64_STANDARD_NO_PAD, BASE64_URL_SAFE, BASE64_URL_SAFE_NO_PAD},&lt;br/&gt;};&lt;br/&gt;use hyper::{HeaderMap, Method};&lt;br/&gt;use nostr::{&lt;br/&gt;    event::{Event, Kind, Tag, TagKind},&lt;br/&gt;    filter::Alphabet,&lt;br/&gt;    key::PublicKey,&lt;br/&gt;    util::JsonUtil,&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;use crate::{&lt;br/&gt;    endpoints::nip86::errors::{ApiError, ApiResult},&lt;br/&gt;    ext_traits::RwlockVecExt,&lt;br/&gt;    router_state::RouterState,&lt;br/&gt;    utils as crate_utils,&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;const NOSTR_SCHEME: &amp;amp;str = &amp;#34;Nostr &amp;#34;;&lt;br/&gt;&lt;br/&gt;/// Extracts the authentication token from the headers, ensuring it matches the&lt;br/&gt;/// expected scheme.&lt;br/&gt;pub fn get_auth_token(headers: &amp;amp;HeaderMap&amp;lt;HeaderValue&amp;gt;) -&amp;gt; ApiResult&amp;lt;&amp;amp;str&amp;gt; {&lt;br/&gt;    headers&lt;br/&gt;        .get(&amp;#34;authorization&amp;#34;)&lt;br/&gt;        .ok_or(ApiError::NoAuthHeader)&lt;br/&gt;        .and_then(|header| header.to_str().map_err(|_| ApiError::InvalidAuthHeader))&lt;br/&gt;        .and_then(|auth_token| {&lt;br/&gt;            if let Some((&amp;#34;&amp;#34;, auth_token)) = auth_token.trim().split_once(NOSTR_SCHEME) {&lt;br/&gt;                Ok(auth_token)&lt;br/&gt;            } else {&lt;br/&gt;                Err(ApiError::NotNostrAuth)&lt;br/&gt;            }&lt;br/&gt;        })&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Verifies a NIP-98 HTTP auth token and returns its author and payload hash if&lt;br/&gt;/// valid.&lt;br/&gt;///&lt;br/&gt;/// The token must be from an admin, properly signed, and match the request&lt;br/&gt;/// method and relay URL.&lt;br/&gt;#[must_use = &amp;#34;payload hash must be checked&amp;#34;]&lt;br/&gt;pub fn get_payload_hash(&lt;br/&gt;    base64_str: impl AsRef&amp;lt;str&amp;gt;,&lt;br/&gt;    request_method: &amp;amp;Method,&lt;br/&gt;    state: &amp;amp;RouterState,&lt;br/&gt;) -&amp;gt; ApiResult&amp;lt;(PublicKey, String)&amp;gt; {&lt;br/&gt;    // Attempt to decode the base64 string using various base64 standards (standard,&lt;br/&gt;    // standard without padding, URL-safe, and URL-safe without padding) since&lt;br/&gt;    // NIP-98 (HTTP Auth) does not specify which base64 variant to use.&lt;br/&gt;    let event = Event::from_json(&lt;br/&gt;        BASE64_STANDARD&lt;br/&gt;            .decode(base64_str.as_ref())&lt;br/&gt;            .or_else(|_| BASE64_STANDARD_NO_PAD.decode(base64_str.as_ref()))&lt;br/&gt;            .or_else(|_| BASE64_URL_SAFE.decode(base64_str.as_ref()))&lt;br/&gt;            .or_else(|_| BASE64_URL_SAFE_NO_PAD.decode(base64_str.as_ref()))&lt;br/&gt;            .map_err(|_| ApiError::InvalidBase64Token)?,&lt;br/&gt;    )&lt;br/&gt;    .map_err(|_| ApiError::InvalidNostrEventToken)?;&lt;br/&gt;&lt;br/&gt;    if !state.config.relay.admins.contains(&amp;amp;event.pubkey) {&lt;br/&gt;        return Err(ApiError::NotAdmin);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    if !event.verify_id() {&lt;br/&gt;        return Err(ApiError::InvalidEventId);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    if event.kind != Kind::HttpAuth {&lt;br/&gt;        return Err(ApiError::NotHttpAuthKind);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    if !event.content.is_empty() {&lt;br/&gt;        return Err(ApiError::NonEmptyHttpAuthContent);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    if let Ok(current_time) = SystemTime::now().duration_since(UNIX_EPOCH)&lt;br/&gt;        &amp;amp;&amp;amp; (current_time.as_secs() - 100) &amp;gt; event.created_at.as_secs()&lt;br/&gt;    {&lt;br/&gt;        return Err(ApiError::OldAuthEvent);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    if crate_utils::remove_proto(&lt;br/&gt;        event&lt;br/&gt;            .tags&lt;br/&gt;            .find(TagKind::single_letter(Alphabet::U, false))&lt;br/&gt;            .and_then(Tag::content)&lt;br/&gt;            .ok_or(ApiError::MissingRlayUrl)?,&lt;br/&gt;    ) != state.config.relay.domain.as_str()&lt;br/&gt;    {&lt;br/&gt;        return Err(ApiError::IncorrectRelayUrl);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    if event&lt;br/&gt;        .tags&lt;br/&gt;        .find(TagKind::Method)&lt;br/&gt;        .and_then(Tag::content)&lt;br/&gt;        .ok_or(ApiError::MissingMethod)?&lt;br/&gt;        != request_method.as_str()&lt;br/&gt;    {&lt;br/&gt;        return Err(ApiError::IncorrectRequestMethod);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    if !event.verify_signature() {&lt;br/&gt;        return Err(ApiError::InvalidSignature);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    Ok((&lt;br/&gt;        event.pubkey,&lt;br/&gt;        event&lt;br/&gt;            .tags&lt;br/&gt;            .find(TagKind::Payload)&lt;br/&gt;            .and_then(Tag::content)&lt;br/&gt;            .ok_or(ApiError::MissingPayloadHash)?&lt;br/&gt;            .to_owned(),&lt;br/&gt;    ))&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Removes the line number and column details from a serde_json error message,&lt;br/&gt;/// if present.&lt;br/&gt;pub fn remove_line_number(err: &amp;amp;str) -&amp;gt; &amp;amp;str {&lt;br/&gt;    err.rsplit_once(&amp;#34; at line &amp;#34;).map_or(err, |(msg, _)| msg)&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsx7csn456alrkqqhcxfqfe764vfzvcf65478kf7d8pty0qts8dg2gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77qu8zgr</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsx7csn456alrkqqhcxfqfe764vfzvcf65478kf7d8pty0qts8dg2gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77qu8zgr" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::sync::Arc;&lt;br/&gt;&lt;br/&gt;use nostr_database::NostrDatabase;&lt;br/&gt;use nostr_relay_builder::{&lt;br/&gt;    LocalRelay,&lt;br/&gt;&lt;br/&gt;    builder::{LocalRelayBuilderNip42, RateLimit},&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;pub use self::{grpc_manager::GrpcError, rhai_manager::RhaiPluginsError};&lt;br/&gt;use crate::relay_config::RelayConfig;&lt;br/&gt;&lt;br/&gt;/// A plugin to check the event size.&lt;br/&gt;mod event_size_plugin;&lt;br/&gt;/// Core GRASP (Git Relays Authorized via Signed-Nostr Proofs) implementation&lt;br/&gt;mod grasp;&lt;br/&gt;/// gRPC plugins manager&lt;br/&gt;mod grpc_manager;&lt;br/&gt;/// Plugins manager&lt;br/&gt;mod plugins_manager;&lt;br/&gt;/// Rhai plugins manager&lt;br/&gt;mod rhai_manager;&lt;br/&gt;/// Plugins that manages a whitelist and blacklist&lt;br/&gt;mod whitelist_plugins;&lt;br/&gt;&lt;br/&gt;/// Middlewares state&lt;br/&gt;pub struct MiddlewareState {&lt;br/&gt;    /// The relay config&lt;br/&gt;    pub config: Arc&amp;lt;RelayConfig&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl MiddlewareState {&lt;br/&gt;    /// Construct a new middleware state&lt;br/&gt;    pub fn new(config: Arc&amp;lt;RelayConfig&amp;gt;) -&amp;gt; Self {&lt;br/&gt;        Self { config }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Build a relay from the config&lt;br/&gt;pub async fn build_relay(config: Arc&amp;lt;RelayConfig&amp;gt;, relay_db: Arc&amp;lt;dyn NostrDatabase&amp;gt;) -&amp;gt; LocalRelay {&lt;br/&gt;    let mut plugins_builder = plugins_manager::PluginsManagerBuilder::with_middlewares_state(&lt;br/&gt;        Arc::new(MiddlewareState::new(Arc::clone(&amp;amp;config))),&lt;br/&gt;    )&lt;br/&gt;    .add_all(event_size_plugin::EventSizePlugin(&lt;br/&gt;        config.relay.max_event_size.into(),&lt;br/&gt;    ))&lt;br/&gt;    .add_all(whitelist_plugins::PubKeyBlacklist(Arc::clone(&lt;br/&gt;        &amp;amp;config.relay.blacklist,&lt;br/&gt;    )))&lt;br/&gt;    .add_all(whitelist_plugins::KindBlacklist(Arc::clone(&lt;br/&gt;        &amp;amp;config.relay.disallowed_kinds,&lt;br/&gt;    )))&lt;br/&gt;    .add_all(whitelist_plugins::KindWhitelist(Arc::clone(&lt;br/&gt;        &amp;amp;config.relay.allowed_kinds,&lt;br/&gt;    )))&lt;br/&gt;    .add_any(whitelist_plugins::PubKeyWhiteList(Arc::clone(&lt;br/&gt;        &amp;amp;config.relay.whitelist,&lt;br/&gt;    )))&lt;br/&gt;    .add_any(whitelist_plugins::MentionedPubKey(Arc::clone(&lt;br/&gt;        &amp;amp;config.relay.whitelist,&lt;br/&gt;    )))&lt;br/&gt;    .add_plugins_manager(grpc_manager::GrpcPluginsManager::maybe_manager(&amp;amp;config).await)&lt;br/&gt;    .add_plugins_manager(rhai_manager::maybe_manager(&amp;amp;config).await);&lt;br/&gt;&lt;br/&gt;    if config.grasp.enable {&lt;br/&gt;        plugins_builder = plugins_builder&lt;br/&gt;            .add_all(grasp::plugins::ValidateRepoState)&lt;br/&gt;            .add_all(grasp::plugins::ValidateRepoEvent)&lt;br/&gt;            .add_all(grasp::plugins::RejectRepoState::new(Arc::clone(&amp;amp;relay_db)))&lt;br/&gt;            .add_all(grasp::plugins::GraspRepo::new(&amp;amp;config.relay.domain))&lt;br/&gt;            .add_any(grasp::plugins::AcceptMention::new(Arc::clone(&amp;amp;relay_db)))&lt;br/&gt;            .add_middleware(grasp::middlewares::repo_creator);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    let plugins = plugins_builder.build();&lt;br/&gt;    let mut relay_builder = LocalRelay::builder()&lt;br/&gt;        .addr(config.net.ip)&lt;br/&gt;        .port(config.net.port)&lt;br/&gt;        .auth_dm(true)&lt;br/&gt;        .min_pow(config.relay.min_pow)&lt;br/&gt;        .rate_limit(RateLimit::from(config.ratelimit.clone()))&lt;br/&gt;        .max_filter_limit(config.relay.max_limit.into())&lt;br/&gt;        .default_filter_limit(config.relay.default_limit.into())&lt;br/&gt;        .max_subid_length(config.relay.max_subid_length.into())&lt;br/&gt;        .database(relay_db)&lt;br/&gt;        .write_policy(plugins.clone())&lt;br/&gt;        .query_policy(plugins);&lt;br/&gt;&lt;br/&gt;    if config.relay.nip42 {&lt;br/&gt;        relay_builder = relay_builder.nip42(LocalRelayBuilderNip42::read_and_write());&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    if let Some(max_connections) = config.relay.max_connections {&lt;br/&gt;        relay_builder = relay_builder.max_connections(max_connections)&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    relay_builder.build()&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsx7553khw3xe4zhnsq44ctkvc32hgdck695j8zsem97yavm5djztqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77dxxa90</id>
    
      <title type="html"># Fallback Relays &amp;gt; `n34 config relays` command **Usage:** ``` ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsx7553khw3xe4zhnsq44ctkvc32hgdck695j8zsem97yavm5djztqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77dxxa90" />
    <content type="html">
      # Fallback Relays&lt;br/&gt;&lt;br/&gt;&amp;gt; `n34 config relays` command&lt;br/&gt;&lt;br/&gt;**Usage:**&lt;br/&gt;```&lt;br/&gt;Sets the default fallback relays if none provided. Use this relays for read and write&lt;br/&gt;&lt;br/&gt;Usage: n34 config relays [OPTIONS] [RELAYS]...&lt;br/&gt;&lt;br/&gt;Arguments:&lt;br/&gt;  [RELAYS]...  List of relay URLs to append to fallback relays. If empty, removes all fallback relays&lt;br/&gt;&lt;br/&gt;Options:&lt;br/&gt;      --override  Replace existing fallback relays instead of appending new ones&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;This command configures the default fallback relays, which `n34` uses to read&lt;br/&gt;from and write to. To add relays, provide their URLs as arguments to append&lt;br/&gt;them to the current list. Use the `--override` flag to replace the existing list&lt;br/&gt;entirely. To clear all fallback relays, run the command without any arguments.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsxmjxq4kfkdepy5v0kfjrg05ngfucdxpld9gm5tdursgdlxa4sr3qzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk778u05fn</id>
    
      <title type="html"># GRASP-02 Proactive Sync Status: DRAFT - expect breaking changes ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsxmjxq4kfkdepy5v0kfjrg05ngfucdxpld9gm5tdursgdlxa4sr3qzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk778u05fn" />
    <content type="html">
      # GRASP-02 Proactive Sync&lt;br/&gt;&lt;br/&gt;Status: DRAFT - expect breaking changes&lt;br/&gt;&lt;br/&gt;MUST proactively sync nostr events from other relays listed in `relays` tag of [git repository announcement](&lt;a href=&#34;https://nips.nostr.com/34#repository-announcements&#34;&gt;https://nips.nostr.com/34#repository-announcements&lt;/a&gt;) no less than once every 1h.&lt;br/&gt;&lt;br/&gt;MUST proactively sync missing git data from latest&lt;br/&gt;[repo state announcement](&lt;a href=&#34;https://nips.nostr.com/34#repository-state-announcements&#34;&gt;https://nips.nostr.com/34#repository-state-announcements&lt;/a&gt;) from other git servers listed in `clone` no less than every 1h.&lt;br/&gt;&lt;br/&gt;MUST proactively fetch git data related to accepted [git PR event](&lt;a href=&#34;https://nips.nostr.com/34#pull-requests&#34;&gt;https://nips.nostr.com/34#pull-requests&lt;/a&gt;) or [git PR update event](&lt;a href=&#34;https://nips.nostr.com/34#pull-request-updates&#34;&gt;https://nips.nostr.com/34#pull-request-updates&lt;/a&gt;) no less than every 1h and serve from `/refs/nostr/&amp;lt;event-id&amp;gt;`.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsx66y2dq06mfmsqj3q95delzc6fy664tqzdwqusptm220h4u7ye3gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77ja62yg</id>
    
      <title type="html">use frost_secp256k1_tr as frost; use frost::{Identifier, round1, ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsx66y2dq06mfmsqj3q95delzc6fy664tqzdwqusptm220h4u7ye3gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77ja62yg" />
    <content type="html">
      use frost_secp256k1_tr as frost;&lt;br/&gt;use frost::{Identifier, round1, round2};&lt;br/&gt;use rand_chacha::ChaCha20Rng;&lt;br/&gt;use rand_chacha::rand_core::SeedableRng;&lt;br/&gt;use std::fs;&lt;br/&gt;use std::collections::BTreeMap;&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    // 1. SETUP: Reload the KeyPackage we saved in the last example&lt;br/&gt;    let p1_json = fs::read_to_string(&amp;#34;p1_key.json&amp;#34;)&lt;br/&gt;        .map_err(|_| &amp;#34;Run example 6 first to generate p1_key.json&amp;#34;)?;&lt;br/&gt;    let p1_key_pkg: frost::keys::KeyPackage = serde_json::from_str(&amp;amp;p1_json)?;&lt;br/&gt;    let p1_id = *p1_key_pkg.identifier();&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;--- BIP-64MOD: Distributed Handshake Simulation ---&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // 2. SIGNER: Round 1 (Generate and Vault)&lt;br/&gt;    // In a real app, the Signer does this and sends the Commitment to a Nostr Relay.&lt;br/&gt;    let mut rng = ChaCha20Rng::from_seed([42u8; 32]);&lt;br/&gt;    let (p1_nonces, p1_commitments) = round1::commit(p1_key_pkg.signing_share(), &amp;amp;mut rng);&lt;br/&gt;&lt;br/&gt;    // Securely &amp;#34;vault&amp;#34; the secret nonces (Simulating a local DB or protected file)&lt;br/&gt;    let nonce_json = serde_json::to_string(&amp;amp;p1_nonces)?;&lt;br/&gt;    fs::write(&amp;#34;p1_nonce_vault.json&amp;#34;, nonce_json)?;&lt;br/&gt;    println!(&amp;#34;✅ Signer: Generated Nonce and saved to p1_nonce_vault.json&amp;#34;);&lt;br/&gt;    println!(&amp;#34;✅ Signer: Shared Public Commitment: {}&amp;#34;, hex::encode(p1_commitments.serialize()?));&lt;br/&gt;&lt;br/&gt;    // 3. COORDINATOR: Create Signing Request&lt;br/&gt;    // The Coordinator sees the commitment and asks the group to sign a Git Commit.&lt;br/&gt;    let message = b&amp;#34;gnostr-gcc-distributed-commit-xyz123&amp;#34;;&lt;br/&gt;    let mut commitments_map = BTreeMap::new();&lt;br/&gt;    commitments_map.insert(p1_id, p1_commitments);&lt;br/&gt;    &lt;br/&gt;    // We mock P2&amp;#39;s commitment here to satisfy the 2-of-3 threshold&lt;br/&gt;    let mock_p2_id = Identifier::try_from(2u16)?;&lt;br/&gt;    let mut rng2 = ChaCha20Rng::from_seed([7u8; 32]);&lt;br/&gt;    let (_, p2_commitments) = round1::commit(p1_key_pkg.signing_share(), &amp;amp;mut rng2); // Mocking&lt;br/&gt;    commitments_map.insert(mock_p2_id, p2_commitments);&lt;br/&gt;&lt;br/&gt;    let signing_package = frost::SigningPackage::new(commitments_map, message);&lt;br/&gt;    println!(&amp;#34;\n🚀 Coordinator: Created Signing Request for message: {:?}&amp;#34;, &lt;br/&gt;        String::from_utf8_lossy(message));&lt;br/&gt;&lt;br/&gt;    // 4. SIGNER: Round 2 (Fulfill Request)&lt;br/&gt;    // Signer receives the SigningPackage, reloads their secret nonce, and signs.&lt;br/&gt;    let vaulted_nonce_json = fs::read_to_string(&amp;#34;p1_nonce_vault.json&amp;#34;)?;&lt;br/&gt;    let p1_reloaded_nonces: round1::SigningNonces = serde_json::from_str(&amp;amp;vaulted_nonce_json)?;&lt;br/&gt;&lt;br/&gt;    let p1_share = round2::sign(&amp;amp;signing_package, &amp;amp;p1_reloaded_nonces, &amp;amp;p1_key_pkg)?;&lt;br/&gt;    &lt;br/&gt;    println!(&amp;#34;✅ Signer: Fulfilled request with Signature Share: {}&amp;#34;, &lt;br/&gt;        hex::encode(p1_share.serialize()));&lt;br/&gt;&lt;br/&gt;    // IMPORTANT: Delete the secret nonce after use to prevent reuse attacks!&lt;br/&gt;    fs::remove_file(&amp;#34;p1_nonce_vault.json&amp;#34;)?;&lt;br/&gt;    println!(&amp;#34;🛡️  Signer: Secret nonce deleted from vault (Reuse Protection).&amp;#34;);&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() { println!(&amp;#34;Enable nostr feature.&amp;#34;); }&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsxeqf90zqymwh9cty4wfhwkjyq8pp69thjlta7pqallmusk2e5nuqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7792f3s7</id>
    
      <title type="html">// Copyright 2025 Thomas Profelt // // Permission is hereby ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsxeqf90zqymwh9cty4wfhwkjyq8pp69thjlta7pqallmusk2e5nuqzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7792f3s7" />
    <content type="html">
      // Copyright 2025 Thomas Profelt&lt;br/&gt;//&lt;br/&gt;// Permission is hereby granted, free of charge, to any person obtaining a copy&lt;br/&gt;// of this software and associated documentation files (the “Software”), to deal&lt;br/&gt;// in the Software without restriction, including without limitation the rights&lt;br/&gt;// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell&lt;br/&gt;// copies of the Software, and to permit persons to whom the Software is&lt;br/&gt;// furnished to do so, subject to the following conditions:&lt;br/&gt;//&lt;br/&gt;// The above copyright notice and this permission notice shall be included in&lt;br/&gt;// all copies or substantial portions of the Software.&lt;br/&gt;//&lt;br/&gt;// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR&lt;br/&gt;// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,&lt;br/&gt;// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE&lt;br/&gt;// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER&lt;br/&gt;// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,&lt;br/&gt;// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE&lt;br/&gt;// SOFTWARE.&lt;br/&gt;&lt;br/&gt;// This implementation is derived from the original work authored by Thomas&lt;br/&gt;// Profelt in the `axum-raw-websocket` library.&lt;br/&gt;//&lt;br/&gt;// Source: &lt;a href=&#34;https://github.com/tompro/axum-raw-websocket/blob/master/src/lib.rs&#34;&gt;https://github.com/tompro/axum-raw-websocket/blob/master/src/lib.rs&lt;/a&gt;&lt;br/&gt;// Licensed under the MIT License.&lt;br/&gt;//&lt;br/&gt;// Note: Only this specific file is licensed under MIT. The remainder of the&lt;br/&gt;// project is licensed under AGPLv3.&lt;br/&gt;&lt;br/&gt;use std::future::Future;&lt;br/&gt;&lt;br/&gt;use axum::body::Body;&lt;br/&gt;use axum::extract::FromRequestParts;&lt;br/&gt;use axum::extract::ws::rejection::InvalidProtocolPseudoheader;&lt;br/&gt;use axum::extract::ws::rejection::{&lt;br/&gt;    ConnectionNotUpgradable,&lt;br/&gt;    InvalidConnectionHeader,&lt;br/&gt;    InvalidUpgradeHeader,&lt;br/&gt;    InvalidWebSocketVersionHeader,&lt;br/&gt;    MethodNotConnect,&lt;br/&gt;    MethodNotGet,&lt;br/&gt;    WebSocketKeyHeaderMissing,&lt;br/&gt;    WebSocketUpgradeRejection,&lt;br/&gt;};&lt;br/&gt;use axum::http::{&lt;br/&gt;    Method,&lt;br/&gt;    StatusCode,&lt;br/&gt;    Version,&lt;br/&gt;    header::{self, HeaderMap, HeaderName, HeaderValue},&lt;br/&gt;    request::Parts,&lt;br/&gt;};&lt;br/&gt;use axum::{Error, body::Bytes, response::Response};&lt;br/&gt;use hyper::upgrade::Upgraded;&lt;br/&gt;use hyper_util::rt::TokioIo;&lt;br/&gt;use sha1::{Digest, Sha1};&lt;br/&gt;&lt;br/&gt;/// This websocket upgrade is based on the axum integrated one&lt;br/&gt;/// [WebSocketUpgrade](axum::extract::ws::WebSocketUpgrade).&lt;br/&gt;///&lt;br/&gt;/// The main difference is that it will onvoke the on_upgrade callback with the&lt;br/&gt;/// raw socket which allow the socket to be used by other libraries than the&lt;br/&gt;/// default tokio-tungstenite.&lt;br/&gt;///&lt;br/&gt;/// For HTTP/1.1 requests, this extractor requires the request method to be&lt;br/&gt;/// `GET`; in later versions, `CONNECT` is used instead.&lt;br/&gt;/// To support both, it should be used with [`any`](axum::routing::any).&lt;br/&gt;///&lt;br/&gt;/// See the [module docs](axum::extract::ws) for an example.&lt;br/&gt;///&lt;br/&gt;/// [`MethodFilter`]: axum::routing::MethodFilter&lt;br/&gt;#[cfg_attr(docsrs, doc(cfg(feature = &amp;#34;ws&amp;#34;)))]&lt;br/&gt;pub struct RawSocketUpgrade&amp;lt;F = DefaultOnFailedUpgrade&amp;gt; {&lt;br/&gt;    /// `None` if HTTP/2&#43; WebSockets are used.&lt;br/&gt;    sec_websocket_key:      Option&amp;lt;HeaderValue&amp;gt;,&lt;br/&gt;    on_upgrade:             hyper::upgrade::OnUpgrade,&lt;br/&gt;    on_failed_upgrade:      F,&lt;br/&gt;    sec_websocket_protocol: Option&amp;lt;HeaderValue&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;F&amp;gt; std::fmt::Debug for RawSocketUpgrade&amp;lt;F&amp;gt; {&lt;br/&gt;    fn fmt(&amp;amp;self, f: &amp;amp;mut std::fmt::Formatter&amp;lt;&amp;#39;_&amp;gt;) -&amp;gt; std::fmt::Result {&lt;br/&gt;        f.debug_struct(&amp;#34;RelayUpgrade&amp;#34;)&lt;br/&gt;            .field(&amp;#34;sec_websocket_key&amp;#34;, &amp;amp;self.sec_websocket_key)&lt;br/&gt;            .field(&amp;#34;sec_websocket_protocol&amp;#34;, &amp;amp;self.sec_websocket_protocol)&lt;br/&gt;            .finish_non_exhaustive()&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;F&amp;gt; RawSocketUpgrade&amp;lt;F&amp;gt; {&lt;br/&gt;    #[allow(dead_code)]&lt;br/&gt;    pub fn on_failed_upgrade&amp;lt;C&amp;gt;(self, callback: C) -&amp;gt; RawSocketUpgrade&amp;lt;C&amp;gt;&lt;br/&gt;    where&lt;br/&gt;        C: OnFailedUpgrade,&lt;br/&gt;    {&lt;br/&gt;        RawSocketUpgrade {&lt;br/&gt;            sec_websocket_key:      self.sec_websocket_key,&lt;br/&gt;            on_upgrade:             self.on_upgrade,&lt;br/&gt;            on_failed_upgrade:      callback,&lt;br/&gt;            sec_websocket_protocol: self.sec_websocket_protocol,&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Finalize upgrading the connection and call the provided callback with&lt;br/&gt;    /// the stream.&lt;br/&gt;    #[must_use = &amp;#34;to set up the WebSocket connection, this response must be returned&amp;#34;]&lt;br/&gt;    pub fn on_upgrade&amp;lt;C, Fut&amp;gt;(self, callback: C) -&amp;gt; Response&lt;br/&gt;    where&lt;br/&gt;        C: FnOnce(TokioIo&amp;lt;Upgraded&amp;gt;) -&amp;gt; Fut &#43; Send &#43; &amp;#39;static,&lt;br/&gt;        Fut: Future&amp;lt;Output = ()&amp;gt; &#43; Send &#43; &amp;#39;static,&lt;br/&gt;        F: OnFailedUpgrade,&lt;br/&gt;    {&lt;br/&gt;        let on_upgrade = self.on_upgrade;&lt;br/&gt;        let on_failed_upgrade = self.on_failed_upgrade;&lt;br/&gt;&lt;br/&gt;        tokio::spawn(async move {&lt;br/&gt;            let upgraded = match on_upgrade.await {&lt;br/&gt;                Ok(upgraded) =&amp;gt; upgraded,&lt;br/&gt;                Err(err) =&amp;gt; {&lt;br/&gt;                    on_failed_upgrade.call(Error::new(err));&lt;br/&gt;                    return;&lt;br/&gt;                }&lt;br/&gt;            };&lt;br/&gt;            let upgraded: TokioIo&amp;lt;Upgraded&amp;gt; = TokioIo::new(upgraded);&lt;br/&gt;            callback(upgraded).await;&lt;br/&gt;        });&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;        if let Some(sec_websocket_key) = &amp;amp;self.sec_websocket_key {&lt;br/&gt;            // If `sec_websocket_key` was `Some`, we are using HTTP/1.1.&lt;br/&gt;&lt;br/&gt;            #[allow(clippy::declare_interior_mutable_const)]&lt;br/&gt;            const UPGRADE: HeaderValue = HeaderValue::from_static(&amp;#34;upgrade&amp;#34;);&lt;br/&gt;            #[allow(clippy::declare_interior_mutable_const)]&lt;br/&gt;            const WEBSOCKET: HeaderValue = HeaderValue::from_static(&amp;#34;websocket&amp;#34;);&lt;br/&gt;&lt;br/&gt;            Response::builder()&lt;br/&gt;                .status(StatusCode::SWITCHING_PROTOCOLS)&lt;br/&gt;                .header(header::CONNECTION, UPGRADE)&lt;br/&gt;                .header(header::UPGRADE, WEBSOCKET)&lt;br/&gt;                .header(&lt;br/&gt;                    header::SEC_WEBSOCKET_ACCEPT,&lt;br/&gt;                    sign(sec_websocket_key.as_bytes()),&lt;br/&gt;                )&lt;br/&gt;                .body(Body::empty())&lt;br/&gt;                .unwrap()&lt;br/&gt;        } else {&lt;br/&gt;            Response::new(Body::empty())&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// What to do when a connection upgrade fails.&lt;br/&gt;///&lt;br/&gt;/// See [`RawSocketUpgrade::on_failed_upgrade`] for more details.&lt;br/&gt;pub trait OnFailedUpgrade: Send &#43; &amp;#39;static {&lt;br/&gt;    /// Call the callback.&lt;br/&gt;    fn call(self, error: Error);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;F&amp;gt; OnFailedUpgrade for F&lt;br/&gt;where&lt;br/&gt;    F: FnOnce(Error) &#43; Send &#43; &amp;#39;static,&lt;br/&gt;{&lt;br/&gt;    fn call(self, error: Error) {&lt;br/&gt;        self(error)&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// The default `OnFailedUpgrade` used by `RawSocketUpgrade`.&lt;br/&gt;///&lt;br/&gt;/// It simply ignores the error.&lt;br/&gt;#[non_exhaustive]&lt;br/&gt;#[derive(Debug)]&lt;br/&gt;pub struct DefaultOnFailedUpgrade;&lt;br/&gt;&lt;br/&gt;impl OnFailedUpgrade for DefaultOnFailedUpgrade {&lt;br/&gt;    #[inline]&lt;br/&gt;    fn call(self, _error: Error) {}&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl&amp;lt;S&amp;gt; FromRequestParts&amp;lt;S&amp;gt; for RawSocketUpgrade&amp;lt;DefaultOnFailedUpgrade&amp;gt;&lt;br/&gt;where&lt;br/&gt;    S: Send &#43; Sync,&lt;br/&gt;{&lt;br/&gt;    type Rejection = WebSocketUpgradeRejection;&lt;br/&gt;&lt;br/&gt;    async fn from_request_parts(parts: &amp;amp;mut Parts, _state: &amp;amp;S) -&amp;gt; Result&amp;lt;Self, Self::Rejection&amp;gt; {&lt;br/&gt;        let sec_websocket_key = if parts.version &amp;lt;= Version::HTTP_11 {&lt;br/&gt;            if parts.method != Method::GET {&lt;br/&gt;                return Err(WebSocketUpgradeRejection::MethodNotGet(&lt;br/&gt;                    MethodNotGet::default(),&lt;br/&gt;                ));&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            if !header_contains(&amp;amp;parts.headers, header::CONNECTION, &amp;#34;upgrade&amp;#34;) {&lt;br/&gt;                return Err(WebSocketUpgradeRejection::InvalidConnectionHeader(&lt;br/&gt;                    InvalidConnectionHeader::default(),&lt;br/&gt;                ));&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            if !header_eq(&amp;amp;parts.headers, header::UPGRADE, &amp;#34;websocket&amp;#34;) {&lt;br/&gt;                return Err(WebSocketUpgradeRejection::InvalidUpgradeHeader(&lt;br/&gt;                    InvalidUpgradeHeader::default(),&lt;br/&gt;                ));&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            Some(&lt;br/&gt;                parts&lt;br/&gt;                    .headers&lt;br/&gt;                    .get(header::SEC_WEBSOCKET_KEY)&lt;br/&gt;                    .ok_or(WebSocketUpgradeRejection::WebSocketKeyHeaderMissing(&lt;br/&gt;                        WebSocketKeyHeaderMissing::default(),&lt;br/&gt;                    ))?&lt;br/&gt;                    .clone(),&lt;br/&gt;            )&lt;br/&gt;        } else {&lt;br/&gt;            if parts.method != Method::CONNECT {&lt;br/&gt;                return Err(WebSocketUpgradeRejection::MethodNotConnect(&lt;br/&gt;                    MethodNotConnect::default(),&lt;br/&gt;                ));&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            if parts&lt;br/&gt;                .extensions&lt;br/&gt;                .get::&amp;lt;hyper::ext::Protocol&amp;gt;()&lt;br/&gt;                .is_none_or(|p| p.as_str() != &amp;#34;websocket&amp;#34;)&lt;br/&gt;            {&lt;br/&gt;                return Err(WebSocketUpgradeRejection::InvalidProtocolPseudoheader(&lt;br/&gt;                    InvalidProtocolPseudoheader::default(),&lt;br/&gt;                ));&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            None&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        if !header_eq(&amp;amp;parts.headers, header::SEC_WEBSOCKET_VERSION, &amp;#34;13&amp;#34;) {&lt;br/&gt;            return Err(WebSocketUpgradeRejection::InvalidWebSocketVersionHeader(&lt;br/&gt;                InvalidWebSocketVersionHeader::default(),&lt;br/&gt;            ));&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        let on_upgrade = parts&lt;br/&gt;            .extensions&lt;br/&gt;            .remove::&amp;lt;hyper::upgrade::OnUpgrade&amp;gt;()&lt;br/&gt;            .ok_or(WebSocketUpgradeRejection::ConnectionNotUpgradable(&lt;br/&gt;                ConnectionNotUpgradable::default(),&lt;br/&gt;            ))?;&lt;br/&gt;&lt;br/&gt;        let sec_websocket_protocol = parts.headers.get(header::SEC_WEBSOCKET_PROTOCOL).cloned();&lt;br/&gt;&lt;br/&gt;        Ok(Self {&lt;br/&gt;            sec_websocket_key,&lt;br/&gt;            on_upgrade,&lt;br/&gt;            sec_websocket_protocol,&lt;br/&gt;            on_failed_upgrade: DefaultOnFailedUpgrade,&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;fn header_eq(headers: &amp;amp;HeaderMap, key: HeaderName, value: &amp;amp;&amp;#39;static str) -&amp;gt; bool {&lt;br/&gt;    if let Some(header) = headers.get(&amp;amp;key) {&lt;br/&gt;        header.as_bytes().eq_ignore_ascii_case(value.as_bytes())&lt;br/&gt;    } else {&lt;br/&gt;        false&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;fn header_contains(headers: &amp;amp;HeaderMap, key: HeaderName, value: &amp;amp;&amp;#39;static str) -&amp;gt; bool {&lt;br/&gt;    let header = if let Some(header) = headers.get(&amp;amp;key) {&lt;br/&gt;        header&lt;br/&gt;    } else {&lt;br/&gt;        return false;&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    if let Ok(header) = std::str::from_utf8(header.as_bytes()) {&lt;br/&gt;        header.to_ascii_lowercase().contains(value)&lt;br/&gt;    } else {&lt;br/&gt;        false&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;fn sign(key: &amp;amp;[u8]) -&amp;gt; HeaderValue {&lt;br/&gt;    use base64::engine::Engine as _;&lt;br/&gt;&lt;br/&gt;    let mut sha1 = Sha1::default();&lt;br/&gt;    sha1.update(key);&lt;br/&gt;    sha1.update(b&amp;#34;258EAFA5-E914-47DA-95CA-C5AB0DC85B11&amp;#34;);&lt;br/&gt;    let b64 = Bytes::from(base64::engine::general_purpose::STANDARD.encode(sha1.finalize()));&lt;br/&gt;    HeaderValue::from_maybe_shared(b64).expect(&amp;#34;base64 is a valid value&amp;#34;)&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsxcdn85e75ksajclgvcjcum9usuzmyx4qelg360rnvdgmcqyfyr2gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77cf6pgz</id>
    
      <title type="html">#[tokio::main] #[cfg(feature = &amp;#34;nostr&amp;#34;)] async fn main() ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsxcdn85e75ksajclgvcjcum9usuzmyx4qelg360rnvdgmcqyfyr2gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77cf6pgz" />
    <content type="html">
      #[tokio::main]&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;async fn main() {&lt;br/&gt;    use get_file_hash_core::publish_pr_update;&lt;br/&gt;    use nostr_sdk::Keys;&lt;br/&gt;    use nostr_sdk::EventId;&lt;br/&gt;    use std::str::FromStr;&lt;br/&gt;&lt;br/&gt;    let keys = Keys::generate();&lt;br/&gt;    let relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;    let d_tag = &amp;#34;my-awesome-repo-example&amp;#34;;&lt;br/&gt;    let pr_event_id = EventId::from_str(&amp;#34;f6e4d6a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9&amp;#34;).unwrap(); // Example PR Event ID&lt;br/&gt;    let updated_commit_id = &amp;#34;z9y8x7w6v5u4t3s2r1q0p9o8n7m6l5k4j3i2h1g0&amp;#34;;&lt;br/&gt;    let updated_clone_url = &amp;#34;git@github.com:user/my-feature-branch-v2.git&amp;#34;;&lt;br/&gt;&lt;br/&gt;    // Dummy EventId for examples that require a build_manifest_event_id&lt;br/&gt;    const DUMMY_BUILD_MANIFEST_ID_STR: &amp;amp;str = &amp;#34;f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0&amp;#34;;&lt;br/&gt;    let dummy_build_manifest_id = EventId::from_str(DUMMY_BUILD_MANIFEST_ID_STR).unwrap();&lt;br/&gt;&lt;br/&gt;    // Example 1: Without build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing PR update without build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_pr_update!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        &amp;amp;pr_event_id,&lt;br/&gt;        updated_commit_id,&lt;br/&gt;        updated_clone_url&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;PR update without build_manifest_event_id published.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // Example 2: With build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing PR update with build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_pr_update!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        &amp;amp;pr_event_id,&lt;br/&gt;        updated_commit_id,&lt;br/&gt;        updated_clone_url,&lt;br/&gt;        Some(&amp;amp;dummy_build_manifest_id)&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;PR update with build_manifest_event_id published.&amp;#34;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example publish_pr_update --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsxhuqpyy3sjyfl94pvej36s6prlmak0wmydhk49sjdgmkhg9s8dzczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77mpyzsh</id>
    
      <title type="html"># Manage Configuration Configuration allows you to set default ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsxhuqpyy3sjyfl94pvej36s6prlmak0wmydhk49sjdgmkhg9s8dzczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77mpyzsh" />
    <content type="html">
      # Manage Configuration&lt;br/&gt;&lt;br/&gt;Configuration allows you to set default values for various command parameters,&lt;br/&gt;such as fallback relays, Proof of Work (PoW) difficulty, a default bunker URL,&lt;br/&gt;and your Nostr private key (keyring). This avoids the need to enter your private key,&lt;br/&gt;bunker URL, relays, or PoW difficulty for every command, making `n34` more&lt;br/&gt;convenient to use.&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsx84ds9g3m75fw2yvvzsrfc45jgfzlsy2v6q4fl785yzsarq0255gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77wuad80</id>
    
      <title type="html">// n34 - A CLI to interact with NIP-34 and other stuff related to ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsx84ds9g3m75fw2yvvzsrfc45jgfzlsy2v6q4fl785yzsarq0255gzyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77wuad80" />
    <content type="html">
      // n34 - A CLI to interact with NIP-34 and other stuff related to codes in nostr&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU General Public License as published by&lt;br/&gt;// the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/gpl-3.0.html&amp;gt&#34;&gt;https://gnu.org/licenses/gpl-3.0.html&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use clap::Args;&lt;br/&gt;&lt;br/&gt;use super::IssueStatus;&lt;br/&gt;use crate::{&lt;br/&gt;    cli::{&lt;br/&gt;        CliOptions,&lt;br/&gt;        traits::CommandRunner,&lt;br/&gt;        types::{NaddrOrSet, NostrEvent},&lt;br/&gt;    },&lt;br/&gt;    error::{N34Error, N34Result},&lt;br/&gt;};&lt;br/&gt;&lt;br/&gt;#[derive(Debug, Args)]&lt;br/&gt;pub struct ResolveArgs {&lt;br/&gt;    /// Repository address in `naddr` format (`naddr1...`), NIP-05 format&lt;br/&gt;    /// (`4rs.nl/n34` or `_@4rs.nl/n34`), or a set name like `kernel`.&lt;br/&gt;    ///&lt;br/&gt;    /// If omitted, looks for a `nostr-address` file.&lt;br/&gt;    #[arg(value_name = &amp;#34;NADDR-NIP05-OR-SET&amp;#34;, long = &amp;#34;repo&amp;#34;)]&lt;br/&gt;    naddrs:   Option&amp;lt;Vec&amp;lt;NaddrOrSet&amp;gt;&amp;gt;,&lt;br/&gt;    /// The issue id to resolve it&lt;br/&gt;    issue_id: NostrEvent,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl CommandRunner for ResolveArgs {&lt;br/&gt;    async fn run(self, options: CliOptions) -&amp;gt; N34Result&amp;lt;()&amp;gt; {&lt;br/&gt;        crate::cli::common_commands::issue_status_command(&lt;br/&gt;            options,&lt;br/&gt;            self.issue_id,&lt;br/&gt;            self.naddrs,&lt;br/&gt;            IssueStatus::Resolved,&lt;br/&gt;            |issue_status| {&lt;br/&gt;                if issue_status.is_resolved() {&lt;br/&gt;                    return Err(N34Error::InvalidStatus(&lt;br/&gt;                        &amp;#34;You can&amp;#39;t resolve an resolved issue&amp;#34;.to_owned(),&lt;br/&gt;                    ));&lt;br/&gt;                }&lt;br/&gt;                Ok(())&lt;br/&gt;            },&lt;br/&gt;        )&lt;br/&gt;        .await&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs96s76p2y3ss2jes3gnf3q9qfm9eacaa9nz4ee7ewuykwjpldgh6czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77ea4g6a</id>
    
      <title type="html">// n34-relay - A nostr GRASP relay implementation // Copyright ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs96s76p2y3ss2jes3gnf3q9qfm9eacaa9nz4ee7ewuykwjpldgh6czyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77ea4g6a" />
    <content type="html">
      // n34-relay - A nostr GRASP relay implementation&lt;br/&gt;// Copyright (C) 2025 Awiteb &amp;lt;a@4rs.nl&amp;gt;&lt;br/&gt;//&lt;br/&gt;// This program is free software: you can redistribute it and/or modify&lt;br/&gt;// it under the terms of the GNU Affero General Public License as published&lt;br/&gt;// by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;// (at your option) any later version.&lt;br/&gt;//&lt;br/&gt;// This program is distributed in the hope that it will be useful,&lt;br/&gt;// but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;// GNU Affero General Public License for more details.&lt;br/&gt;//&lt;br/&gt;// You should have received a copy of the GNU Affero General Public License&lt;br/&gt;// along with this program. If not, see &amp;lt;&lt;a href=&#34;https://gnu.org/licenses/agpl-3.0&amp;gt&#34;&gt;https://gnu.org/licenses/agpl-3.0&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;use std::{fs, path::Path, sync::Arc};&lt;br/&gt;&lt;br/&gt;use rhai::{Engine, Scope};&lt;br/&gt;&lt;br/&gt;pub use self::rhai_caller::*;&lt;br/&gt;pub use self::rhai_errors::*;&lt;br/&gt;pub use self::rhai_runner::*;&lt;br/&gt;pub use self::rhai_worker::*;&lt;br/&gt;use crate::relay_config::RelayConfig;&lt;br/&gt;&lt;br/&gt;/// Rhai function caller&lt;br/&gt;mod rhai_caller;&lt;br/&gt;/// Rhai plugin manager errors&lt;br/&gt;mod rhai_errors;&lt;br/&gt;/// Parse a rhai script&lt;br/&gt;mod rhai_parser;&lt;br/&gt;/// The runner that run rhai scripts&lt;br/&gt;mod rhai_runner;&lt;br/&gt;/// The worker, who control the runner&lt;br/&gt;mod rhai_worker;&lt;br/&gt;&lt;br/&gt;/// Plugin type for Rhai scripts, indicating if they handle writes, queries, or&lt;br/&gt;/// both.&lt;br/&gt;pub enum RhaiPluginType {&lt;br/&gt;    Write,&lt;br/&gt;    Query,&lt;br/&gt;    Both,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// A Rhai script plugin.&lt;br/&gt;///&lt;br/&gt;/// The priority is either ALL (is_all=true) or ANY (is_all=false).&lt;br/&gt;/// Plugins can handle events, queries, or both depending on their functions.&lt;br/&gt;pub struct RhaiPlugin {&lt;br/&gt;    /// Plugin name without the &amp;#39;.rhai&amp;#39; extension&lt;br/&gt;    name:        String,&lt;br/&gt;    /// Whether this plugin has ALL priority (true) or ANY priority (false)&lt;br/&gt;    is_all:      bool,&lt;br/&gt;    /// Type of operations this plugin handles&lt;br/&gt;    plugin_type: RhaiPluginType,&lt;br/&gt;    /// Parsed abstract syntax tree of the plugin&lt;br/&gt;    ast:         rhai::AST,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// A collection of Rhai plugins, organized by type and priority.&lt;br/&gt;pub struct RhaiPlugins {&lt;br/&gt;    /// Write-type plugins with `all` priority.&lt;br/&gt;    all_write: Vec&amp;lt;Arc&amp;lt;RhaiPlugin&amp;gt;&amp;gt;,&lt;br/&gt;    /// Write-type plugins with `any` priority.&lt;br/&gt;    any_write: Vec&amp;lt;Arc&amp;lt;RhaiPlugin&amp;gt;&amp;gt;,&lt;br/&gt;    /// Query-type plugins with `all` priority.&lt;br/&gt;    all_query: Vec&amp;lt;Arc&amp;lt;RhaiPlugin&amp;gt;&amp;gt;,&lt;br/&gt;    /// Query-type plugins with `any` priority.&lt;br/&gt;    any_query: Vec&amp;lt;Arc&amp;lt;RhaiPlugin&amp;gt;&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl RhaiPluginType {&lt;br/&gt;    /// Returns true if the type is either `Write` or `Both`.&lt;br/&gt;    pub fn is_write(&amp;amp;self) -&amp;gt; bool {&lt;br/&gt;        matches!(self, Self::Write | Self::Both)&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// Returns true if the type is either `Query` or `Both`.&lt;br/&gt;    pub fn is_query(&amp;amp;self) -&amp;gt; bool {&lt;br/&gt;        matches!(self, Self::Query | Self::Both)&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl RhaiPlugin {&lt;br/&gt;    /// Parse a rhai script from path&lt;br/&gt;    pub fn from_file(&lt;br/&gt;        engine: &amp;amp;Engine,&lt;br/&gt;        plugin_name: &amp;amp;str,&lt;br/&gt;        path: impl AsRef&amp;lt;Path&amp;gt;,&lt;br/&gt;    ) -&amp;gt; RhaiPluginsResult&amp;lt;Self&amp;gt; {&lt;br/&gt;        let path = path.as_ref();&lt;br/&gt;&lt;br/&gt;        let ast = engine&lt;br/&gt;            .compile_into_self_contained(&lt;br/&gt;                &amp;amp;Scope::new(),&lt;br/&gt;                fs::read_to_string(path)&lt;br/&gt;                    .map_err(|err| RhaiPluginsError::ReadScript(err, path.to_path_buf()))?,&lt;br/&gt;            )&lt;br/&gt;            .map_err(|err| RhaiPluginsError::CompileScript(err, path.to_path_buf()))?;&lt;br/&gt;&lt;br/&gt;        Ok(Self {&lt;br/&gt;            name: plugin_name.to_owned(),&lt;br/&gt;            is_all: rhai_parser::is_all(plugin_name, &amp;amp;ast)?,&lt;br/&gt;            plugin_type: rhai_parser::plugin_type(plugin_name, &amp;amp;ast)?,&lt;br/&gt;            ast,&lt;br/&gt;        })&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;impl RhaiPlugins {&lt;br/&gt;    /// Create a new `[RhaiPlugins]` instance&lt;br/&gt;    pub fn new(plugins: Vec&amp;lt;Arc&amp;lt;RhaiPlugin&amp;gt;&amp;gt;) -&amp;gt; Self {&lt;br/&gt;        // Do the `filter_map` and collect&lt;br/&gt;        let do_fm = |cond: fn(&amp;amp;Arc&amp;lt;RhaiPlugin&amp;gt;) -&amp;gt; bool| {&lt;br/&gt;            plugins&lt;br/&gt;                .iter()&lt;br/&gt;                .filter_map(|p| if cond(p) { Some(Arc::clone(p)) } else { None })&lt;br/&gt;                .collect()&lt;br/&gt;        };&lt;br/&gt;&lt;br/&gt;        Self {&lt;br/&gt;            all_write: do_fm(|p| p.plugin_type.is_write() &amp;amp;&amp;amp; p.is_all),&lt;br/&gt;            any_write: do_fm(|p| p.plugin_type.is_write() &amp;amp;&amp;amp; !p.is_all),&lt;br/&gt;            all_query: do_fm(|p| p.plugin_type.is_query() &amp;amp;&amp;amp; p.is_all),&lt;br/&gt;            any_query: do_fm(|p| p.plugin_type.is_query() &amp;amp;&amp;amp; !p.is_all),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Gets the manager if Rhai plugins are configured, otherwise returns None.&lt;br/&gt;/// Logs an error if initialization fails.&lt;br/&gt;pub async fn maybe_manager(config: &amp;amp;RelayConfig) -&amp;gt; Option&amp;lt;PluginCaller&amp;gt; {&lt;br/&gt;    if config.plugins.rhai.plugins.is_empty() {&lt;br/&gt;        tracing::info!(&amp;#34;There is no rhai plugins, skipping initialization&amp;#34;);&lt;br/&gt;        return None;&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    let runner = match RhaiPluginsRunner::new(config) {&lt;br/&gt;        Ok(runner) =&amp;gt; Arc::new(runner),&lt;br/&gt;        Err(err) =&amp;gt; {&lt;br/&gt;            tracing::error!(&amp;#34;Failed to initialize the Rhai plugins runner: {err}&amp;#34;);&lt;br/&gt;            return None;&lt;br/&gt;        }&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    let (worker_tx, worker_rx) = flume::bounded(1024);&lt;br/&gt;    let caller = PluginCaller(worker_tx);&lt;br/&gt;&lt;br/&gt;    for _ in 0..config.plugins.rhai.workers.get() {&lt;br/&gt;        RhaiWorker::create(worker_rx.clone(), Arc::clone(&amp;amp;runner));&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    Some(caller)&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsrjz3hrt5qvvdfs5r3w498l5velt884qkarvndfjjhv0thcsyamnczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77p6pehx</id>
    
      <title type="html">//! A simple command-line tool that calculates and displays the ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsrjz3hrt5qvvdfs5r3w498l5velt884qkarvndfjjhv0thcsyamnczyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk77p6pehx" />
    <content type="html">
      //! A simple command-line tool that calculates and displays the SHA-256 hash of&lt;br/&gt;//! its own source file.&lt;br/&gt;//!&lt;br/&gt;//! This utility demonstrates how to use the `get_file_hash!` macro to obtain&lt;br/&gt;//! the hash of a specified file at compile time and incorporate it into runtime&lt;br/&gt;//! logic.&lt;br/&gt;&lt;br/&gt;use get_file_hash_core::get_file_hash;&lt;br/&gt;use sha2::{Digest, Sha256};&lt;br/&gt;&lt;br/&gt;const README_TEMPLATE_PART1: &amp;amp;str = r##&amp;#34;# `get_file_hash` macro&lt;br/&gt;&lt;br/&gt;This project provides a Rust procedural macro, `get_file_hash!`, designed to compute the SHA-256 hash of a specified file at compile time. This hash is then embedded directly into your compiled executable. This feature is invaluable for:&lt;br/&gt;&lt;br/&gt;*   **Integrity Verification:** Ensuring the deployed code hasn&amp;#39;t been tampered with.&lt;br/&gt;*   **Versioning:** Embedding a unique identifier linked to the exact source code version.&lt;br/&gt;*   **Cache Busting:** Generating unique names for assets based on their content.&lt;br/&gt;&lt;br/&gt;## Project Structure&lt;br/&gt;&lt;br/&gt;*   `get_file_hash_core`: A foundational crate containing the `get_file_hash!` macro definition.&lt;br/&gt;*   `get_file_hash`: The main library crate that re-exports the macro.&lt;br/&gt;*   `src/bin/get_file_hash.rs`: An example executable demonstrating the macro&amp;#39;s usage by hashing its own source file and updating this `README.md`.&lt;br/&gt;*   `build.rs`: A build script that also utilizes the `get_file_hash!` macro to hash `Cargo.toml` during the build process.&lt;br/&gt;&lt;br/&gt;## Usage of `get_file_hash!` Macro&lt;br/&gt;&lt;br/&gt;To use the `get_file_hash!` macro, ensure you have `get_file_hash` (or `get_file_hash_core` for direct usage) as a dependency in your `Cargo.toml`.&lt;br/&gt;&lt;br/&gt;### Example&lt;br/&gt;&lt;br/&gt;```rust&lt;br/&gt;use get_file_hash::get_file_hash;&lt;br/&gt;use sha2::{Digest, Sha256};&lt;br/&gt;&lt;br/&gt;fn main() {&lt;br/&gt;    // The macro resolves the path relative to CARGO_MANIFEST_DIR&lt;br/&gt;    let file_hash = get_file_hash!(&amp;#34;src/lib.rs&amp;#34;);&lt;br/&gt;    println!(&amp;#34;The SHA-256 hash of src/lib.rs is: {}&amp;#34;, file_hash);&lt;br/&gt;}&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;&amp;#34;##;&lt;br/&gt;&lt;br/&gt;const README_TEMPLATE_PART2: &amp;amp;str = r&amp;#34;## Setup and Building&lt;br/&gt;&lt;br/&gt;1.  **Clone the repository:**&lt;br/&gt;    ```bash&lt;br/&gt;    git clone &amp;lt;repository-url&amp;gt;&lt;br/&gt;    cd &amp;lt;repository-name&amp;gt;&lt;br/&gt;    ```&lt;br/&gt;2.  **Build the project:**&lt;br/&gt;    ```bash&lt;br/&gt;    cargo build&lt;br/&gt;    ```&lt;br/&gt;    During the build, `build.rs` will execute and print the hash of `Cargo.toml`.&lt;br/&gt;3.  **Run the example executable:**&lt;br/&gt;    ```bash&lt;br/&gt;    cargo run --bin get_file_hash&lt;br/&gt;    ```&lt;br/&gt;    This will print the hash of `src/bin/get_file_hash.rs` to your console.&lt;br/&gt;&lt;br/&gt;## Updating this `README.md`&lt;br/&gt;&lt;br/&gt;The hash information in this `README.md` is automatically generated by running the example executable.&lt;br/&gt;To update it, execute:&lt;br/&gt;&lt;br/&gt;```bash&lt;br/&gt;cargo run --bin get_file_hash &amp;gt; README.md&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;## Current File Hash Information (of `src/bin/get_file_hash.rs`)&lt;br/&gt;&lt;br/&gt;*   **Target File:** `src/bin/get_file_hash.rs`&lt;br/&gt;&amp;#34;;&lt;br/&gt;&lt;br/&gt;/// The main entry point of the application.&lt;br/&gt;///&lt;br/&gt;/// This function calculates the SHA-256 hash of the `get_file_hash.rs` source&lt;br/&gt;/// file using a custom procedural macro and then prints the hash to the&lt;br/&gt;/// console. It also includes a basic integrity verification check.&lt;br/&gt;fn main() {&lt;br/&gt;    // Calculate the SHA-256 hash of the current file (`get_file_hash.rs`) at&lt;br/&gt;    // compile time. The `get_file_hash!` macro reads the file content and&lt;br/&gt;    // computes its hash.&lt;br/&gt;    let self_hash = get_file_hash!(&amp;#34;get_file_hash.rs&amp;#34;);&lt;br/&gt;&lt;br/&gt;    let status_message = if self_hash.starts_with(&amp;#34;e3b0&amp;#34;) {&lt;br/&gt;        &amp;#34;Warning: This hash represents an empty file.&amp;#34;&lt;br/&gt;    } else {&lt;br/&gt;        &amp;#34;Integrity Verified.&amp;#34;&lt;br/&gt;    };&lt;br/&gt;&lt;br/&gt;    print!(&amp;#34;{}{}&amp;#34;, README_TEMPLATE_PART1, README_TEMPLATE_PART2);&lt;br/&gt;    println!(&amp;#34;*   **SHA-256 Hash:** `{}`&amp;#34;, self_hash);&lt;br/&gt;    println!(&amp;#34;*   **Status:** {}.\n&amp;#34;, status_message);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqszjnng973fp7q0vu7ujw3s290d8yanfwu886zkyx9xthv04aj5dsszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7767pch3</id>
    
      <title type="html"># n34 A CLI to interact with NIP-34 and other stuff related to ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqszjnng973fp7q0vu7ujw3s290d8yanfwu886zkyx9xthv04aj5dsszyrr0sfqwx02gfhxq0sg76jyj6wdqezlfr2kghne2ng5a04755tk7767pch3" />
    <content type="html">
      # n34&lt;br/&gt;&lt;br/&gt;A CLI to interact with NIP-34 and other stuff related to code in Nostr&lt;br/&gt;&lt;br/&gt;## About&lt;br/&gt;&lt;br/&gt;`n34` is a command-line interface (CLI) tool for sending and receiving Git&lt;br/&gt;issues, patches, and comments over the Nostr protocol. It supports creating,&lt;br/&gt;replying to, and managing issues and patches, making Git collaboration&lt;br/&gt;decentralized and censorship-resistant.&lt;br/&gt;&lt;br/&gt;The primary goal of `n34` is to implement [NIP-34] (`git` stuff), but its&lt;br/&gt;flexible design allows for additional use cases beyond Git workflows. For more&lt;br/&gt;details, see the following section.&lt;br/&gt;&lt;br/&gt;## Documentation&lt;br/&gt;&lt;br/&gt;Check the documentation at [n34.dev]&lt;br/&gt;&lt;br/&gt;## Features&lt;br/&gt;&lt;br/&gt;- [X] Repository announcements&lt;br/&gt;- [ ] Repository state announcements&lt;br/&gt;- [X] Patches (Send, fetch and list)&lt;br/&gt;- [X] Issues (Send, view and list)&lt;br/&gt;- [X] Replies&lt;br/&gt;- [X] Issues and patches status&lt;br/&gt;- [ ] Pull requests ([nostr-protocol/nips#1966])&lt;br/&gt;- [X] Gossip Model ([NIP-65])&lt;br/&gt;- [X] Proof of Work ([NIP-13])&lt;br/&gt;- [X] `nostr:` URI scheme, in the issue/reply content ([NIP-21])&lt;br/&gt;- [X] Signing using bunker ([NIP-46])&lt;br/&gt;- [X] Signing using [NIP-07] proxy ([nostr-browser-signer-proxy])&lt;br/&gt;- [ ] Code Snippets ([NIP-C0])&lt;br/&gt;- [X] In device relays and repos bookmark (`sets` command)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;## Why Nostr?&lt;br/&gt;&lt;br/&gt;Nostr is fundamentally different from traditional platforms because it’s not&lt;br/&gt;an application or service, it’s a decentralized protocol. This means any tool or&lt;br/&gt;app can integrate with it, enabling open, permissionless collaboration without&lt;br/&gt;relying on centralized gatekeepers. Unlike proprietary systems, Nostr doesn’t&lt;br/&gt;require emails, passwords, or accounts. You interact directly through relays,&lt;br/&gt;whether you self-host your own or use public ones, ensuring no single point of&lt;br/&gt;failure or control.&lt;br/&gt;&lt;br/&gt;What makes Nostr uniquely resilient is its design, the protocol itself is just&lt;br/&gt;a set of rules, not a company or product that can disappear. Your Git issues,&lt;br/&gt;patches, and comments persist as long as relays choose to store them, immune to&lt;br/&gt;the whims of corporate shutdowns or policy changes. Nostr is infrastructure in&lt;br/&gt;its purest form, an idea that outlives any temporary implementation. `n34` taps&lt;br/&gt;into a future-proof foundation for decentralized collaboration.&lt;br/&gt;&lt;br/&gt;### More about Nostr&lt;br/&gt;&lt;br/&gt;- &amp;lt;&lt;a href=&#34;https://nostr.com&amp;gt&#34;&gt;https://nostr.com&amp;gt&lt;/a&gt;;&lt;br/&gt;- &amp;lt;&lt;a href=&#34;https://nostr.org&amp;gt&#34;&gt;https://nostr.org&amp;gt&lt;/a&gt;;&lt;br/&gt;- &amp;lt;&lt;a href=&#34;https://nostr.how/en/what-is-nostr&amp;gt&#34;&gt;https://nostr.how/en/what-is-nostr&amp;gt&lt;/a&gt;;&lt;br/&gt;&lt;br/&gt;## Installation&lt;br/&gt;&lt;br/&gt;You can install n34 either by cloning the repository and building it with Cargo,&lt;br/&gt;or by using `cargo install` or Nix.&lt;br/&gt;&lt;br/&gt;### Building from source&lt;br/&gt;&lt;br/&gt;- Clone the repository:&lt;br/&gt;```sh&lt;br/&gt;git clone git://git.4rs.nl/awiteb/n34.git&lt;br/&gt;cd n34&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;- Build the release version:&lt;br/&gt;```sh&lt;br/&gt;cargo build --release&lt;br/&gt;```&lt;br/&gt;The binary will be available at `target/release/n34`.&lt;br/&gt;&lt;br/&gt;### Using cargo install&lt;br/&gt;&lt;br/&gt;```sh&lt;br/&gt;cargo install n34&lt;br/&gt;```&lt;br/&gt;The binary will be installed to your Cargo binary directory (typically `~/.cargo/bin/n34`).&lt;br/&gt;&lt;br/&gt;Make sure `~/.cargo/bin` is in your `PATH` environment variable to run the binary from anywhere.&lt;br/&gt;&lt;br/&gt;### Using `nix build` (&#43;v0.4)&lt;br/&gt;&lt;br/&gt;- Clone the repository.&lt;br/&gt;- Run the `nix build` command.&lt;br/&gt;&lt;br/&gt;The binary will be available at `result/bin/n34`.&lt;br/&gt;&lt;br/&gt;### Adding it to your [home-manager] (&#43;v0.4)&lt;br/&gt;&lt;br/&gt;- Add it as an input to your `flake.nix`:&lt;br/&gt;&lt;br/&gt;```nix&lt;br/&gt;inputs = {&lt;br/&gt;  # Specify the version you want to install, or remove `?ref` for the unreleased&lt;br/&gt;  # version. You can also use any mirror; it doesn&amp;#39;t have to be `git.4rs.nl`.&lt;br/&gt;  n34.url = &amp;#34;git&#43;&lt;a href=&#34;https://git.4rs.nl/awiteb/n34.git?ref=refs/tags/vx.y.x&amp;#34&#34;&gt;https://git.4rs.nl/awiteb/n34.git?ref=refs/tags/vx.y.x&amp;#34&lt;/a&gt;;;&lt;br/&gt;};&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;- Add it to your packages (ensure your home-manager `extraSpecialArgs` includes the `inputs`):&lt;br/&gt;&lt;br/&gt;```nix&lt;br/&gt;packages = [ inputs.n34.packages.&amp;#34;${pkgs.system}&amp;#34;.default ];&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;## Contributing&lt;br/&gt;&lt;br/&gt;Contributions to `n34` are welcome! You can help by opening issues (such as bug&lt;br/&gt;reports or feature requests) or submitting patches. **All contributions must be&lt;br/&gt;submitted through Nostr**. For more details on the process, please refer to the&lt;br/&gt;[CONTRIBUTING.md](CONTRIBUTING.md) file. Your support is greatly appreciated!&lt;br/&gt;&lt;br/&gt;## Contributions &amp;amp; Changes&lt;br/&gt;&lt;br/&gt;You can find the changelog at [CHANGELOG.md](CHANGELOG.md) and the list of&lt;br/&gt;contributors at [AUTHORS](AUTHORS) file.&lt;br/&gt;&lt;br/&gt;## License&lt;br/&gt;&lt;br/&gt;n34 is licensed under the GPL-3.0 License. This means that you are free to use,&lt;br/&gt;modify, and distribute the software under the terms of this license. Please&lt;br/&gt;refer to the [LICENSE](LICENSE) file for more details.&lt;br/&gt;&lt;br/&gt;[NIP-34]: &lt;a href=&#34;https://github.com/nostr-protocol/nips/blob/master/34.md&#34;&gt;https://github.com/nostr-protocol/nips/blob/master/34.md&lt;/a&gt;&lt;br/&gt;[NIP-65]: &lt;a href=&#34;https://github.com/nostr-protocol/nips/blob/master/65.md&#34;&gt;https://github.com/nostr-protocol/nips/blob/master/65.md&lt;/a&gt;&lt;br/&gt;[NIP-13]: &lt;a href=&#34;https://github.com/nostr-protocol/nips/blob/master/13.md&#34;&gt;https://github.com/nostr-protocol/nips/blob/master/13.md&lt;/a&gt;&lt;br/&gt;[NIP-21]: &lt;a href=&#34;https://github.com/nostr-protocol/nips/blob/master/21.md&#34;&gt;https://github.com/nostr-protocol/nips/blob/master/21.md&lt;/a&gt;&lt;br/&gt;[NIP-C0]: &lt;a href=&#34;https://github.com/nostr-protocol/nips/blob/master/C0.md&#34;&gt;https://github.com/nostr-protocol/nips/blob/master/C0.md&lt;/a&gt;&lt;br/&gt;[NIP-46]: &lt;a href=&#34;https://github.com/nostr-protocol/nips/blob/master/46.md&#34;&gt;https://github.com/nostr-protocol/nips/blob/master/46.md&lt;/a&gt;&lt;br/&gt;[NIP-07]: &lt;a href=&#34;https://github.com/nostr-protocol/nips/blob/master/07.md&#34;&gt;https://github.com/nostr-protocol/nips/blob/master/07.md&lt;/a&gt;&lt;br/&gt;[nostr-protocol/nips#1966]: &lt;a href=&#34;https://github.com/nostr-protocol/nips/pull/1966&#34;&gt;https://github.com/nostr-protocol/nips/pull/1966&lt;/a&gt;&lt;br/&gt;[nostr-browser-signer-proxy]: &lt;a href=&#34;https://crates.io/crates/nostr-browser-signer-proxy&#34;&gt;https://crates.io/crates/nostr-browser-signer-proxy&lt;/a&gt;&lt;br/&gt;[home-manager]: &lt;a href=&#34;https://github.com/nix-community/home-manager&#34;&gt;https://github.com/nix-community/home-manager&lt;/a&gt;&lt;br/&gt;[n34.dev]: &lt;a href=&#34;https://n34.dev&#34;&gt;https://n34.dev&lt;/a&gt;&lt;br/&gt;
    </content>
    <updated>2026-10-08T22:52:43Z</updated>
  </entry>

</feed>