blocklock-js
Version:
A library for encrypting and decrypting data for the future
106 lines (105 loc) • 3.59 kB
TypeScript
import { type ContractRunner } from "ethers";
import type { ISignatureScheme, ISignatureSchemeInterface } from "../ISignatureScheme";
export declare class ISignatureScheme__factory {
static readonly abi: readonly [{
readonly type: "function";
readonly name: "SCHEME_ID";
readonly inputs: readonly [];
readonly outputs: readonly [{
readonly name: "";
readonly type: "string";
readonly internalType: "string";
}];
readonly stateMutability: "nonpayable";
}, {
readonly type: "function";
readonly name: "getChainId";
readonly inputs: readonly [];
readonly outputs: readonly [{
readonly name: "chainId";
readonly type: "uint256";
readonly internalType: "uint256";
}];
readonly stateMutability: "view";
}, {
readonly type: "function";
readonly name: "getPublicKey";
readonly inputs: readonly [];
readonly outputs: readonly [{
readonly name: "";
readonly type: "uint256[2]";
readonly internalType: "uint256[2]";
}, {
readonly name: "";
readonly type: "uint256[2]";
readonly internalType: "uint256[2]";
}];
readonly stateMutability: "view";
}, {
readonly type: "function";
readonly name: "getPublicKeyBytes";
readonly inputs: readonly [];
readonly outputs: readonly [{
readonly name: "";
readonly type: "bytes";
readonly internalType: "bytes";
}];
readonly stateMutability: "view";
}, {
readonly type: "function";
readonly name: "hashToBytes";
readonly inputs: readonly [{
readonly name: "message";
readonly type: "bytes";
readonly internalType: "bytes";
}];
readonly outputs: readonly [{
readonly name: "";
readonly type: "bytes";
readonly internalType: "bytes";
}];
readonly stateMutability: "view";
}, {
readonly type: "function";
readonly name: "hashToPoint";
readonly inputs: readonly [{
readonly name: "message";
readonly type: "bytes";
readonly internalType: "bytes";
}];
readonly outputs: readonly [{
readonly name: "";
readonly type: "uint256";
readonly internalType: "uint256";
}, {
readonly name: "";
readonly type: "uint256";
readonly internalType: "uint256";
}];
readonly stateMutability: "view";
}, {
readonly type: "function";
readonly name: "verifySignature";
readonly inputs: readonly [{
readonly name: "message";
readonly type: "bytes";
readonly internalType: "bytes";
}, {
readonly name: "signature";
readonly type: "bytes";
readonly internalType: "bytes";
}, {
readonly name: "publicKey";
readonly type: "bytes";
readonly internalType: "bytes";
}];
readonly outputs: readonly [{
readonly name: "isValid";
readonly type: "bool";
readonly internalType: "bool";
}];
readonly stateMutability: "view";
}];
static createInterface(): ISignatureSchemeInterface;
static connect(address: string, runner?: ContractRunner | null): ISignatureScheme;
}