This program represents a ledger to store XenBlock data and votes on X1 chain
initializeReserved for admin to initialize Global Statesubmit_blockReserved for the watch tower to send newly found blocksvote_for_blockPublic interface method for all miners who shall vote for found blocks
Attributes related to the ledger as a whole
block_idcounter
Single XenBlock is referenced by a combination of:
- "xen-block" byte-string
block id
Attributes of a single XenBlock
keyunique 32-byte sequence resolving to a valid XenBlock hashblock_typeregular (XM), XUNI or superblock (X.BLK)minerbase-58-encoded pubkey of a miner who has submitted the newly found blockvotescounter of other miners' votes for the block
Single Vote is referenced by a combination of:
- "xen-block-vote" byte-string
block idvoterbase-58-encoded pubkey of a voter
Attribute of a single vote for a XenBlock
keyunique 32-byte sequence resolving to a valid XenBlock hashslotunique id of a current X1 slot (block)
Attributes:
idminerkeyblock_typeslot(TBD if needed)
Attributes:
idvoterkeyslot(TBD if needed)
AlreadyInitializedAlreadySubmittedAlreadyVotedCannotSelfVote