Class VotingKeyLinkTransactionBodyBuilder

  • All Implemented Interfaces:
    Serializer

    public class VotingKeyLinkTransactionBodyBuilder
    extends java.lang.Object
    implements Serializer
    Binary layout for a voting key link transaction
    • Constructor Detail

      • VotingKeyLinkTransactionBodyBuilder

        protected VotingKeyLinkTransactionBodyBuilder​(java.io.DataInputStream stream)
        Constructor - Creates an object from stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
      • VotingKeyLinkTransactionBodyBuilder

        protected VotingKeyLinkTransactionBodyBuilder​(VotingKeyDto linkedPublicKey,
                                                      FinalizationEpochDto startEpoch,
                                                      FinalizationEpochDto endEpoch,
                                                      LinkActionDto linkAction)
        Constructor.
        Parameters:
        linkedPublicKey - Linked public key.
        startEpoch - Start finalization epoch.
        endEpoch - End finalization epoch.
        linkAction - Link action.
    • Method Detail

      • loadFromBinary

        public static VotingKeyLinkTransactionBodyBuilder loadFromBinary​(java.io.DataInputStream stream)
        Creates an instance of VotingKeyLinkTransactionBodyBuilder from a stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
        Returns:
        Instance of VotingKeyLinkTransactionBodyBuilder.
      • getLinkedPublicKey

        public VotingKeyDto getLinkedPublicKey()
        Gets linked public key.
        Returns:
        Linked public key.
      • getStartEpoch

        public FinalizationEpochDto getStartEpoch()
        Gets start finalization epoch.
        Returns:
        Start finalization epoch.
      • getEndEpoch

        public FinalizationEpochDto getEndEpoch()
        Gets end finalization epoch.
        Returns:
        End finalization epoch.
      • getLinkAction

        public LinkActionDto getLinkAction()
        Gets link action.
        Returns:
        Link action.
      • getSize

        public int getSize()
        Gets the size of the object.
        Specified by:
        getSize in interface Serializer
        Returns:
        Size in bytes.
      • serialize

        public byte[] serialize()
        Serializes an object to bytes.
        Specified by:
        serialize in interface Serializer
        Returns:
        Serialized bytes.