-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from muhammed-shaheer-keerirakath/main
✅ Added type declarations for the JS library exports
- Loading branch information
Showing
3 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
export * from './dilithium.js'; | ||
export * from './qrl/wordlist.js'; | ||
export * from './utils/mnemonic.js'; | ||
const dilithium = require('./dilithium.js'); | ||
const mnemonic = require('./utils/mnemonic.js'); | ||
const wordlist = require('./qrl/wordlist.js'); | ||
|
||
module.exports = { | ||
Dilithium: dilithium.Dilithium, | ||
extractMessage: dilithium.extractMessage, | ||
extractSignature: dilithium.extractSignature, | ||
getDilithiumAddressFromPK: dilithium.getDilithiumAddressFromPK, | ||
getDilithiumDescriptor: dilithium.getDilithiumDescriptor, | ||
isValidDilithiumAddress: dilithium.isValidDilithiumAddress, | ||
MnemonicToSeedBin: mnemonic.MnemonicToSeedBin, | ||
SeedBinToMnemonic: mnemonic.SeedBinToMnemonic, | ||
WORD_LIST: wordlist.WordList, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
export * from "./dilithium.js"; | ||
export * from "./qrl/wordlist.js"; | ||
export * from "./utils/mnemonic.js"; | ||
import dilithium = require("./dilithium.js"); | ||
import mnemonic = require("./utils/mnemonic.js"); | ||
export let Dilithium: typeof dilithium.Dilithium; | ||
export let extractMessage: typeof dilithium.extractMessage; | ||
export let extractSignature: typeof dilithium.extractSignature; | ||
export let getDilithiumAddressFromPK: typeof dilithium.getDilithiumAddressFromPK; | ||
export let getDilithiumDescriptor: typeof dilithium.getDilithiumDescriptor; | ||
export let isValidDilithiumAddress: typeof dilithium.isValidDilithiumAddress; | ||
export let MnemonicToSeedBin: typeof mnemonic.MnemonicToSeedBin; | ||
export let SeedBinToMnemonic: typeof mnemonic.SeedBinToMnemonic; | ||
export let WORD_LIST: string[]; | ||
//# sourceMappingURL=index.d.ts.map |