Update Signatures

From Open Transactions
Jump to navigation Jump to search

Initial Conditions

  • The finished transaction list contains zero or more finalized transactions
  • The transactions are valid in all respects except for missing signatures

Sequence

  • If the finished transaction list is empty, the rest of the procedure can be skipped.
  • Loop through each transaction.
    • Within each transaction, loop through every input.
      • Within each input, loop through every pubkey in the redeem script.
        • If the wallet possesses the private key corresponding to the pubkey, create the appropriate signature.
          • Add the signature to the transaction.
          • Add the signature to the signature list in the appropriate position.
  • Move all transactions in the finished transaction list to the pending transaction database, where they will wait for additional signatures from other voting pool members.