SIP: 4 Layer: Core Title: Alternate Blockchain (Extended Transaction) Author: Brian BurrellComments-Summary: No comments yet. Comments-URI: https://github.com/neonatura/shioncoin/doc/standards/Comments:sip4.wiki Status: Final Type: Standards Track Created: 2018-12-29 License: PD
The alternate blockchain extended transaction stores the block header and the individual transactions associated.
Each altchain transaction holds a block header and a set of transactions.
A standard block header structure is used:
unsigned int nFlag;
uint256 hashPrevBlock;
uint256 hashMerkleRoot;
unsigned int nTime;
unsigned int nBits;
unsigned int nNonce;
Followed by one or more transactions with the following structure:
unsigned int nFlag; std::vectorvin; std::vector vout; unsigned int nLockTime; cbuff vchAux;
The "vchAux" variable is a proprietary packet of information that is optionally defined and used by the developer of the particular alternate blockchain.
Segregated witness operations are not supported for the alternate blockchain extended transaction.
All coinbase transactions include a BIP39 input which encapsulates the block height of the block being generated.
The coinbase consists of an "OP_RETURN 0x0" output script with an output coin value determined by the underlying "reward value" blockchain parameter provided.
Parameters are appended after the "OP_RETURN 0x0" is the format "< mode > < value >" where < mode > is a 8-bit number representing the parameter and < value > consisting of a 8-bit code.
The blockchain parameters provided are beyond the scope of this document.