import { PublicAccount } from '../account/PublicAccount'; import { UnresolvedAddress } from '../account/UnresolvedAddress'; import { LockHashAlgorithm } from '../lock/LockHashAlgorithm'; import { NetworkType } from '../network/NetworkType'; import { UInt64 } from '../UInt64'; import { Deadline } from './Deadline'; import { InnerTransaction } from './InnerTransaction'; import { Transaction } from './Transaction'; import { TransactionInfo } from './TransactionInfo'; export declare class SecretProofTransaction extends Transaction { readonly hashAlgorithm: LockHashAlgorithm; readonly secret: string; readonly recipientAddress: UnresolvedAddress; readonly proof: string; /** * Create a secret proof transaction object. * * @param deadline - The deadline to include the transaction. * @param hashAlgorithm - The hash algorithm secret is generated with. * @param secret - The seed proof hashed. * @param recipientAddress - UnresolvedAddress * @param proof - The seed proof. * @param networkType - The network type. * @param maxFee - (Optional) Max fee defined by the sender * @param signature - (Optional) Transaction signature * @param signer - (Optional) Signer public account * @return a SecretProofTransaction instance */ static create(deadline: Deadline, hashAlgorithm: LockHashAlgorithm, secret: string, recipientAddress: UnresolvedAddress, proof: string, networkType: NetworkType, maxFee?: UInt64, signature?: string, signer?: PublicAccount): SecretProofTransaction; /** * @param networkType * @param version * @param deadline * @param maxFee * @param hashAlgorithm * @param secret * @param recipientAddress * @param proof * @param signature * @param signer * @param transactionInfo */ constructor(networkType: NetworkType, version: number, deadline: Deadline, maxFee: UInt64, hashAlgorithm: LockHashAlgorithm, secret: string, recipientAddress: UnresolvedAddress, proof: string, signature?: string, signer?: PublicAccount, transactionInfo?: TransactionInfo); /** * Create a transaction object from payload * @param {string} payload Binary payload * @param {Boolean} isEmbedded Is embedded transaction (Default: false) * @returns {Transaction | InnerTransaction} */ static createFromPayload(payload: string, isEmbedded?: boolean): Transaction | InnerTransaction; /** * @description Get secret bytes * @returns {Uint8Array} * @memberof SecretLockTransaction */ getSecretByte(): Uint8Array; /** * @description Get proof bytes * @returns {Uint8Array} * @memberof SecretLockTransaction */ getProofByte(): Uint8Array; }