PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@bitgo-forks/avalanchejs/dist/crypto

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

export declare function randomPrivateKey(): Uint8Array;
export declare function sign(msg: Uint8Array | string, privKey: Uint8Array): Promise<Uint8Array>;
export declare function signHash(hash: Uint8Array, privKey: Uint8Array): Promise<Uint8Array>;
export declare function recoverPublicKey(hash: Uint8Array | string, sig: Uint8Array): Uint8Array;
export declare function getPublicKey(privKey: Uint8Array): Uint8Array;
export declare function verify(sig: Uint8Array, hash: Uint8Array | string, publicKey: Uint8Array): boolean;
export declare function publicKeyBytesToAddress(publicKey: Uint8Array): Uint8Array;
export declare function publicKeyToEthAddress(key: Uint8Array): Uint8Array;
//# sourceMappingURL=secp256k1.d.ts.map

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


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