Translations:Altchain PoP Lifecycle/14/en
From Veriblock Wiki
- APM constructs a VBK Tx that protects that Altchain block
- 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)
- 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)
- 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))
- VPM constructs a VBK PoP Tx proving inclusion of the generated Bitcoin transaction in the Bitcoin blockchain
- APM
- Constructs ATV
- Original data sent to VBK as a VBK transaction
- Constructs VTB[] (usually VTB count = 2-4)
- 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)
- Altchain Daemon
- Constructs and submit TX to network
- Has entire ATV, VTB[] → has about 10-20KB of data (even bigger than VBK TX, has additional scaffolding)
- Serialize data stored in new transaction format/type (Bitcoin-based uses two new script opcodes: OP_ATV, OP_VTB)
- When Altchain block (which contains the TX) is accepted:
- All full nodes write two objects:
- 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
- Writes (ATV, VTB[]) to Integration Library persistent store for future lookup.
- ...multiple (4-6 hours depending on blocktimes and altchain PoP parameters) later:
- 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)
- VeriBlock PoP miner gets paid out in VeriBlock tokens/coins (500 blocks after endorsed VeriBlock block)