Package io.nem.symbol.catapult.builders
Class DetachedCosignatureBuilder
- java.lang.Object
-
- io.nem.symbol.catapult.builders.CosignatureBuilder
-
- io.nem.symbol.catapult.builders.DetachedCosignatureBuilder
-
- All Implemented Interfaces:
Serializer
public class DetachedCosignatureBuilder extends CosignatureBuilder implements Serializer
Cosignature detached from an aggregate transaction
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDetachedCosignatureBuilder(long version, KeyDto signerPublicKey, SignatureDto signature, Hash256Dto parentHash)Constructor.protectedDetachedCosignatureBuilder(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 DetachedCosignatureBuildercreate(long version, KeyDto signerPublicKey, SignatureDto signature, Hash256Dto parentHash)Creates an instance of DetachedCosignatureBuilder.Hash256DtogetParentHash()Gets hash of the aggregate transaction that is signed by this cosignature.intgetSize()Gets the size of the object.static DetachedCosignatureBuilderloadFromBinary(java.io.DataInputStream stream)Creates an instance of DetachedCosignatureBuilder from a stream.byte[]serialize()Serializes an object to bytes.-
Methods inherited from class io.nem.symbol.catapult.builders.CosignatureBuilder
create, getSignature, getSignerPublicKey, getVersion
-
-
-
-
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.
-
getSize
public int getSize()
Gets the size of the object.- Specified by:
getSizein interfaceSerializer- Overrides:
getSizein classCosignatureBuilder- Returns:
- Size in bytes.
-
serialize
public byte[] serialize()
Serializes an object to bytes.- Specified by:
serializein interfaceSerializer- Overrides:
serializein classCosignatureBuilder- Returns:
- Serialized bytes.
-
-