Skip to content

Commit

Permalink
Merge pull request #29 from thehubbleproject/bump-0.5.1
Browse files Browse the repository at this point in the history
bump 0.5.1
  • Loading branch information
jacque006 authored Mar 11, 2022
2 parents 8e051ba + 9dbc79e commit 1b26639
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 41 deletions.
48 changes: 23 additions & 25 deletions dist/mcl.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import * as mcl from "mcl-wasm";
import { BigNumber } from "ethers";
export declare const FIELD_ORDER: BigNumber;
export declare type mclG2 = any;
export declare type mclG1 = any;
export declare type mclFP = any;
export declare type mclFR = any;
export declare type SecretKey = mclFR;
export declare type MessagePoint = mclG1;
export declare type Signature = mclG1;
export declare type PublicKey = mclG2;
export declare type SecretKey = mcl.Fr;
export declare type MessagePoint = mcl.G1;
export declare type Signature = mcl.G1;
export declare type PublicKey = mcl.G2;
export declare type solG1 = [string, string];
export declare type solG2 = [string, string, string, string];
export interface keyPair {
Expand All @@ -16,15 +13,16 @@ export interface keyPair {
}
export declare type Domain = Uint8Array;
export declare function init(): Promise<void>;
export declare function validateHex(hex: string): void;
export declare function validateDomain(domain: Domain): void;
export declare function hashToPoint(msg: string, domain: Domain): MessagePoint;
export declare function mapToPoint(e0: BigNumber): mclG1;
export declare function toBigEndian(p: mclFP): Uint8Array;
export declare function g1(): mclG1;
export declare function g2(): mclG2;
export declare function negativeG2(): mclG2;
export declare function g1ToHex(p: mclG1): solG1;
export declare function g2ToHex(p: mclG2): solG2;
export declare function mapToPoint(e0: BigNumber): mcl.G1;
export declare function toBigEndian(p: mcl.Fp | mcl.Fp2): Uint8Array;
export declare function g1(): mcl.G1;
export declare function g2(): mcl.G2;
export declare function negativeG2(): mcl.G2;
export declare function g1ToHex(p: mcl.G1): solG1;
export declare function g2ToHex(p: mcl.G2): solG2;
export declare function getPubkey(secret: SecretKey): PublicKey;
export declare function newKeyPair(): keyPair;
export declare function sign(message: string, secret: SecretKey, domain: Domain): {
Expand All @@ -34,19 +32,19 @@ export declare function sign(message: string, secret: SecretKey, domain: Domain)
export declare function verifyRaw(signature: Signature, pubkey: PublicKey, message: MessagePoint): boolean;
export declare function verifyMultipleRaw(aggSignature: Signature, pubkeys: PublicKey[], messages: MessagePoint[]): boolean;
export declare function aggregateRaw(signatures: Signature[]): Signature;
export declare function randFr(): mclFR;
export declare function randMclG1(): mclG1;
export declare function randMclG2(): mclG2;
export declare function randFr(): mcl.Fr;
export declare function randMclG1(): mcl.G1;
export declare function randMclG2(): mcl.G2;
export declare function randG1(): solG1;
export declare function randG2(): solG2;
export declare function parseFr(hex: string): any;
export declare function setHashFr(hex: string): any;
export declare function parseG1(solG1: solG1): mclG1;
export declare function parseG2(solG2: solG2): mclG2;
export declare function dumpFr(fr: mclFR): string;
export declare function loadFr(hex: string): mclFR;
export declare function parseFr(hex: string): mcl.Fr;
export declare function setHashFr(hex: string): mcl.Fr;
export declare function parseG1(solG1: solG1): mcl.G1;
export declare function parseG2(solG2: solG2): mcl.G2;
export declare function dumpFr(fr: mcl.Fr): string;
export declare function loadFr(hex: string): mcl.Fr;
export declare function dumpG1(solG1: solG1): string;
export declare function dumpG2(solG2: solG2): string;
export declare function loadG1(hex: string): solG1;
export declare function loadG2(hex: string): solG2;
export declare const getMclInstance: () => any;
export declare const getMclInstance: () => typeof mcl;
34 changes: 28 additions & 6 deletions dist/mcl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/mcl.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/signer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export declare class BlsSignerFactory {
static new(): Promise<BlsSignerFactory>;
private constructor();
getSigner(domain: Domain, secretHex?: string): BlsSigner;
private getSecret;
}
declare class BlsSigner extends BlsVerifier implements BlsSignerInterface {
domain: Domain;
Expand Down
20 changes: 15 additions & 5 deletions dist/signer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/signer.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thehubbleproject/bls",
"version": "0.5.0",
"version": "0.5.1",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 1b26639

Please sign in to comment.