import { Address } from '../account/Address'; import { PublicAccount } from '../account/PublicAccount'; import { NetworkType } from '../blockchain/NetworkType'; import { NamespaceId } from '../namespace/NamespaceId'; import { UInt64 } from '../UInt64'; import { Deadline } from './Deadline'; import { HashType } from './HashType'; import { InnerTransaction } from './InnerTransaction'; import { Transaction } from './Transaction'; import { TransactionInfo } from './TransactionInfo'; export declare class SecretProofTransaction extends Transaction { readonly hashType: HashType; readonly secret: string; readonly recipientAddress: Address | NamespaceId; readonly proof: string; /** * Create a secret proof transaction object. * * @param deadline - The deadline to include the transaction. * @param hashType - 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 * * @return a SecretProofTransaction instance */ static create(deadline: Deadline, hashType: HashType, secret: string, recipientAddress: Address | NamespaceId, proof: string, networkType: NetworkType, maxFee?: UInt64): SecretProofTransaction; /** * @param networkType * @param version * @param deadline * @param maxFee * @param hashType * @param secret * @param recipientAddress * @param proof * @param signature * @param signer * @param transactionInfo */ constructor(networkType: NetworkType, version: number, deadline: Deadline, maxFee: UInt64, hashType: HashType, secret: string, recipientAddress: Address | NamespaceId, 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; /** * @override Transaction.size() * @description get the byte size of a SecretProofTransaction * @returns {number} * @memberof SecretProofTransaction */ readonly size: number; /** * @description Get secret bytes * @returns {Uint8Array} * @memberof SecretLockTransaction */ getSecretByte(): Uint8Array; /** * @description Get proof bytes * @returns {Uint8Array} * @memberof SecretLockTransaction */ getProofByte(): Uint8Array; }