PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/viem/node_modules/@noble/curves/abstract

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

type Hex = string | Uint8Array;
export type CurveType = {
    P: bigint;
    type: 'x25519' | 'x448';
    adjustScalarBytes: (bytes: Uint8Array) => Uint8Array;
    powPminus2: (x: bigint) => bigint;
    randomBytes: (bytesLength?: number) => Uint8Array;
};
export type CurveFn = {
    scalarMult: (scalar: Hex, u: Hex) => Uint8Array;
    scalarMultBase: (scalar: Hex) => Uint8Array;
    getSharedSecret: (privateKeyA: Hex, publicKeyB: Hex) => Uint8Array;
    getPublicKey: (privateKey: Hex) => Uint8Array;
    utils: {
        randomPrivateKey: () => Uint8Array;
    };
    GuBytes: Uint8Array;
};
export declare function montgomery(curveDef: CurveType): CurveFn;
export {};
//# sourceMappingURL=montgomery.d.ts.map

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


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