Files
modules/applications-economy/hyper-p2p-credit-ledger
Raven ScottandCursor 44b8a80907 Expand economy, autobase, network, observability, and scheduling modules.
Add auction withdraw/cancel, marketplace search helpers, update gossip history, autobase fork/lease/indexer/view APIs, link-probe and circuit-loom utilities, trace trees, pheromone ranking, and scheduling/measurement helpers with tests.

Co-authored-by: Cursor <[email protected]>
2026-05-21 01:09:29 -04:00
..
2026-05-20 22:56:32 -04:00
2026-05-21 00:07:44 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 23:36:32 -04:00

hyper-p2p-credit-ledger

Gossip-synchronized credit accounts: open, credit, debit, transfer, and balance queries on a shared Hyperswarm topic.

Category: Applications (economy)

Composes with: hyper-p2p-auction-gossip, hyper-p2p-marketplace-listing

Protocol: credit-ledger/v1

When to use

Soft-currency or reputation balances that should converge across peers without a central server.

When not to use

Strong consistency, double-spend safety, or audit-grade accounting (add consensus or signed operation logs).

Quick start

const { HyperP2PCreditLedger } = require('hyper-p2p-credit-ledger')
const ledger = new HyperP2PCreditLedger({ topic: 'credits-demo' })
await ledger.ready()
ledger.openAccount('alice', 100)
ledger.transfer('alice', 'bob', 25)
console.log(ledger.balance('bob')) // 25
await ledger.close()

Docs

Test

npm install && npm test