@brashkie/signalis-core 0.1.0 → 0.2.0

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/index.js CHANGED
@@ -310,16 +310,28 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { curve25519GenerateKeypair, curve25519PublicFromPrivate, curve25519DiffieHellman, hkdfExtract, hkdfExpand, hkdfDerive, aes256GcmEncrypt, aes256GcmDecrypt, aes256CbcEncrypt, aes256CbcDecrypt, hmacSha256, hmacSha256Verify, sha256, version } = nativeBinding
313
+ const { curve25519GenerateKeypair, curve25519PublicFromPrivate, curve25519DiffieHellman, ed25519GenerateKeypair, ed25519KeypairFromSeed, ed25519PublicFromPrivate, ed25519Sign, ed25519Verify, ed25519VerifyBool, xed25519Sign, xed25519SignWithRandom, xed25519Verify, xed25519VerifyBool, hkdfExtract, hkdfExpand, hkdfDerive, aes256GcmEncrypt, aes256GcmDecrypt, aes256GcmEncryptWithAad, aes256GcmDecryptWithAad, aes256CbcEncrypt, aes256CbcDecrypt, hmacSha256, hmacSha256Verify, sha256, version } = nativeBinding
314
314
 
315
315
  module.exports.curve25519GenerateKeypair = curve25519GenerateKeypair
316
316
  module.exports.curve25519PublicFromPrivate = curve25519PublicFromPrivate
317
317
  module.exports.curve25519DiffieHellman = curve25519DiffieHellman
318
+ module.exports.ed25519GenerateKeypair = ed25519GenerateKeypair
319
+ module.exports.ed25519KeypairFromSeed = ed25519KeypairFromSeed
320
+ module.exports.ed25519PublicFromPrivate = ed25519PublicFromPrivate
321
+ module.exports.ed25519Sign = ed25519Sign
322
+ module.exports.ed25519Verify = ed25519Verify
323
+ module.exports.ed25519VerifyBool = ed25519VerifyBool
324
+ module.exports.xed25519Sign = xed25519Sign
325
+ module.exports.xed25519SignWithRandom = xed25519SignWithRandom
326
+ module.exports.xed25519Verify = xed25519Verify
327
+ module.exports.xed25519VerifyBool = xed25519VerifyBool
318
328
  module.exports.hkdfExtract = hkdfExtract
319
329
  module.exports.hkdfExpand = hkdfExpand
320
330
  module.exports.hkdfDerive = hkdfDerive
321
331
  module.exports.aes256GcmEncrypt = aes256GcmEncrypt
322
332
  module.exports.aes256GcmDecrypt = aes256GcmDecrypt
333
+ module.exports.aes256GcmEncryptWithAad = aes256GcmEncryptWithAad
334
+ module.exports.aes256GcmDecryptWithAad = aes256GcmDecryptWithAad
323
335
  module.exports.aes256CbcEncrypt = aes256CbcEncrypt
324
336
  module.exports.aes256CbcDecrypt = aes256CbcDecrypt
325
337
  module.exports.hmacSha256 = hmacSha256
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@brashkie/signalis-core",
3
- "version": "0.1.0",
4
- "description": "Cryptographic primitives for Signal Protocol — Rust-powered Node.js library (ESM + CJS + TypeScript)",
3
+ "version": "0.2.0",
4
+ "description": "Cryptographic primitives for Signal Protocol — Rust-powered Node.js library with Ed25519, XEd25519, Curve25519, HKDF, AES-GCM (with AAD), AES-CBC, HMAC, SHA-256 (ESM + CJS + TypeScript)",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.mjs",
@@ -37,7 +37,10 @@
37
37
  "example:cjs": "node examples/cjs-example.cjs",
38
38
  "example:esm": "node examples/esm-example.mjs",
39
39
  "example:ts": "tsx examples/ts-example.ts",
40
- "examples": "npm run example:cjs && npm run example:esm && npm run example:ts",
40
+ "example:signing": "node examples/signing.mjs",
41
+ "example:aad": "node examples/aad.mjs",
42
+ "example:e2e": "node examples/e2e-channel.mjs",
43
+ "examples": "npm run example:cjs && npm run example:esm && npm run example:ts && npm run example:signing && npm run example:aad && npm run example:e2e",
41
44
  "lint": "eslint \"src/**/*.ts\" \"__tests__/**/*.ts\"",
42
45
  "format": "prettier --write \"src/**/*.{ts,js}\" \"__tests__/**/*.ts\"",
43
46
  "format:rust": "cargo fmt --all",
@@ -53,25 +56,34 @@
53
56
  "README.es.md",
54
57
  "LICENSE",
55
58
  "NOTICE",
56
- "CHANGELOG.md"
59
+ "CHANGELOG.md",
60
+ "MIGRATION.md",
61
+ "SECURITY.md"
57
62
  ],
58
63
  "keywords": [
59
64
  "signal-protocol",
60
65
  "e2e-encryption",
61
66
  "cryptography",
62
67
  "curve25519",
68
+ "ed25519",
69
+ "xed25519",
63
70
  "x25519",
71
+ "ecdh",
72
+ "diffie-hellman",
64
73
  "hkdf",
65
74
  "aes-gcm",
66
75
  "aes-cbc",
76
+ "aead",
67
77
  "hmac",
68
78
  "sha256",
79
+ "digital-signature",
69
80
  "rust",
70
81
  "napi",
71
82
  "native",
72
83
  "esm",
73
84
  "commonjs",
74
- "dual-package"
85
+ "dual-package",
86
+ "hepein"
75
87
  ],
76
88
  "author": "Brashkie (Hepein)",
77
89
  "license": "Apache-2.0",
@@ -99,27 +111,27 @@
99
111
  }
100
112
  },
101
113
  "optionalDependencies": {
102
- "@brashkie/signalis-core-win32-x64-msvc": "0.1.0",
103
- "@brashkie/signalis-core-win32-arm64-msvc": "0.1.0",
104
- "@brashkie/signalis-core-darwin-x64": "0.1.0",
105
- "@brashkie/signalis-core-darwin-arm64": "0.1.0",
106
- "@brashkie/signalis-core-linux-x64-gnu": "0.1.0",
107
- "@brashkie/signalis-core-linux-x64-musl": "0.1.0",
108
- "@brashkie/signalis-core-linux-arm64-gnu": "0.1.0"
114
+ "@brashkie/signalis-core-win32-x64-msvc": "0.2.0",
115
+ "@brashkie/signalis-core-win32-arm64-msvc": "0.2.0",
116
+ "@brashkie/signalis-core-darwin-x64": "0.2.0",
117
+ "@brashkie/signalis-core-darwin-arm64": "0.2.0",
118
+ "@brashkie/signalis-core-linux-x64-gnu": "0.2.0",
119
+ "@brashkie/signalis-core-linux-x64-musl": "0.2.0",
120
+ "@brashkie/signalis-core-linux-arm64-gnu": "0.2.0"
109
121
  },
110
122
  "devDependencies": {
111
123
  "@napi-rs/cli": "^2.18.4",
112
- "@types/node": "^20.11.0",
113
- "@typescript-eslint/eslint-plugin": "^7.0.0",
114
- "@typescript-eslint/parser": "^7.0.0",
115
- "@vitest/coverage-v8": "^1.2.0",
116
- "@vitest/ui": "^1.2.0",
124
+ "@types/node": "^22.0.0",
125
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
126
+ "@typescript-eslint/parser": "^8.0.0",
127
+ "@vitest/coverage-v8": "^3.0.0",
128
+ "@vitest/ui": "^3.0.0",
117
129
  "cross-env": "^7.0.3",
118
- "eslint": "^8.57.0",
119
- "prettier": "^3.2.0",
120
- "tsup": "^8.0.1",
121
- "tsx": "^4.7.0",
122
- "typescript": "^5.3.0",
123
- "vitest": "^1.2.0"
130
+ "eslint": "^9.0.0",
131
+ "prettier": "^3.3.0",
132
+ "tsup": "^8.5.0",
133
+ "tsx": "^4.19.0",
134
+ "typescript": "^6.0.3",
135
+ "vitest": "^3.0.0"
124
136
  }
125
- }
137
+ }