Package io.horizen

Class AbstractAccountModel

  • All Implemented Interfaces:
    SidechainModel<io.horizen.account.block.AccountBlock>

    public abstract class AbstractAccountModel
    extends Object
    implements SidechainModel<io.horizen.account.block.AccountBlock>
    • Constructor Detail

      • AbstractAccountModel

        public AbstractAccountModel()
    • Method Detail

      • buildScGenesisBlock

        public io.horizen.account.block.AccountBlock buildScGenesisBlock​(io.horizen.block.MainchainBlockReference mcRef,
                                                                         io.horizen.transaction.mainchain.SidechainCreation sidechainCreation,
                                                                         com.fasterxml.jackson.databind.JsonNode json,
                                                                         io.horizen.secret.PrivateKey25519 key,
                                                                         io.horizen.proof.VrfProof vrfProof,
                                                                         io.horizen.vrf.VrfOutput vrfOutput,
                                                                         io.horizen.utils.MerklePath mp,
                                                                         io.horizen.params.NetworkParams params)
        Specified by:
        buildScGenesisBlock in interface SidechainModel<io.horizen.account.block.AccountBlock>
      • getGenesisStateRoot

        protected byte[] getGenesisStateRoot​(io.horizen.block.MainchainBlockReference mcRef,
                                             io.horizen.params.NetworkParams params)
                                      throws io.horizen.account.state.MessageProcessorInitializationException
        Throws:
        io.horizen.account.state.MessageProcessorInitializationException
      • getCustomMessageProcessors

        protected abstract List<io.horizen.account.state.MessageProcessor> getCustomMessageProcessors​(io.horizen.params.NetworkParams params)