Translations:Altchain PoP Lifecycle/14/en

From Veriblock Wiki
Jump to: navigation, search
  1. APM constructs a VBK Tx that protects that Altchain block
    1. This contains data field (the size of which depends on the altchain block header size, block hash/identifier size, and altchain PoP miner payout information size)
  2. VPM constructs a BTC Tx that protects a VeriBlock keystone block which is or occurs after the block containing the VBK Tx containing Altchain information (note, many different altchains could each have many publications in this period of VeriBlock blocks)
    1. VeriBlock data is put in BTC OP_RETURN (or the alternative encoding format is used); 80 bytes (VBK block header (64 bytes) + VeriBlock PoP miner payout info (16 bytes))
  3. VPM constructs a VBK PoP Tx proving inclusion of the generated Bitcoin transaction in the Bitcoin blockchain
  4. APM
    1. Constructs ATV
      1. Original data sent to VBK as a VBK transaction
    2. Constructs VTB[] (usually VTB count = 2-4)
    3. Submits both data objects to Altchain daemon (maybe 5-30KB of data, depending on altchain, VeriBlock, and Bitcoin blocktimes; note that an upcoming optimization will de-duplicate multiple VTBs which contain significantly overlapping data, which will greatly reduce the size of multiple VTBs stored by an altchain)
  5. Altchain Daemon
    1. Constructs and submit TX to network
      1. Has entire ATV, VTB[] → has about 10-20KB of data (even bigger than VBK TX, has additional scaffolding)
      2. Serialize data stored in new transaction format/type (Bitcoin-based uses two new script opcodes: OP_ATV, OP_VTB)
  6. When Altchain block (which contains the TX) is accepted:
    1. All full nodes write two objects:
      1. Write the Tx via the block (default behavior) → most likely this is NOT the daemon that the APM submitted the Tx to, but rather the winning miner that bundles the TX together and creates the block
      2. Writes (ATV, VTB[]) to Integration Library persistent store for future lookup.
  7. ...multiple (4-6 hours depending on blocktimes and altchain PoP parameters) later:
    1. Altchain PoP miner who secured block M receives a reward in altchain tokens/coins M+N blocks after endorsed altchain block from Altchain coinbase reward (including fees)
    2. VeriBlock PoP miner gets paid out in VeriBlock tokens/coins (500 blocks after endorsed VeriBlock block)