@theqrl/wallet.js 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theqrl/wallet.js",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
@@ -23,7 +23,8 @@
23
23
  "test": "test"
24
24
  },
25
25
  "files": [
26
- "src"
26
+ "src",
27
+ "types"
27
28
  ],
28
29
  "devDependencies": {
29
30
  "@types/node": "^20.14.12",
@@ -0,0 +1,25 @@
1
+ export class Dilithium {
2
+ constructor(seed?: any);
3
+ pk: Uint8Array;
4
+ sk: Uint8Array;
5
+ seed: any;
6
+ randomizedSigning: boolean;
7
+ create(): void;
8
+ fromSeed(): void;
9
+ getPK(): Uint8Array;
10
+ getSK(): Uint8Array;
11
+ getSeed(): any;
12
+ getHexSeed(): string;
13
+ getMnemonic(): string;
14
+ getAddress(): Uint8Array;
15
+ seal(message: any): any;
16
+ sign(message: any): Uint8Array;
17
+ }
18
+ export function getDilithiumAddressFromPK(pk: any): Uint8Array;
19
+ export function getDilithiumDescriptor(address: any): number;
20
+ export function openMessage(signatureMessage: any, pk: any): any;
21
+ export function verifyMessage(message: any, signature: any, pk: any): any;
22
+ export function extractMessage(signatureMessage: any): any;
23
+ export function extractSignature(signatureMessage: any): any;
24
+ export function isValidDilithiumAddress(address: any): boolean;
25
+ //# sourceMappingURL=dilithium.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dilithium.d.ts","sourceRoot":"","sources":["../src/dilithium.js"],"names":[],"mappings":"AA2CA;IACE,wBAUC;IATC,eAAc;IACd,eAAc;IACd,UAAgB;IAChB,2BAA8B;IAQhC,eAWC;IAED,iBASC;IAED,oBAEC;IAED,oBAEC;IAED,eAEC;IAED,qBAEC;IAED,sBAEC;IAED,yBAEC;IAGD,wBAEC;IAID,+BAKC;CACF;AAzFD,+DAaC;AAzBD,6DAUC;AA+FD,iEAEC;AAED,0EAEC;AAGD,2DAEC;AAGD,6DAEC;AAED,+DAOC"}
@@ -0,0 +1,12 @@
1
+ import dilithium = require("./dilithium.js");
2
+ import mnemonic = require("./utils/mnemonic.js");
3
+ export let Dilithium: typeof dilithium.Dilithium;
4
+ export let extractMessage: typeof dilithium.extractMessage;
5
+ export let extractSignature: typeof dilithium.extractSignature;
6
+ export let getDilithiumAddressFromPK: typeof dilithium.getDilithiumAddressFromPK;
7
+ export let getDilithiumDescriptor: typeof dilithium.getDilithiumDescriptor;
8
+ export let isValidDilithiumAddress: typeof dilithium.isValidDilithiumAddress;
9
+ export let MnemonicToSeedBin: typeof mnemonic.MnemonicToSeedBin;
10
+ export let SeedBinToMnemonic: typeof mnemonic.SeedBinToMnemonic;
11
+ export let WORD_LIST: string[];
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export const WordList: string[];
2
+ //# sourceMappingURL=wordlist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wordlist.d.ts","sourceRoot":"","sources":["../../src/qrl/wordlist.js"],"names":[],"mappings":"AAAA,gCAigIE"}
@@ -0,0 +1,3 @@
1
+ export function SeedBinToMnemonic(input: any): string;
2
+ export function MnemonicToSeedBin(mnemonic: any): Uint8Array;
3
+ //# sourceMappingURL=mnemonic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mnemonic.d.ts","sourceRoot":"","sources":["../../src/utils/mnemonic.js"],"names":[],"mappings":"AA2BA,sDAEC;AAmDD,6DAUC"}