PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@near-js/crypto/lib/commonjs

Просмотр файла: key_pair.d.cts

import { CurveType, KeyPairString } from './constants.cjs';
import { KeyPairBase } from './key_pair_base.cjs';
import './public_key.cjs';

declare abstract class KeyPair extends KeyPairBase {
    /**
     * @param curve Name of elliptical curve, case-insensitive
     * @returns Random KeyPair based on the curve
     */
    static fromRandom(curve: CurveType): KeyPair;
    /**
     * Creates a key pair from an encoded key string.
     * @param encodedKey The encoded key string.
     * @returns {KeyPair} The key pair created from the encoded key string.
     */
    static fromString(encodedKey: KeyPairString): KeyPair;
}

export { KeyPair };

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


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