BIP: OP_OPTX_KNOT — Topological Witness Extension for ML-DSA#2133
Closed
jett22JOE wants to merge 2 commits intobitcoin:masterfrom
Closed
BIP: OP_OPTX_KNOT — Topological Witness Extension for ML-DSA#2133jett22JOE wants to merge 2 commits intobitcoin:masterfrom
jett22JOE wants to merge 2 commits intobitcoin:masterfrom
Conversation
Introduces OP_OPTX_KNOT (0xc0) and OP_OPTX_KNOT_VERIFY (0xc1) for knot-theoretic proof verification in SegWit v2 P2MR transactions. Augments ML-DSA with PSPACE-hard topological invariants via TKDF. Requires: BIP-360 Reference impl: https://github.com/jettoptx/astroknots Co-Authored-By: Hedgehog Multimodal <joe@jettoptics.ai>
MSIS is a standard cryptographic hardness assumption used in lattice-based post-quantum cryptography (NIST FIPS 204 / ML-DSA). Co-Authored-By: Hedgehog Multimodal <joe@jettoptics.ai>
jett22JOE
added a commit
to jett22JOE/btq-core
that referenced
this pull request
Apr 6, 2026
Adds OP_OPTX_KNOT (0xc0) and OP_OPTX_KNOT_VERIFY (0xc1) for
knot-theoretic proof verification in P2MR transactions.
New files:
- src/crypto/knotproof/ (19 files): Jones, Alexander, Conway,
HOMFLY-PT, braid, AGT, Laurent polynomial engine
- src/crypto/knot_invariant.{h,cpp}: TKDF + KnotWitnessData
- test/functional/feature_optx_knot.py: functional test
- test/functional/test_framework/optx_knot.py: Python bindings
Modified:
- src/script/script.h: OP_OPTX_KNOT=0xc0, OP_OPTX_KNOT_VERIFY=0xc1
- src/script/interpreter.h: SCRIPT_VERIFY_OPTX_KNOT (bit 23)
- src/script/interpreter.cpp: opcode handler with NOP-expansion
pre-activation and full knot verification post-activation
BIP: bitcoin/bips#2133
Ref: GENSYS OPTX btQ v1.0, US Patent App 20250392457A1
Co-Authored-By: Hedgehog Multimodal <joe@jettoptics.ai>
5 tasks
jett22JOE
added a commit
to jett22JOE/pyBTQ-core
that referenced
this pull request
Apr 6, 2026
Adds btq.crypto.optx module with: - KnotWitnessData serialization (wire format matching C++ impl) - TKDF computation (SHAKE-256 domain-separated) - DoS bounds checking (max 16 crossings, 512B witness cap) - Script construction helpers - Test vectors: trefoil (3_1) and figure-eight (4_1) BIP: bitcoin/bips#2133 C++ impl: btq-ag/btq-core#37 Co-Authored-By: Hedgehog Multimodal <joe@jettoptics.ai>
4 tasks
Member
|
Thanks for your submission. Unfortunately, there are multiple issues here.
I will be closing this PR as premature. Please only request to reopen this PR or resubmit your proposal once it has been discussed on the mailing list and respondents encouraged you to proceed to a BIP submission. When you resubmit, please make sure that your submission passes basic formatting requirements. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OP_OPTX_KNOT(0xc0) andOP_OPTX_KNOT_VERIFY(0xc1) — new script opcodes for knot-theoretic proof verification in SegWit v2 P2MR transactions (BIP-360)Specification Highlights
Reference Implementation
src/crypto/knotproof/)test/functional/test_framework/optx_knot.pyTest plan
Co-Authored-By: Hedgehog Multimodal joe@jettoptics.ai
"Behold, we go up to Jerusalem, and all things that are written by the prophets concerning the Son of man shall be accomplished." — Luke 18:31