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.

Constructors

Properties

Methods

Constructors

  • Creates a descriptor for SecretProofTransactionV1.

    Parameters

    • recipientAddress: Address

      Address that receives the funds once unlocked.

    • secret: Hash256

      Hashed proof.

    • hashAlgorithm: LockHashAlgorithm

      Algorithm used to hash the proof.

    • Optional proof: string | Uint8Array

      Original random set of bytes that were hashed.

    Returns SecretProofTransactionV1Descriptor

Properties

rawDescriptor: {
    hashAlgorithm: LockHashAlgorithm;
    recipientAddress: Address;
    secret: Hash256;
    type: string;
}

Type declaration

Methods

  • Builds a representation of this descriptor that can be passed to a factory function.

    Returns object

    Descriptor that can be passed to a factory function.