Transaction: rename script -> prevOutScript
Transaction: rename type to hashType
tests: avoid b2h where toHex exists
Transaction: tests should show unboxing of parameters
Transaction: now returns index of added input/output
Transaction: remove estimateFee

This is a wallet abstraction.
Transaction: rename key to privKey and standardize type check