@privacyresearch/ed25519-ts
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -9,2 +9,3 @@ import { Hash } from './hash'; | ||
import { SigningFunctions } from './signing'; | ||
import { Scalars } from './scalars'; | ||
export * from './integers'; | ||
@@ -24,3 +25,5 @@ export * from './native-bigint'; | ||
utils: UtilsType; | ||
Ints: Integers<BIT>; | ||
scalars: Scalars<BIT>; | ||
} | ||
export declare function makeED<BIT extends BigIntType>(Ints: Integers<BIT>, sha512Impl?: Hash): Ed25519Type<BIT>; |
@@ -21,2 +21,3 @@ "use strict"; | ||
const signing_1 = require("./signing"); | ||
const scalars_1 = require("./scalars"); | ||
__exportStar(require("./integers"), exports); | ||
@@ -32,2 +33,3 @@ __exportStar(require("./native-bigint"), exports); | ||
const keyUtils = new key_utils_1.KeyUtils(Ints, CURVE, serializer, math); | ||
const scalars = new scalars_1.Scalars(Ints, CURVE, serializer, math); | ||
// Default Point works in default aka affine coordinates: (x, y) | ||
@@ -53,4 +55,6 @@ // Extended Point works in extended coordinates: (x, y, z, t) ∋ (x=x/z, y=y/z, t=xy) | ||
keyUtils, | ||
Ints, | ||
scalars, | ||
}; | ||
} | ||
exports.makeED = makeED; |
{ | ||
"name": "@privacyresearch/ed25519-ts", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "TypeScript implementation of ed25519 & ristretto255 allowing BigInt and SHA dependency injection", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
85489
27
1398