Class SecretProofTransactionBuilder

  • All Implemented Interfaces:
    Serializer

    public class SecretProofTransactionBuilder
    extends TransactionBuilder
    implements Serializer
    Binary layout for a non-embedded secret proof transaction
    • Constructor Detail

      • SecretProofTransactionBuilder

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

        protected SecretProofTransactionBuilder​(SignatureDto signature,
                                                KeyDto signerPublicKey,
                                                byte version,
                                                NetworkTypeDto network,
                                                EntityTypeDto type,
                                                AmountDto fee,
                                                TimestampDto deadline,
                                                UnresolvedAddressDto recipientAddress,
                                                Hash256Dto secret,
                                                LockHashAlgorithmDto hashAlgorithm,
                                                java.nio.ByteBuffer proof)
        Constructor.
        Parameters:
        signature - Entity signature.
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        fee - Transaction fee.
        deadline - Transaction deadline.
        recipientAddress - Locked mosaic recipient address.
        secret - Secret.
        hashAlgorithm - Hash algorithm.
        proof - Proof data.
    • Method Detail

      • loadFromBinary

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

        public static SecretProofTransactionBuilder create​(SignatureDto signature,
                                                           KeyDto signerPublicKey,
                                                           byte version,
                                                           NetworkTypeDto network,
                                                           EntityTypeDto type,
                                                           AmountDto fee,
                                                           TimestampDto deadline,
                                                           UnresolvedAddressDto recipientAddress,
                                                           Hash256Dto secret,
                                                           LockHashAlgorithmDto hashAlgorithm,
                                                           java.nio.ByteBuffer proof)
        Creates an instance of SecretProofTransactionBuilder.
        Parameters:
        signature - Entity signature.
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        fee - Transaction fee.
        deadline - Transaction deadline.
        recipientAddress - Locked mosaic recipient address.
        secret - Secret.
        hashAlgorithm - Hash algorithm.
        proof - Proof data.
        Returns:
        Instance of SecretProofTransactionBuilder.
      • getRecipientAddress

        public UnresolvedAddressDto getRecipientAddress()
        Gets locked mosaic recipient address.
        Returns:
        Locked mosaic recipient address.
      • getSecret

        public Hash256Dto getSecret()
        Gets secret.
        Returns:
        Secret.
      • getHashAlgorithm

        public LockHashAlgorithmDto getHashAlgorithm()
        Gets hash algorithm.
        Returns:
        Hash algorithm.
      • getProof

        public java.nio.ByteBuffer getProof()
        Gets proof data.
        Returns:
        Proof data.