go-blockchain/wallet
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
..
account.go chore: fmt.Errorf(static) → errors.New 2026-02-24 16:11:27 +00:00
account_test.go feat(wallet): account key management with Argon2id encryption 2026-02-20 23:14:17 +00:00
builder.go chore: use slices.Contains for linear search 2026-02-24 16:19:31 +00:00
builder_test.go refactor(types): change TxOutputBare.Target to TxOutTarget interface 2026-03-16 20:23:27 +00:00
extra.go feat(wallet): TX extra parsing for wallet-critical tags 2026-02-20 23:02:13 +00:00
extra_test.go feat(wallet): TX extra parsing for wallet-critical tags 2026-02-20 23:02:13 +00:00
integration_test.go feat(chain): integrate consensus validation into sync 2026-02-21 01:11:33 +00:00
mnemonic.go chore: use range-over-integer (Go 1.22+) 2026-02-24 16:14:08 +00:00
mnemonic_test.go feat(wallet): mnemonic seed encode/decode with Electrum wordlist 2026-02-20 22:59:16 +00:00
ring.go feat(wallet): RPCRingSelector for decoy output selection 2026-02-20 23:20:15 +00:00
ring_test.go feat(wallet): RPCRingSelector for decoy output selection 2026-02-20 23:20:15 +00:00
scanner.go refactor(types): change TxOutputBare.Target to TxOutTarget interface 2026-03-16 20:23:27 +00:00
scanner_test.go feat(wallet): V1Scanner with ECDH output detection 2026-02-20 23:17:22 +00:00
signer.go feat(wallet): NLSAGSigner with ring signature interface 2026-02-20 23:08:50 +00:00
signer_test.go feat(wallet): NLSAGSigner with ring signature interface 2026-02-20 23:08:50 +00:00
transfer.go feat(wallet): transfer type and go-store persistence 2026-02-20 23:05:08 +00:00
transfer_test.go feat(wallet): transfer type and go-store persistence 2026-02-20 23:05:08 +00:00
wallet.go chore: sort.Slice → slices.SortFunc 2026-02-24 16:17:40 +00:00
wallet_test.go feat(wallet): orchestrator with sync, balance, and send 2026-02-20 23:29:42 +00:00
wordlist.go feat(wallet): mnemonic seed encode/decode with Electrum wordlist 2026-02-20 22:59:16 +00:00