go-blockchain/wire
Claude 0408d2f3fa
Some checks failed
Security Scan / security (push) Successful in 9s
Test / Test (push) Failing after 15s
refactor(types): change TxOutputBare.Target to TxOutTarget interface
Prepares for HF1 output target types (TxOutMultisig, TxOutHTLC).
All call sites updated to type-assert TxOutToKey where needed.

Modified files:
- types/transaction.go: TxOutputBare.Target is now TxOutTarget
- wire/transaction.go: encode/decode use type switch on target
- chain/ring.go: type-assert target to TxOutToKey for key extraction
- wallet/scanner.go: type-assert target before key comparison
- tui/explorer_model.go: type-assert target for display
- wire/transaction_test.go: type-assert in assertions
- wallet/builder_test.go: type-assert in assertions

Co-Authored-By: Charon <charon@lethean.io>
2026-03-16 20:23:27 +00:00
..
block.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
block_test.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
decoder.go chore: use range-over-integer (Go 1.22+) 2026-02-24 16:14:08 +00:00
decoder_test.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
encoder.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
encoder_test.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
hash.go feat(wire): v2+ transaction serialisation with real testnet verification 2026-02-21 19:09:34 +00:00
hash_test.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
transaction.go refactor(types): change TxOutputBare.Target to TxOutTarget interface 2026-03-16 20:23:27 +00:00
transaction_test.go refactor(types): change TxOutputBare.Target to TxOutTarget interface 2026-03-16 20:23:27 +00:00
transaction_v2_test.go feat(wire): v2+ transaction serialisation with real testnet verification 2026-02-21 19:09:34 +00:00
treehash.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
treehash_test.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
varint.go feat: Phase 0 scaffold -- config, types, wire, difficulty 2026-02-20 15:10:33 +00:00
varint_test.go feat: Phase 0 scaffold -- config, types, wire, difficulty 2026-02-20 15:10:33 +00:00