You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Four composable subcommands under `psbt`, replacing the earlier
single-shot build-sign command: `psbt create`, `psbt add-input`,
`psbt add-output`, `psbt sign`. Each reads/writes a PSBT as hex via
stdin/stdout (or a file path), so they pipe together, e.g.:
psbt create | psbt add-input - --network tzec --txid ... --descriptor pkh(<pubkey>) \
| psbt add-output - --address ... --network tzec \
| psbt sign - --network tzec --privkey ... --consensus-branch-id 0xc2d6d0b4
`add-input` and `sign` work for all networks, not just Zcash, using
the wasm-utxo library helpers added in the parent commit:
- `add-input` requires `--prev-tx` (a full previous transaction)
unless `--network` is a value-committing network (Zcash/BCH-family)
whose sighash already commits the input amount.
- `sign` dispatches the sighash algorithm on `--network`: plain,
FORKID (BCH family), or Zcash ZIP-243. Manually verified end-to-end
for all three sighash families.
This lets the indexer-utxo regtest fixture generator build+sign a
transparent Zcash transaction off-node for zebrad's sendrawtransaction.
Refs: T1-3672
0 commit comments