Package io.horizen
Class AbstractAccountModel
- java.lang.Object
-
- io.horizen.AbstractAccountModel
-
- All Implemented Interfaces:
SidechainModel<io.horizen.account.block.AccountBlock>
public abstract class AbstractAccountModel extends Object implements SidechainModel<io.horizen.account.block.AccountBlock>
-
-
Constructor Summary
Constructors Constructor Description AbstractAccountModel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description io.horizen.account.block.AccountBlockbuildScGenesisBlock(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)protected abstract List<io.horizen.account.state.MessageProcessor>getCustomMessageProcessors(io.horizen.params.NetworkParams params)protected byte[]getGenesisStateRoot(io.horizen.block.MainchainBlockReference mcRef, io.horizen.params.NetworkParams params)StringgetModelName()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.horizen.SidechainModel
getForkConfigurator
-
-
-
-
Method Detail
-
getModelName
public String getModelName()
- Specified by:
getModelNamein interfaceSidechainModel<io.horizen.account.block.AccountBlock>
-
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:
buildScGenesisBlockin interfaceSidechainModel<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)
-
-