Skip to content
View x39matrix's full-sized avatar

Block or report x39matrix

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
x39matrix/README.md

X39MATRIX Protocol

The first operational Sovereign Topos. An ICP canister that signs real Bitcoin transactions on mainnet — without a seed phrase, without a human in the signing loop, without permission. Anchored on Bitcoin via OpenTimestamps. Post-quantum reference layer (FIPS-203/204) live since 2026-06-07.

License: MIT Verify Threshold-ECDSA Post-Quantum PGP

Sovereign Operator

Jose Luis Olivares Esteban — operator, architect, and notary of this protocol.

GitHub github.com/x39matrix
Website x39matrix.org
DFINITY Forum "9-Layer Sovereign Protocol" thread
Release v1.1.0 github.com/x39matrix/x39matrix/releases/tag/v1.1.0
Contact grants@x39matrix.org (PGP encrypted to fingerprint above)
First operational PQ + BTC + OTS + WIPO filing 2026-06-02 (Bitcoin anchor blocks #952148, #952150, #952174)
First post-quantum sovereign signature 2026-06-07T10:59:51Z (manifest_triple.json, OTS-stamped)

⚡ Verify everything in 30 seconds

You should not trust this README. You should run this command:

curl -fsSL https://x39matrix.org/PUBLIC_VERIFY_X39_FULL.sh | bash

The script reproduces, in real time against public blockchains, every claim in this document:

  • 17 Bitcoin mainnet blocks
  • 4 Bitcoin transactions (incl. the first sovereign tECDSA send)
  • 1 Arbitrum One block
  • 1 Solana slot
  • 11 ICP canisters with module hashes
  • 1 ECDSA signature verification via BIP-143 sighash
  • 2 merkle-root matches against the public Certificate
  • 3 OpenTimestamps merkle proofs for the 8/8 integrity seal
  • 2 PDF artifact hashes

Expected output: Passed: 51 / 51. If your terminal shows anything else, the protocol just earned a free public audit.

For paranoid auditors (recommended): download, read, then run.

curl -fsSLO https://x39matrix.org/PUBLIC_VERIFY_X39_FULL.sh
chmod +x PUBLIC_VERIFY_X39_FULL.sh
less PUBLIC_VERIFY_X39_FULL.sh        # read it first
./PUBLIC_VERIFY_X39_FULL.sh

🌟 The historic milestone

On 2026-06-02 16:46:05 UTC, ICP canister arn4r-lqaaa-aaaao-baxwq-cai signed and broadcasted a real Bitcoin transaction on mainnet:

TXID:        b5a881a28341ea562800cd4f532cb5f737b21d38e44293dbbe8d1d0a0aede023
Block:       #952131
From:        bc1qv5s8tg54jrv7s79c24zrd4xcdfhjtrvuhqfwqw   (canister-controlled)
To:          bc1q6tkt7x38utprskxmwa9vfw4eypm84xxsj9r3xg
Value:       3,000 sats  (+ 9,978 sats change)
Fee:         905 sats   (6.44 sat/vB)

Signature DER (71 B):  3045022100…716728a9…d41e7b81 + 01 (SIGHASH_ALL)
Pubkey (33 B):         025968e3eea2adc6a3c7e0b24c39f3e94009393e57280cb9ccc3801251bb202083
                       ↑ threshold-ECDSA pubkey held by the subnet, NOT by any human

What makes this historic: the signing key is held in distributed shares across the IC subnet (~13 nodes). No human controls the seed phrase — because there is no seed phrase. The canister signed itself, per its programmed logic, with no operator participation.

Reproduce the cryptographic verification:

pip install ecdsa
python3 <<'PY'
import hashlib
from ecdsa import VerifyingKey, SECP256k1
from ecdsa.util import sigdecode_der

pk = bytes.fromhex("025968e3eea2adc6a3c7e0b24c39f3e94009393e57280cb9ccc3801251bb202083")
sig = bytes.fromhex("30450221009cb7810f310326414a26a8c010441ee75dc0ac4e5958e5053242b149658e338c0220716728a9af47c15cb54bebd9396c2377984672d6560a2a8b7fbe2a4db41e7b81")
sighash = bytes.fromhex("bc2ae31a2af24375c1e6ca674041c3f3c6c24a2cd74a915df575c3688dce12a5")

vk = VerifyingKey.from_string(pk, curve=SECP256k1, hashfunc=hashlib.sha256)
vk.verify_digest(sig, sighash, sigdecode=sigdecode_der)
print("✅ ECDSA signature VALID")
PY

Full BIP-143 sighash reconstruction is in PUBLIC_VERIFY_X39_FULL.sh §VI.


🔮 Post-Quantum Genesis — 2026-06-07

On 2026-06-07T10:59:51Z, the protocol produced its first post-quantum sovereign signature: a triple-signed manifest combining PGP (Ed25519), ECDSA (secp256k1, Bitcoin curve), and ML-DSA-87 (FIPS-204, NIST level V) over the same payload "GENESIS MANIFEST\n". The aggregated manifest_triple.json was immediately OpenTimestamps-stamped across four independent calendars and is pending Bitcoin block attestation.

manifest payload:        "GENESIS MANIFEST\n"
manifest sha-256:        a0a54f84de892f31e63bc8800c5faa2744fa1324505fb5a70901e548e02d6577
manifest_triple sha-256: ea65e89980dafaad8b01328f2772d0b060ddf05533f69cee82584cb18b5f6143

signatures:
  PGP   / Ed25519     C3E062EB251A11851C0B4FFD06870F0655D5BBE8 (sovereign master)
  ECDSA / secp256k1   Bitcoin curve, sovereign-held
  ML-DSA-87 / FIPS-204 / NIST level V (4627-byte sig, 2592-byte pubkey)

ML-DSA generation:       openssl genpkey -algorithm ML-DSA-87 (OpenSSL 3.5 native)
ML-DSA secret key:       NEVER left operator hardware; GPG-encrypted offline
OTS calendars:           a.pool.opentimestamps, b.pool.opentimestamps,
                         a.pool.eternitywall, ots.btc.catallaxy
Bitcoin attestation:     pending (1-6h from stamp)

The full evidence (manifest, three signatures, three pubkeys, OTS proof) is under evidence/pq_genesis_signature_20260607T105951Z/. Verify in ten seconds from any auditor's laptop with OpenSSL 3.5+:

cd evidence/pq_genesis_signature_20260607T105951Z
sha256sum -c SHA256SUMS.txt
gpg --verify pgp.sig manifest-genesis.bin
openssl dgst -sha256 -verify ecdsa.pub -signature ecdsa.sig manifest-genesis.bin
openssl pkeyutl -verify -pubin -inkey mldsa87.pub -in manifest-genesis.bin -sigfile mldsa87.sig
ots verify manifest_triple.json.ots -f manifest_triple.json

Honest scope: the PGP and ECDSA keys (both elliptic-curve) remain vulnerable to a cryptographically-relevant quantum computer per Gidney et al. (Google Quantum AI, 31 March 2026). The ML-DSA-87 layer is the post-quantum survivor under current NIST estimates. X39MATRIX is the bridge, not the final answer.


🛡️ Super Fortified Genesis — 2026-06-08

On 2026-06-08T20:37:26Z, the protocol upgraded to quadruple-signature post-quantum resilience, adding SLH-DSA-SHAKE-256s (FIPS 205) — a purely hash-based signature immune to both quantum attacks AND lattice breakthroughs.

signatures:
  PGP   / Ed25519           (classical, ~128 bit)
  ECDSA / secp256k1         (classical, ~128 bit)
  ML-DSA-87 / FIPS 204      (post-quantum, NIST Level 5, lattice-based)
  SLH-DSA-SHAKE-256s / FIPS 205  (post-quantum, NIST Level 5, hash-based)
Artifact SHA-256
manifest-fortify.bin ef3b829cd8c004dc5f75561e33cbce979d475cd79af9ba3e94f558418062286b
pgp.sig d5912b51742c1a3cd92eda1f81f00a46250d0b1b74ded4faa39e4aec856d3a2f
ecdsa.sig d05ece4e6fe968909c3db9aa711e730269670026b8154034ee13b6bd038ecb3f
mldsa87.sig 3637a2ca1ab9ccd6990e82796286dd3edbfb7c0da8edb6bb1e8e61d46884b287
slhdsa256s.sig (29,792 B) 385956b7a17f0b420d9360c2a848b259631d4b82fd42ae7c048d71c3e8ca74b0
SHA256SUMS.txt.ots pending BTC attestation (4 calendars received)

To compromise this manifest, an adversary must simultaneously:

  1. Deploy a CRQC exceeding 500,000 physical qubits (break Ed25519 + secp256k1)
  2. Solve Module-LWE in polynomial time (break ML-DSA-87)
  3. Break SHA-3/SHAKE-256 preimage resistance (break SLH-DSA)

Combined probability of simultaneous compromise: effectively zero under known physics.

Verify locally (requires OpenSSL 3.5+):

cd evidence/pq_super_fortify_20260608T203726Z
sha256sum -c SHA256SUMS.txt
gpg --verify pgp.sig manifest-fortify.bin
openssl dgst -sha256 -verify ecdsa.pub -signature ecdsa.sig manifest-fortify.bin
openssl pkeyutl -verify -pubin -inkey mldsa87.pub -in manifest-fortify.bin -sigfile mldsa87.sig
openssl pkeyutl -verify -pubin -inkey slhdsa256s.pub -in manifest-fortify.bin -sigfile slhdsa256s.sig

Evidence: evidence/pq_super_fortify_20260608T203726Z/


📜 The 7 Sovereign Axioms

X39MATRIX is defined by 7 axioms sealed in Bitcoin. The manifest's SHA-256 is anchored at block #948027 (Genesis #001).

# Formal Plain English
A1 Sovereign Morphism (threshold-ECDSA σ that factors only through the full subnet quorum) The canister signs Bitcoin because the key is shared across all subnet nodes. No human, no insider, no server can produce the signature alone.
A2 9-Layer × 5-Block Algebra (45 stratified modules with associative composition via η) Code organized in 9 modules × 5 components = 45 isolated, auditable units. Each talks only to neighbors.
A3 Algebraic Observation of Bitcoin (B → _X39 functor; integrity is temporal, not monetary) Bitcoin is our clock, not our wallet. We use it to order facts, not to move money.
A4 Auditorial Clans (threshold keys distinct per clan; cross-clan impersonation forbidden categorically) Multiple independent auditor groups can sign. None can pretend to be another. The math prevents it.
A5 SSD — Sovereign Signing Density = ∂(sovereign signing ops)/∂t We do NOT compete with Solana/Visa on raw TPS. We measure how many operations the network signs sovereignly per second. Quality metric, not throughput.
A6 Sovereign Digital Notary (Ω : Object → BTC_Block; produces irreversible pre-existence proofs) Anything can be sealed into Bitcoin permanently. The 8/8 integrity log was sealed this way (see below).
A7 Verifiable Inter-Clan Consensus (via coequalizer in _X39, not majority voting) Disagreements resolve via mathematical consensus object, not voting. If none exists, the question was malformed.

Manifest SHA-256: e54960277e8933fdf1635e769d66c23622bfe6e5c2cb2dd3a39ac3e78184595e


🟧 Bitcoin mainnet — anchors

Block Event UTC TXs
#948027 Genesis #001 2026-05-05 13:21:39 2,712
#948042 Audit 4 Exa-Ops 2026-05-05 15:02:43 5,669
#948055 B27 Quantum Stress 2026-05-05 17:12:22 3,512
#948162 Institutional Manifesto 2026-05-06 12:03:42 4,510
#948165 First commercial signature + Sovereign Minute Morocco 2026-05-06 12:30:56 3,828
#948177 Certificate Chain 2026-05-06 14:12:20 2,346
#948500 Sovereign Sealing #1 2026-05-08 19:29:44 4,295
#948501 Official Sealing #2 2026-05-08 19:39:11 4,169
#951586 EVM↔BTC cross-substrate loop 2026-05-29 16:18:18 4,592
#951605 SOL↔BTC cross-substrate loop 2026-05-29 19:47:00 3,985
#951892 Certificate Block A (merkle root MATCH) 2026-05-31 21:19:12 3,963
#951893 Certificate Block B (merkle root MATCH) 2026-05-31 21:20:47 3,527
#951946 Logical TPS record 2026-06-01 06:35:43 6,396
#952131 ★ First sovereign tECDSA send 2026-06-02 16:46:05
#952160 ★ 8/8 sealed (bob.btc calendar) 2026-06-03 00:12:13
#952161 ★ 8/8 sealed (alice calendar) 2026-06-03 00:16:09
#952174 ★ 8/8 sealed (catallaxy calendar) 2026-06-03 03:41:05
#952634 ★ corebackend v2.0.0-realcrypto genesis tECDSA 2026-06-06
pending ★ PQ triple-signature genesis (ML-DSA-87 included) 2026-06-07

Verify any block manually:

HEIGHT=952131
HASH=$(curl -s "https://blockstream.info/api/block-height/$HEIGHT")
curl -s "https://blockstream.info/api/block/$HASH" | python3 -m json.tool

Verify merkle root match (Certificate Block A):

HASH=$(curl -s "https://blockstream.info/api/block-height/951892")
curl -s "https://blockstream.info/api/block/$HASH" | \
  python3 -c "import sys,json; print(json.load(sys.stdin)['merkle_root'])"
# Must print: b9221a7f5dee1121900b592a84c5e186a022b3001389a82e00aa0f4f70db6239

🧊 ICP mainnet — architecture

11 canisters confirmed live on IC mainnet, all deployed in the same subnet o3ow2-2ipam-6fcj-…:

Canister ID Role Module hash (prefix)
arn4r-lqaaa-aaaao-baxwq-cai HUB / Ω — x39_bases (the BTC signer) 3911070e70bb6a39…
b4dy7-eyaaa-aaaao-baxra-cai L1 — Infrastructure a04f2a1305bd0998…
b3c6l-jaaaa-aaaao-baxrq-cai L2 — Identity (Merkle) a740ea69bece1810…
akiau-riaaa-aaaao-baxua-cai L3 — Execution (Ed25519) ad721c0155e3a926…
anjga-4qaaa-aaaao-baxuq-cai L4 — Consensus (tECDSA) d9dbfba7084d8aea…
s4zl3-eiaaa-aaaao-bay3a-cai L5 — Scalability (OmniChain) fd1ddbef113428b5…
adlli-haaaa-aaaao-baxvq-cai L6 — Identity SSI 8b51571fbb909971…
awm2f-giaaa-aaaao-baxwa-cai L7 — AI Governance ★ b65cc8b9ab5ae6f1…
bsbvx-7iaaa-aaaao-baxqa-cai Notarization 9 (corebackend v2.0.0-realcrypto) 4709f6a15a2262e7…
bvatd-sqaaa-aaaao-baxqq-cai Frontend 04e565b3425fe751…
nsy7t-jiaaa-aaaau-agwra-cai Public Dashboard (evidence portal) 04e565b3425fe751…

Verify any canister:

CANISTER=arn4r-lqaaa-aaaao-baxwq-cai
curl -s "https://ic-api.internetcomputer.org/api/v3/canisters/$CANISTER" | python3 -m json.tool
# Returns: module_hash, subnet_id, controllers

🌉 Cross-substrate anchors

Arbitrum One — Block #467,944,125

hash:        0x73a9333f51dc18be1f0c357d2209345b3c3cedcecb656752f8ce0dcb9b7d4a7b
state_root:  0x8cd21a7f706b88204194bb9ce911aacccc7aaba604bedd8d53eef11473dcceb9
timestamp:   2026-05-29 15:45:56 UTC
curl -s -X POST "https://arbitrum-one.publicnode.com" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x1be442bd",false],"id":1}'

Solana mainnet-beta — Slot #422,979,180

blockhash:   DTd4cbQcyuYhbX3FwQ8jm5yXQHL6Z6SQahy9sFAvsWP
parent_slot: 422,979,179
block_time:  2026-05-29 16:58:06 UTC
curl -s -X POST "https://api.mainnet-beta.solana.com" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"getBlock","params":[422979180,{"transactionDetails":"none"}]}'

⏱️ 8/8 Integrity Suite — sealed in 3 BTC blocks

Eight sovereign pillars tested, zero violations, log sealed via OpenTimestamps with 3 independent calendar attestations in 3 different Bitcoin blocks, all confirmed within 5h 30min.

Test executed:   2026-06-02 22:21:09 UTC
Log SHA-256:     16f61edb08c87ebb29717a2665dd6c258df39275db833fbf1695b3714b66ad5e
Calendars:       alice.btc, bob.btc, btc.calendar.catallaxy
Sealed in:       #952160 (bob), #952161 (alice), #952174 (catallaxy)
Merkle proofs:   3 valid
Cost to revoke:  ≥ $4.5B + impossible federated collusion

The 8 pillars

  1. Post-quantum keys exist on disk (ML-DSA-87 + ML-KEM-1024)
  2. PQ key sizes within FIPS 203/204 bounds
  3. .ots files have valid magic header
  4. SHA-256 of all PDF/script artifacts computable
  5. OpenTimestamps calendar reachability (4 hosts)
  6. ICP boundary node ic0.app reachable
  7. Bitcoin explorer reachable
  8. Workspace integrity (PDFs + scripts + PQ keys + .ots present)

🗺️ Roadmap — 12-month showcase engagement

If you are reading this from DFINITY Foundation or another aligned organization, the proposed engagement structure is below. The first ask is not money — it is 30 minutes of senior threshold-crypto engineer time.

# Timing Deliverable
M0 Month 0 30-min review call with senior threshold-crypto engineer
M1 Month 3 Threshold-Schnorr Solana library (Apache 2.0) — production prototype
M2 Month 6 9-Layer × 5-Block Pattern whitepaper — public draft
M3 Month 9 L7 AI Governance v2 integrating 11m Motoko AI package
M4 Month 12 Sovereign Stack open-sourced (Apache 2.0); first external pilot

Full proposal: X39MATRIX_DFINITY_V4.pdf.


🛡️ Sovereignty Continuity Plan

The single-operator structure is intentional (axiom A1) but raises a legitimate question: what happens if the operator disappears? Four structural guarantees:

  1. Key sovereignty without seed: The ECDSA key is held by the IC subnet, not the operator. Cannot be extracted, transferred, or destroyed by any human.
  2. Categorical spec > code: The 7 axioms are sealed in Bitcoin. Any developer can re-derive an equivalent implementation, preserving cryptographic anteriority.
  3. Apache 2.0 by M4: Full open-sourcing in 12 months allows legitimate forks under any maintainer.
  4. Pre-funded cycles + dead-man heartbeat: Cycles cover ≥ 18 months of operation; heartbeat canister delegates controllership to trustees after 90 days of operator silence.

Bus factor 1 → mathematical bus factor: there is no human whose absence stops the canister. The operator is curator, not author.


📞 Contact

  • GitHub Issues: file structured technical questions here.
  • Email (sovereign operator): grants@x39matrix.org, PGP-encrypted to fingerprint above.
  • Bitcoin block ledger: every commitment is on-chain; the protocol speaks before any human.

This README is sealed by being public on this repository. Its SHA-256 at the time of any GitHub commit can be verified against the commit's tree hash — a free, immutable timestamp from GitHub's own infrastructure.


📃 License roadmap

  • Now: This README is CC0 / Public Domain. The PDFs and PUBLIC_VERIFY_X39_FULL.sh are CC-BY: cite, share, mirror, audit.
  • Month 12 (M4): Full Sovereign Stack open-sourced under Apache 2.0.

🔐 Cryptographic identifiers — quick reference

hub_canister:         arn4r-lqaaa-aaaao-baxwq-cai
hub_ecdsa_pubkey:     025968e3eea2adc6a3c7e0b24c39f3e94009393e57280cb9ccc3801251bb202083
hub_btc_address:      bc1qv5s8tg54jrv7s79c24zrd4xcdfhjtrvuhqfwqw

first_sovereign_send_tx:
  txid:    b5a881a28341ea562800cd4f532cb5f737b21d38e44293dbbe8d1d0a0aede023
  block:   952131
  time:    2026-06-02T16:46:05Z

corebackend_v2_realcrypto:
  canister:  bsbvx-7iaaa-aaaao-baxqa-cai
  module:    0x4709f6a15a2262e7465637975dad18a0b1b121bb0a6e2ca5dfef1f189af1b342
  genesis_sig_sha256: 1ae12b5f042d09b27917b95633477b82331a1fd23ece5a0b1afe47d801b63c1d
  ots_block: 952634

pq_genesis_2026_06_07:
  manifest_sha256:        a0a54f84de892f31e63bc8800c5faa2744fa1324505fb5a70901e548e02d6577
  manifest_triple_sha256: ea65e89980dafaad8b01328f2772d0b060ddf05533f69cee82584cb18b5f6143
  signatures:             [PGP-Ed25519, ECDSA-secp256k1, ML-DSA-87]
  pq_algorithm:           ML-DSA-87 (FIPS-204, NIST level V)
  signed_utc:             2026-06-07T10:59:51Z
  ots_calendars:          4 (pending Bitcoin attestation)

axioms_manifest_sha256: e54960277e8933fdf1635e769d66c23622bfe6e5c2cb2dd3a39ac3e78184595e

integrity_8_of_8:
  log_sha256: 16f61edb08c87ebb29717a2665dd6c258df39275db833fbf1695b3714b66ad5e
  sealed_in_blocks: [952160, 952161, 952174]
  calendars: [bob.btc, alice, catallaxy]

certificate_blocks:
  - { height: 951892, merkle_root: b9221a7f5dee1121900b592a84c5e186a022b3001389a82e00aa0f4f70db6239 }
  - { height: 951893, merkle_root: c8e73b0a66219182c228c6c95760d834dcd1a0094c31e3de4592afbe9f5e0deb }

cross_substrate:
  arbitrum_block:  467944125
  arbitrum_hash:   0x73a9333f51dc18be1f0c357d2209345b3c3cedcecb656752f8ce0dcb9b7d4a7b
  solana_slot:     422979180
  solana_hash:     DTd4cbQcyuYhbX3FwQ8jm5yXQHL6Z6SQahy9sFAvsWP

pq_super_fortify_2026_06_08:
  manifest_sha256: ef3b829cd8c004dc5f75561e33cbce979d475cd79af9ba3e94f558418062286b
  signatures: [PGP-Ed25519, ECDSA-secp256k1, ML-DSA-87, SLH-DSA-SHAKE-256s]
  pq_algorithms: [ML-DSA-87 (FIPS-204), SLH-DSA-SHAKE-256s (FIPS-205)]
  signed_utc: 2026-06-08T20:37:26Z
  ots_calendars: 4 (pending Bitcoin attestation)

X39MATRIX

The math holds. The seals stack. The canister signs.

Don't trust. Verify.

curl -fsSL https://x39matrix.org/PUBLIC_VERIFY_X39_FULL.sh | bash

51 / 51.

Popular repositories Loading

  1. x39matrix x39matrix Public

    Sovereign post-quantum verification protocol anchored to Bitcoin via OpenTimestamps, deployed on Internet Computer mainnet.

    Shell

  2. x39matrix-web x39matrix-web Public

    X39Matrix Sovereign Protocol Website

    HTML