tweetnacl-ts
Version:
Port of TweetNaCl cryptographic library to TypeScript (and ES6)
10 lines (9 loc) • 417 B
TypeScript
import { ByteArray } from './array';
export declare const enum ScalarLength {
Scalar = 32,
GroupElement = 32
}
export declare function scalarMult(n: ByteArray, p: ByteArray): Uint8Array;
export declare function scalarMult_base(n: ByteArray): Uint8Array;
export declare function _scalarMult(q: ByteArray, n: ByteArray, p: ByteArray): 0;
export declare function _scalarMult_base(q: ByteArray, n: ByteArray): 0;