SHARENOTEProof of energy
Home/Build
Build

Build with Sharenote

Three SDKs that pass the same vectors, a gRPC proto for templates, and a pay-per-call pattern for APIs and AI agents.

sharenotejs

TypeScript · 5.6.0
$ npm i @soprinter/sharenotejs
import { snp01 } from "@soprinter/sharenotejs";

const zb = snp01.parseZBit("20z00")!;
const t = snp01.target(zb);          // bigint
const v = snp01.verifyRecord(record);  // { verdict: "ATTRIBUTED", hash }

go-sharenote

Go · 3.6.0
$ go get github.com/soprinter/go-sharenote
import "github.com/soprinter/go-sharenote/snp01"

zb, _ := snp01.ParseZBit("20z00")
t := snp01.Target(zb)
v := snp01.VerifyRecord(rec, snp01.Registry)

sharenotelib

Python · 6.6.0
$ pip install sharenotelib
from sharenotelib import snp01

zb = snp01.parse_zbit("20z00")
t = snp01.target(zb)
v = snp01.verify_record(record)
AI agents and MCP

Let agents pay per call

An MCP tool answers a call with a JSON-RPC 402 error that carries a price. The agent mines or buys notes bound to the server origin and the current epoch, then retries with the notes in params._meta.sharenote. No account, no API key.

// MCP over HTTP, first call
{ "jsonrpc": "2.0", "id": 7,
  "error": { "code": 402, "message": "work required",
    "data": { "price": "g=sha256d;z=20z00;epoch=7;until=1763300000;period=3600;max=16" } } }

// retry
{ "method": "tools/call", "params": { "name": "search",
  "_meta": { "sharenote": ["534e3455…"] } } }
Ecosystem

What is being built

hashub

in development

The miner's hub: desktop and server. Merged mining, asks, offers, receipts, selling hashrate.

nspd

planned

Node Service Provider daemon. Serves SNP-07 templates and submits blocks.

z-chain

specified

The SNP-02 slot (0x534E) in the merged-mining tree. Not a separate chain.

chains

early

Node images and drivers for scrypt and SHA-256d parent chains.

snps

draft

The specs, with conformance vectors every SDK passes.

For language models

llms.txt

A short index at /llms.txt and the full spec text at /llms-full.txt, generated from the snps repo at build time so they never drift.

# Sharenote
> Proof of energy on Nostr. Specs SNP-01..09.

## Specs
- [SNP-01 Proof of Energy](https://sharenote.xyz/specs/01)
- [SNP-09 Access Paid in Work](https://sharenote.xyz/specs/09)

## SDKs
- sharenotejs, go-sharenote, sharenotelib