Closed grumbach closed 1 week ago
What's the impact here for OMNI disbursement if any?
What's the impact here for OMNI disbursement if any?
This reworks the structure of the Spend and refactors the transaction flow, it shouldn't affect OMNI disbursement
BREAKING CHANGE
Continuing off @maqi's redesign of Spends in refactor PR #1930 Redesigns the whole transacting flow from
CashNote
s all the way toSpend
with a simpler design:Removing:
OfflineTransfer
: all you need to make a transaction, signedTransferInputs
: amassed data to make a transaction's inputsCashNotesAndSecretKey
: this for inputs tooTransactionBuilder
: this makes a transaction from inputsCashNoteBuilder
: this makes cashnotes from transactionsUnsignedTransfer
: this is a special case when we don't have a key to sign the transactionTransaction
,Input
,Output
: this was in Spendsobfuscationabstraction500
lines of codeReplaced by:
UnsignedTransaction
: all you need to make a transaction, not signedSignedTransaction
: all you need to make a transaction, signedWhat's next
spend_simulation
tests that were using theTransaction
s inSpends
@RolandSherwinUnsignedTransaction::verify
UnsignedTransaction::new
,UnsignedTransaction::sign