Update Signatures

From Open Transactions
Revision as of 14:32, 22 October 2014 by Justusranvier (talk | contribs) (Created page with "<div style="float: right"><include iframe src="https://www.lucidchart.com/documents/embeddedchart/97025b62-3720-4810-ae85-5ae678031aed" width="600" height="1100" frameborder="...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.