PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-dot/dist/src/lib

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

import { KeyringPair } from '@polkadot/keyring/types';
import { DotAddressFormat, DefaultKeys, Ed25519KeyPair, KeyPairOptions } from '@bitgo/sdk-core';
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 dot transaction.
     *
     * @returns {KeyringPair} dot KeyringPair
     *
     * @see https://polkadot.js.org/docs/api/start/keyring
     */
    protected createPolkadotPair(): KeyringPair;
    /**
     // https://wiki.polkadot.network/docs/learn-accounts#address-format
     * Returns the address in either mainnet polkadot format (starts with 1)
     * or substrate format used for westend (starts with 5)
     */
    getAddress(format: DotAddressFormat): string;
    /** @inheritdoc */
    getKeys(): DefaultKeys;
    /** @inheritdoc */
    recordKeysFromPrivateKeyInProtocolFormat(prv: string): DefaultKeys;
    /** @inheritdoc */
    recordKeysFromPublicKeyInProtocolFormat(pub: string): DefaultKeys;
    /**
     *  Sign the message in Uint8Array
     *
     * @param {Uint8Array} message to be signed
     * @returns {Uint8Array} signed message
     */
    signMessageinUint8Array(message: Uint8Array): Uint8Array;
}
//# sourceMappingURL=keyPair.d.ts.map

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


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