{"id":50500806,"url":"https://github.com/prof-faustus/triple-entry-evidence-bsv","last_synced_at":"2026-06-02T11:03:42.081Z","repository":{"id":361432102,"uuid":"1254283151","full_name":"prof-faustus/triple-entry-evidence-bsv","owner":"prof-faustus","description":"BSV-native TEA evidence: hierarchical keys + ECDH linkage + per-field commitments + scoped disclosure, anchored on BSV (Merkle Proof Entity + Selective Verification).","archived":false,"fork":false,"pushed_at":"2026-05-30T15:26:22.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T17:13:02.570Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prof-faustus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-30T11:24:29.000Z","updated_at":"2026-05-30T15:26:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/prof-faustus/triple-entry-evidence-bsv","commit_stats":null,"previous_names":["prof-faustus/triple-entry-evidence-bsv"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/prof-faustus/triple-entry-evidence-bsv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prof-faustus%2Ftriple-entry-evidence-bsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prof-faustus%2Ftriple-entry-evidence-bsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prof-faustus%2Ftriple-entry-evidence-bsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prof-faustus%2Ftriple-entry-evidence-bsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prof-faustus","download_url":"https://codeload.github.com/prof-faustus/triple-entry-evidence-bsv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prof-faustus%2Ftriple-entry-evidence-bsv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33818579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-02T11:03:41.441Z","updated_at":"2026-06-02T11:03:42.074Z","avatar_url":"https://github.com/prof-faustus.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# triple-entry-evidence-bsv\n\nBSV-native implementation of the Triple-Entry Evidence (TEA) protocol: hierarchical sub-keys on the BSV curve, ECDH-derived bilateral linkage tags, per-field SHA-256 commitments, and scoped signed disclosure envelopes — with notes anchored on BSV through two patented layers:\n\n- **Layer A — Merkle Proof Entity** (WO 2022/100946 A1): proves a target data item of a BSV transaction is present in a BSV block via a BSV-canonical double-SHA256 Merkle proof terminating in the validated BSV block header chain.\n- **Layer B — Selective Verification / proof-sharding** (WO 2025/119666 A1): divides each Merkle proof into non-overlapping shards keyed on BSV transaction attributes (txid, in/out flag, in/out position, locking script, unlocking script, amount in minor units, position-in-block); a query returns only the queried record's shard.\n\nSelective disclosure is the privacy mechanism. The disclosure envelope releases one field key + value to one named verifier under explicit expiry; everything else stays private.\n\n## Layout\n\n| Crate | Role |\n|---|---|\n| `crates/bsv` | BSV double-SHA256 primitive; internal-LE / display-BE helpers |\n| `crates/bsvcurve` | BSV curve arithmetic, ECDSA (low-S RFC 6979 deterministic), ECDH, HKDF-SHA-256 |\n| `crates/tea` | TEA protocol: sub-keys, key material, per-field commitments, note body, sign/verify |\n| `crates/merkle` | Layer A: Merkle Proof Entity on the BSV block Merkle convention |\n| `crates/proofstore` | Layer B: Selective Verification index over BSV transaction attributes |\n| `crates/anchor` | Batch TEA notes into a Merkle root and record the BSV anchor envelope |\n| `crates/disclosure` | Scoped signed disclosure envelope (one field key + value per envelope) |\n| `crates/cli` | `tea-bsv` CLI (selftest, reproduce, worked-example, anchor, prove, verify, query, disclose) |\n| `crates/simstudy` | `tea-bsv-simstudy` synthetic-population evaluation |\n\n## Quick start\n\n```sh\ncargo build --release\ncargo test --workspace\ncargo run --release -p tee-cli -- selftest\ncargo run --release -p tee-cli -- worked-example\ncargo run --release -p tee-cli -- reproduce\ncargo run --release -p tee-simstudy -- -m 200\n```\n\n`tea-bsv reproduce` regenerates every committed deterministic vector under `vectors/` and diffs it byte-for-byte against the committed copy. Any drift fails the gate.\n\n## What this repository is and is not\n\n**It is** the BSV-native, Rust workspace implementation of the TEA evidence protocol anchored on BSV through the two named patents. Every reported number is produced by running this code.\n\n**It is not** a port of the parent project `triple-entry-evidence` and does not aim to bit-reproduce that project's Appendix C vectors. It is an independent reimplementation: the curve narration, byte-level layouts, and worked-example outputs are this repository's own.\n\n## Boundary\n\nThe system proves **presence + integrity + selective disclosure** of records anchored on BSV. It does not detect a record entered falsely **at origin** in an internally consistent population. That boundary is asserted by an explicit negative test in `crates/simstudy` (`origin_falsehood_detected = 0`).\n\n## License\n\nMIT. See [`LICENSE`](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprof-faustus%2Ftriple-entry-evidence-bsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprof-faustus%2Ftriple-entry-evidence-bsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprof-faustus%2Ftriple-entry-evidence-bsv/lists"}