UNPKG

zkverifyjs

Version:

Submit proofs to zkVerify and query proof state with ease using our npm package.

26 lines 1.29 kB
import { KeyringPair } from '@polkadot/keyring/types'; /** * Sets up the account using the provided secret seed phrase. * * @param {string} secretSeedPhrase - The secret seed phrase used to create the account. * @returns {KeyringPair} The initialized account. * @throws Will throw an error if the seed phrase is invalid. */ export declare const setupAccount: (secretSeedPhrase: string) => KeyringPair; /** Canonical SS58 address for a pair/public key (fixed to chain prefix). */ export declare const canonicalAddress: (pairOrPublicKey: KeyringPair | Uint8Array) => string; /** * Derives a hard child account at `//{index}` from `base`. * Returns the derived keypair, its SS58-encoded address (using `CHAIN_SS58_PREFIX`), and the derivation path. * * @param {KeyringPair} base - The base sr25519 keypair to derive from. * @param {number} index - The child index to derive at (hard path `//index`, appended to any existing path on `base`). * @returns {{ pair: KeyringPair, address: string, path: string }} The derived `pair`, its SS58 `address`, and the `path`. * @throws {Error} If derivation fails. */ export declare const deriveChildAt: (base: KeyringPair, index: number) => { pair: KeyringPair; address: string; path: string; }; //# sourceMappingURL=index.d.ts.map