PHP WebShell

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

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

import { AddressFormat, DefaultKeys, Ed25519KeyPair, KeyPairOptions } from '@bitgo/sdk-core';
export declare const PUBLIC_KEY_PREFIX = "302a300506032b6570032100";
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);
    /**
     * Hedera default keys format is a pair of Uint8Array keys
     *
     * @param {boolean} raw defines if the key is returned in raw or protocol default format
     * @returns { DefaultKeys } The keys in the defined format
     */
    getKeys(raw?: boolean): DefaultKeys;
    /** @inheritdoc */
    getAddress(format?: AddressFormat): string;
    /** @inheritdoc */
    recordKeysFromPublicKeyInProtocolFormat(pub: string): DefaultKeys;
    /** @inheritdoc */
    recordKeysFromPrivateKeyInProtocolFormat(prv: string): DefaultKeys;
}
//# sourceMappingURL=keyPair.d.ts.map

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


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