Package io.nem.symbol.catapult.builders
Class SecretProofTransactionBuilder
- java.lang.Object
-
- io.nem.symbol.catapult.builders.TransactionBuilder
-
- io.nem.symbol.catapult.builders.SecretProofTransactionBuilder
-
- All Implemented Interfaces:
Serializer
public class SecretProofTransactionBuilder extends TransactionBuilder implements Serializer
Binary layout for a non-embedded secret proof transaction
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSecretProofTransactionBuilder(SignatureDto signature, KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, AmountDto fee, TimestampDto deadline, Hash256Dto secret, LockHashAlgorithmDto hashAlgorithm, UnresolvedAddressDto recipientAddress, java.nio.ByteBuffer proof)Constructor.protectedSecretProofTransactionBuilder(java.io.DataInputStream stream)Constructor - Creates an object from stream.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecretProofTransactionBuildercreate(SignatureDto signature, KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, AmountDto fee, TimestampDto deadline, Hash256Dto secret, LockHashAlgorithmDto hashAlgorithm, UnresolvedAddressDto recipientAddress, java.nio.ByteBuffer proof)Creates an instance of SecretProofTransactionBuilder.SecretProofTransactionBodyBuildergetBody()Gets the body builder of the object.LockHashAlgorithmDtogetHashAlgorithm()Gets hash algorithm.java.nio.ByteBuffergetProof()Gets proof data.UnresolvedAddressDtogetRecipientAddress()Gets locked mosaic recipient address.Hash256DtogetSecret()Gets secret.intgetSize()Gets the size of the object.static SecretProofTransactionBuilderloadFromBinary(java.io.DataInputStream stream)Creates an instance of SecretProofTransactionBuilder from a stream.byte[]serialize()Serializes an object to bytes.-
Methods inherited from class io.nem.symbol.catapult.builders.TransactionBuilder
create, getDeadline, getEntityBody_Reserved1, getFee, getNetwork, getSignature, getSignerPublicKey, getStreamSize, getType, getVerifiableEntityHeader_Reserved1, getVersion
-
-
-
-
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, Hash256Dto secret, LockHashAlgorithmDto hashAlgorithm, UnresolvedAddressDto recipientAddress, 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.secret- Secret.hashAlgorithm- Hash algorithm.recipientAddress- Locked mosaic recipient address.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, Hash256Dto secret, LockHashAlgorithmDto hashAlgorithm, UnresolvedAddressDto recipientAddress, 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.secret- Secret.hashAlgorithm- Hash algorithm.recipientAddress- Locked mosaic recipient address.proof- Proof data.- Returns:
- Instance of SecretProofTransactionBuilder.
-
getSecret
public Hash256Dto getSecret()
Gets secret.- Returns:
- Secret.
-
getHashAlgorithm
public LockHashAlgorithmDto getHashAlgorithm()
Gets hash algorithm.- Returns:
- Hash algorithm.
-
getRecipientAddress
public UnresolvedAddressDto getRecipientAddress()
Gets locked mosaic recipient address.- Returns:
- Locked mosaic recipient address.
-
getProof
public java.nio.ByteBuffer getProof()
Gets proof data.- Returns:
- Proof data.
-
getSize
public int getSize()
Gets the size of the object.- Specified by:
getSizein interfaceSerializer- Overrides:
getSizein classTransactionBuilder- Returns:
- Size in bytes.
-
getBody
public SecretProofTransactionBodyBuilder getBody()
Gets the body builder of the object.- Overrides:
getBodyin classTransactionBuilder- Returns:
- Body builder.
-
serialize
public byte[] serialize()
Serializes an object to bytes.- Specified by:
serializein interfaceSerializer- Overrides:
serializein classTransactionBuilder- Returns:
- Serialized bytes.
-
-