PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/avalanche/dist/apis/avm
Просмотр файла: keychain.d.ts
/**
* @packageDocumentation
* @module API-AVM-KeyChain
*/
import { Buffer } from "buffer/";
import { SECP256k1KeyChain, SECP256k1KeyPair } from "../../common/secp256k1";
/**
* Class for representing a private and public keypair on an AVM Chain.
*/
export declare class KeyPair extends SECP256k1KeyPair {
clone(): this;
create(...args: any[]): this;
}
/**
* Class for representing a key chain in Avalanche.
*
* @typeparam KeyPair Class extending [[SECP256k1KeyChain]] which is used as the key in [[KeyChain]]
*/
export declare class KeyChain extends SECP256k1KeyChain<KeyPair> {
hrp: string;
chainid: string;
/**
* Makes a new key pair, returns the address.
*
* @returns The new key pair
*/
makeKey: () => KeyPair;
addKey: (newKey: KeyPair) => void;
/**
* Given a private key, makes a new key pair, returns the address.
*
* @param privk A {@link https://github.com/feross/buffer|Buffer} or cb58 serialized string representing the private key
*
* @returns The new key pair
*/
importKey: (privk: Buffer | string) => KeyPair;
create(...args: any[]): this;
clone(): this;
union(kc: this): this;
/**
* Returns instance of KeyChain.
*/
constructor(hrp: string, chainid: string);
}
//# sourceMappingURL=keychain.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!