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/sharenotejsimport { 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-sharenoteimport "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 sharenotelibfrom sharenotelib import snp01
zb = snp01.parse_zbit("20z00")
t = snp01.target(zb)
v = snp01.verify_record(record)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…"] } } }
What is being built
hashub
in developmentThe miner's hub: desktop and server. Merged mining, asks, offers, receipts, selling hashrate.
nspd
plannedNode Service Provider daemon. Serves SNP-07 templates and submits blocks.
z-chain
specifiedThe SNP-02 slot (0x534E) in the merged-mining tree. Not a separate chain.
chains
earlyNode images and drivers for scrypt and SHA-256d parent chains.
snps
draftThe specs, with conformance vectors every SDK passes.
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
