PHP WebShell

Текущая директория: /opt/BitGoJS/modules/abstract-substrate/dist/src/lib

Просмотр файла: keyPair.d.ts

import { DefaultKeys, Ed25519KeyPair, KeyPairOptions } from '@bitgo/sdk-core';
import { KeyringPair } from '@polkadot/keyring/types';
export declare class KeyPair extends Ed25519KeyPair {
    /**
     * Public constructor. By default, creates a key pair with a random master seed.
     *
     * @param { KeyPairOptions } source Either a master seed, a private key, or a public key
     */
    constructor(source?: KeyPairOptions);
    /**
     * Helper function to create the KeyringPair for signing a substrate transaction.
     * @returns {KeyringPair} KeyringPair
     */
    protected createKeyringPair(): KeyringPair;
    /** @inheritdoc */
    getAddress(ss58Format: number): string;
    /** @inheritdoc */
    getKeys(): DefaultKeys;
    /** @inheritdoc */
    recordKeysFromPrivateKeyInProtocolFormat(prv: string): DefaultKeys;
    /** @inheritdoc */
    recordKeysFromPublicKeyInProtocolFormat(pub: string): DefaultKeys;
}
//# sourceMappingURL=keyPair.d.ts.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!