Skip to content

aarksn/margin-foundation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

margin-foundation

The trust layer of The Margin (margin.report): the hash-chain code that makes the public forecast ledger tamper-evident. Deliberately tiny — one file, no dependencies — so anyone can read all of it and re-verify the published chain themselves.

ledger/chain.py   append / head / verify · GENESIS_HASH anchor

Verify the live ledger:

curl -s https://margin.report/api/ledger/chain.json > chain.json
python3 -c "import json,sys; sys.path.insert(0,'ledger'); import chain; \
  doc=json.load(open('chain.json')); \
  es=[{k:v for k,v in e.items() if k!='resolved'} for e in doc['entries']]; \
  print(chain.verify(es))"

History note: recreated 2026-07-05 after the original (authored in an ephemeral environment) was lost before ever publishing an entry. The genesis anchor is unchanged and fully auditable: it is SHA-256("the-margin-genesis") — verify with python3 -c "import hashlib; print(hashlib.sha256(b'the-margin-genesis').hexdigest())". No published chain ever existed under the old copy, so there is nothing to migrate and nothing that could have been rewritten.

About

The trust layer of The Margin: the hash-chain code that makes the public forecast ledger at margin.report tamper-evident. One file, no dependencies — read it all, verify the chain yourself.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages