Repository navigation
v1.8.0: verify, decode, validate, inscription, tx details, and fixes - #54
Merged
Merged
Conversation
- Text mode escapes control characters in every string that comes from the API or from input, not only OP_RETURN text; hashes from the API must be hex. - A malformed --api-url is invalid input (exit code 2); JSON nested too deeply is an API error; a coinbase is never flagged RBF; non-ASCII addresses are rejected locally; opreturn --json reports the txid normalized. - Docs: JSON error keys, how amounts are typed, utxo --limit, --file comments, a quick start, option order, and uv.
- verify: recompute the txid, the Merkle root (refusing a 64-byte pair of nodes that is also a transaction, CVE-2017-12842), the header hash and its proof of work. The verdict depends only on the work proven: strong for a mainnet header at difficulty 50 T or more, weak otherwise. - decode: offline raw transaction decoder; --txid fetches it and checks it hashes to the txid. - validate: offline address validation (Base58Check, BIP 173, BIP 350), also run before balance, address and utxo, so a typo never reaches the API. - inscription: Ordinals envelope detection, following ord's parsing rules. - tx --inputs/--outputs, with outspends; addresses computed from the scripts. - opreturn tags Runes, Omni and the BIP 141 witness commitment. - HTTP reads are bounded in size and time; -n works with --api-url. - The fuzzer and the weekly live test cover the new parsers and commands.
Merged
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.
Fixes from an audit of 1.7.2 and four new commands. See CHANGELOG.md [Unreleased] for the full list.
Tested: 294 unit tests on Python 3.11-3.14, mypy --strict, ruff, 96% branch coverage, fuzzing (new parsers included), and the live smoke test against mainnet: 14/14.