/** * @description * Verify a valid account proof signature or signatures for an account on Flow. * * @param {string} appIdentifier - A message string in hexadecimal format * @param {object} accountProofData - An object consisting of address, nonce, and signatures * @param {string} accountProofData.address - A Flow account address * @param {string} accountProofData.nonce - A random string in hexadecimal format (minimum 32 bytes in total, i.e 64 hex characters) * @param {object[]} accountProofData.signatures - An array of composite signatures to verify * @param {object} [opts={}] - Options object * @param {string} opts.fclCryptoContract - An optional override Flow account address where the FCLCrypto contract is deployed * @returns {Promise} - Returns true if the signature is valid, false otherwise * * @example * * const accountProofData = { * address: "0x123", * nonce: "F0123" * signatures: [{f_type: "CompositeSignature", f_vsn: "1.0.0", addr: "0x123", keyId: 0, signature: "abc123"}], * } * * const isValid = await fcl.AppUtils.verifyAccountProof( * "AwesomeAppId", * accountProofData, * {fclCryptoContract} * ) */ export function verifyAccountProof(appIdentifier: string, { address, nonce, signatures }: { address: string; nonce: string; signatures: object[]; }, opts?: { fclCryptoContract: string; }): Promise; /** * @description * Verify a valid signature/s for an account on Flow. * * @param {string} message - A message string in hexadecimal format * @param {Array} compSigs - An array of Composite Signatures * @param {string} compSigs[].addr - The account address * @param {number} compSigs[].keyId - The account keyId * @param {string} compSigs[].signature - The signature to verify * @param {object} [opts={}] - Options object * @param {string} opts.fclCryptoContract - An optional override of Flow account address where the FCLCrypto contract is deployed * @returns {boolean} - Returns true if the signature is valid, false otherwise * * @example * * const isValid = await fcl.AppUtils.verifyUserSignatures( * Buffer.from('FOO').toString("hex"), * [{f_type: "CompositeSignature", f_vsn: "1.0.0", addr: "0x123", keyId: 0, signature: "abc123"}], * {fclCryptoContract} * ) */ export function verifyUserSignatures(message: string, compSigs: any[], opts?: { fclCryptoContract: string; }): boolean; export function validateArgs(args: any): boolean;