Class SecretProofTransactionV1Descriptor

java.lang.Object
org.symbol.sdk.symbol.descriptors.SecretProofTransactionV1Descriptor
All Implemented Interfaces:

SymbolTransactionDescriptor, SymbolTypedDescriptor, TypedDescriptor


public final class SecretProofTransactionV1Descriptor extends Object implements SymbolTransactionDescriptor
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 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