@dedis/kyber
Version:
A typescript implementation of Kyber interfaces
38 lines (37 loc) • 843 B
TypeScript
import BN from "bn.js";
import elliptic from "elliptic";
import { BNType } from "../../constants";
import { Group, Point, Scalar } from "../../index";
interface ReductionContext {
}
export default class Weierstrass implements Group {
curve: elliptic.curve.short;
redN: ReductionContext;
bitSize: number;
name: string;
constructor(config: {
name: string;
bitSize: number;
gx: BNType;
gy: BNType;
p: BNType;
a: BNType;
b: BNType;
n: BN;
});
coordLen(): number;
/** @inheritdoc */
scalarLen(): number;
/** @inheritdoc */
scalar(): Scalar;
/** @inheritdoc */
pointLen(): number;
/** @inheritdoc */
point(): Point;
/**
* Get the name of the curve
* @returns the name
*/
string(): string;
}
export {};