Class DetachedCosignatureBuilder

    • Constructor Detail

      • DetachedCosignatureBuilder

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

        protected DetachedCosignatureBuilder​(long version,
                                             KeyDto signerPublicKey,
                                             SignatureDto signature,
                                             Hash256Dto parentHash)
        Constructor.
        Parameters:
        version - Version.
        signerPublicKey - Cosigner public key.
        signature - Cosigner signature.
        parentHash - Hash of the aggregate transaction that is signed by this cosignature.
    • Method Detail

      • loadFromBinary

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

        public static DetachedCosignatureBuilder create​(long version,
                                                        KeyDto signerPublicKey,
                                                        SignatureDto signature,
                                                        Hash256Dto parentHash)
        Creates an instance of DetachedCosignatureBuilder.
        Parameters:
        version - Version.
        signerPublicKey - Cosigner public key.
        signature - Cosigner signature.
        parentHash - Hash of the aggregate transaction that is signed by this cosignature.
        Returns:
        Instance of DetachedCosignatureBuilder.
      • getParentHash

        public Hash256Dto getParentHash()
        Gets hash of the aggregate transaction that is signed by this cosignature.
        Returns:
        Hash of the aggregate transaction that is signed by this cosignature.