forked from tornado-packages/noble-curves
README
This commit is contained in:
parent
ed3ba3de6e
commit
65c0dc6c59
@ -264,6 +264,8 @@ interface ProjPointType<T> extends Group<ProjPointType<T>> {
|
|||||||
readonly px: T;
|
readonly px: T;
|
||||||
readonly py: T;
|
readonly py: T;
|
||||||
readonly pz: T;
|
readonly pz: T;
|
||||||
|
get x(): bigint;
|
||||||
|
get y(): bigint;
|
||||||
multiply(scalar: bigint): ProjPointType<T>;
|
multiply(scalar: bigint): ProjPointType<T>;
|
||||||
multiplyUnsafe(scalar: bigint): ProjPointType<T>;
|
multiplyUnsafe(scalar: bigint): ProjPointType<T>;
|
||||||
multiplyAndAddUnsafe(Q: ProjPointType<T>, a: bigint, b: bigint): ProjPointType<T> | undefined;
|
multiplyAndAddUnsafe(Q: ProjPointType<T>, a: bigint, b: bigint): ProjPointType<T> | undefined;
|
||||||
@ -408,6 +410,8 @@ interface ExtPointType extends Group<ExtPointType> {
|
|||||||
readonly ey: bigint;
|
readonly ey: bigint;
|
||||||
readonly ez: bigint;
|
readonly ez: bigint;
|
||||||
readonly et: bigint;
|
readonly et: bigint;
|
||||||
|
get x(): bigint;
|
||||||
|
get y(): bigint;
|
||||||
assertValidity(): void;
|
assertValidity(): void;
|
||||||
multiply(scalar: bigint): ExtPointType;
|
multiply(scalar: bigint): ExtPointType;
|
||||||
multiplyUnsafe(scalar: bigint): ExtPointType;
|
multiplyUnsafe(scalar: bigint): ExtPointType;
|
||||||
@ -415,6 +419,8 @@ interface ExtPointType extends Group<ExtPointType> {
|
|||||||
isTorsionFree(): boolean;
|
isTorsionFree(): boolean;
|
||||||
clearCofactor(): ExtPointType;
|
clearCofactor(): ExtPointType;
|
||||||
toAffine(iz?: bigint): AffinePoint<bigint>;
|
toAffine(iz?: bigint): AffinePoint<bigint>;
|
||||||
|
toRawBytes(isCompressed?: boolean): Uint8Array;
|
||||||
|
toHex(isCompressed?: boolean): string;
|
||||||
}
|
}
|
||||||
// Static methods of Extended Point with coordinates in X, Y, Z, T
|
// Static methods of Extended Point with coordinates in X, Y, Z, T
|
||||||
interface ExtPointConstructor extends GroupConstructor<ExtPointType> {
|
interface ExtPointConstructor extends GroupConstructor<ExtPointType> {
|
||||||
|
Loading…
Reference in New Issue
Block a user