@vaultkeepr/core 0.1.1
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/LICENSE +21 -0
- package/dist/index.d.mts +793 -0
- package/dist/index.d.ts +793 -0
- package/dist/index.js +15392 -0
- package/dist/index.mjs +15185 -0
- package/package.json +58 -0
- package/src/index.ts +52 -0
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vaultkeepr/core",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "TypeScript vault crypto: XChaCha20-Poly1305, Argon2id, wallet ECIES envelopes, TOTP, imports — VaultKeepR SDK",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/VaultKeepR/vaultkeepr-core.git"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/VaultKeepR/vaultkeepr-core#readme",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/VaultKeepR/vaultkeepr-core/issues"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"vault",
|
|
16
|
+
"encryption",
|
|
17
|
+
"argon2",
|
|
18
|
+
"xchacha20",
|
|
19
|
+
"totp",
|
|
20
|
+
"e2ee",
|
|
21
|
+
"vaultkeepr"
|
|
22
|
+
],
|
|
23
|
+
"main": "./src/index.ts",
|
|
24
|
+
"module": "./src/index.ts",
|
|
25
|
+
"types": "./src/index.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./src/index.ts",
|
|
29
|
+
"import": "./src/index.ts",
|
|
30
|
+
"require": "./src/index.ts"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@noble/ciphers": "^2.4.0",
|
|
35
|
+
"@noble/curves": "^2.4.0",
|
|
36
|
+
"@noble/hashes": "^2.4.0",
|
|
37
|
+
"ethers": "^6.13.0",
|
|
38
|
+
"fflate": "^0.8.3",
|
|
39
|
+
"viem": "^2.21.0",
|
|
40
|
+
"@vaultkeepr/logger": "0.1.1"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
44
|
+
"fast-check": "^4.9.0",
|
|
45
|
+
"tsup": "^8.3.5",
|
|
46
|
+
"typescript": "^5.6.3",
|
|
47
|
+
"vitest": "^4.1.11"
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"dist"
|
|
51
|
+
],
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
54
|
+
"clean": "rm -rf dist",
|
|
55
|
+
"test": "vitest run",
|
|
56
|
+
"lint": "eslint src/"
|
|
57
|
+
}
|
|
58
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export * from "./types";
|
|
2
|
+
export * from "./groups";
|
|
3
|
+
export * from "./crypto";
|
|
4
|
+
export * from "./secure";
|
|
5
|
+
export {
|
|
6
|
+
deriveKeyFromPasswordArgon2,
|
|
7
|
+
deriveKeyFromPasswordAndSignatureArgon2,
|
|
8
|
+
deriveKeyFromPasswordAndSignatureLegacy,
|
|
9
|
+
normalizeSignatureForKdf,
|
|
10
|
+
generateSaltArgon2 } from
|
|
11
|
+
"./kdf-argon2";
|
|
12
|
+
export * from "./envelope";
|
|
13
|
+
export * from "./vault";
|
|
14
|
+
export * from "./payload";
|
|
15
|
+
export * from "./payloadVersion";
|
|
16
|
+
export * from "./import";
|
|
17
|
+
export * from "./encrypted-export";
|
|
18
|
+
export * from "./export";
|
|
19
|
+
export * from "./address";
|
|
20
|
+
export * from "./totp";
|
|
21
|
+
export * from "./cards";
|
|
22
|
+
export { getPwnedPasswordCount } from "./pwnedPassword";
|
|
23
|
+
export type { PwnedPasswordFetchOptions } from "./pwnedPassword";
|
|
24
|
+
export { generatePassword, uniformRandom, generatePassphrase } from "./generatePassword";
|
|
25
|
+
export type { GeneratePasswordOptions, GeneratePassphraseOptions } from "./generatePassword";
|
|
26
|
+
export {
|
|
27
|
+
captureError,
|
|
28
|
+
getErrorBuffer,
|
|
29
|
+
clearErrorBuffer,
|
|
30
|
+
formatErrorReport,
|
|
31
|
+
sendErrorReport } from
|
|
32
|
+
"./errorTracking";
|
|
33
|
+
export type { ErrorReport } from "./errorTracking";
|
|
34
|
+
export * from "./emailBreach";
|
|
35
|
+
export * from "./passwordHealth";
|
|
36
|
+
export * from "./breachMonitor";
|
|
37
|
+
export * from "./passkey-crypto";
|
|
38
|
+
export * from "./passkey";
|
|
39
|
+
export * from "./hiddenWallet";
|
|
40
|
+
export * from "./document-crypto";
|
|
41
|
+
export * from "./mrz";
|
|
42
|
+
export * from "./mrz-utils";
|
|
43
|
+
export * from "./mrz-nfc-crypto";
|
|
44
|
+
export * from "./nfc-crypto";
|
|
45
|
+
export * from "./sharing";
|
|
46
|
+
export * from "./passwordStrength";
|
|
47
|
+
export { threeWayMerge, mergeFolders, mergeFolderTrees, deleteFolder, deleteCloudFolder, deleteVaultEntry } from "./merge";
|
|
48
|
+
export * from "./pair";
|
|
49
|
+
export { BIP39_WORDLIST, suggestBip39Words } from "./bip39";
|
|
50
|
+
export { EFF_WORDLIST } from "./wordlist";
|
|
51
|
+
export { estimatePasswordEntropy } from "./passwordEntropy";
|
|
52
|
+
export * from "./slm-engine";
|