Class SecretProofTransactionV1Descriptor
- All Implemented Interfaces:
SymbolTransactionDescriptor,SymbolTypedDescriptor,TypedDescriptor
- SecretProofTransactionV1Descriptor
Type safe descriptor used to generate a descriptor map for SecretProofTransactionV1Descriptor.
Conclude a token swap between different chains (V1, latest). Use a SecretProofTransaction to unlock the funds locked by a SecretLockTransaction. The transaction must prove knowing the proof that unlocks the mosaics.
-
Constructor Summary
ConstructorsConstructorDescriptionSecretProofTransactionV1Descriptor(Address recipientAddress, CryptoTypes.Hash256 secret, LockHashAlgorithm hashAlgorithm, byte[] proof) Creates a descriptor for SecretProofTransactionV1. -
Method Summary
-
Constructor Details
-
SecretProofTransactionV1Descriptor
public SecretProofTransactionV1Descriptor(Address recipientAddress, CryptoTypes.Hash256 secret, LockHashAlgorithm hashAlgorithm, byte[] proof) Creates a descriptor for SecretProofTransactionV1.- Parameters:
recipientAddress- Address that receives the funds once unlocked.secret- Hashed proof.hashAlgorithm- Algorithm used to hash the proof.proof- Original random set of bytes that were hashed. (field is omitted when null)
-
-
Method Details
-
toMap
- SecretProofTransactionV1Descriptor.toMap
Builds a representation of this descriptor that can be passed to a factory function.
- Specified by:
toMapin interfaceTypedDescriptor- Returns:
Descriptor map that can be passed to a transaction factory.
-