UNPKG

randomness-js

Version:

A library for consuming, verifying and using randomness from the dcipher network

172 lines (168 loc) 3.12 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface, type ContractRunner } from "ethers"; import type { SignatureSchemeBase, SignatureSchemeBaseInterface, } from "../SignatureSchemeBase"; const _abi = [ { type: "function", name: "DST", inputs: [], outputs: [ { name: "", type: "bytes", internalType: "bytes", }, ], stateMutability: "view", }, { type: "function", name: "SCHEME_ID", inputs: [], outputs: [ { name: "", type: "string", internalType: "string", }, ], stateMutability: "view", }, { type: "function", name: "getChainId", inputs: [], outputs: [ { name: "chainId", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "function", name: "getPublicKey", inputs: [], outputs: [ { name: "", type: "uint256[2]", internalType: "uint256[2]", }, { name: "", type: "uint256[2]", internalType: "uint256[2]", }, ], stateMutability: "view", }, { type: "function", name: "getPublicKeyBytes", inputs: [], outputs: [ { name: "", type: "bytes", internalType: "bytes", }, ], stateMutability: "view", }, { type: "function", name: "hashToBytes", inputs: [ { name: "message", type: "bytes", internalType: "bytes", }, ], outputs: [ { name: "", type: "bytes", internalType: "bytes", }, ], stateMutability: "view", }, { type: "function", name: "hashToPoint", inputs: [ { name: "message", type: "bytes", internalType: "bytes", }, ], outputs: [ { name: "", type: "uint256", internalType: "uint256", }, { name: "", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "function", name: "verifySignature", inputs: [ { name: "message", type: "bytes", internalType: "bytes", }, { name: "signature", type: "bytes", internalType: "bytes", }, { name: "publicKey", type: "bytes", internalType: "bytes", }, ], outputs: [ { name: "isValid", type: "bool", internalType: "bool", }, ], stateMutability: "view", }, ] as const; export class SignatureSchemeBase__factory { static readonly abi = _abi; static createInterface(): SignatureSchemeBaseInterface { return new Interface(_abi) as SignatureSchemeBaseInterface; } static connect( address: string, runner?: ContractRunner | null ): SignatureSchemeBase { return new Contract( address, _abi, runner ) as unknown as SignatureSchemeBase; } }