@monolythium/core-sdk 0.4.8 → 0.4.9

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.
@@ -6075,6 +6075,23 @@ declare class MlDsa65Backend {
6075
6075
  addressBytes(): Uint8Array;
6076
6076
  getAddress(): string;
6077
6077
  sign(message: Uint8Array): Uint8Array;
6078
+ /**
6079
+ * Best-effort deterministic wipe of the in-memory secret key. Zeroes the
6080
+ * SDK-held `#secretKey` copy and makes any subsequent `sign()` /
6081
+ * `signPrehash()` / `signEvmTx()` throw `"MlDsa65Backend disposed"` rather
6082
+ * than signing with a zeroed key. Idempotent. Public material
6083
+ * (`publicKey()` / `getAddress()` / `verify()`) stays usable.
6084
+ *
6085
+ * Defense-in-depth (S1-01): narrows the post-lock residency window of the
6086
+ * ML-DSA-65 secret in the JS heap. `@noble/post-quantum`'s internal
6087
+ * transient keygen/sign buffers are out of scope; the SDK-held copy is the
6088
+ * meaningful residency win.
6089
+ */
6090
+ dispose(): void;
6091
+ /** Alias for {@link dispose}. */
6092
+ zeroize(): void;
6093
+ /** Whether {@link dispose} has been called (the secret key is wiped). */
6094
+ get disposed(): boolean;
6078
6095
  signPrehash(digest: Uint8Array): Uint8Array;
6079
6096
  verify(message: Uint8Array, signature: Uint8Array): boolean;
6080
6097
  signEvmTx(fields: NativeEvmTxFields): {
@@ -6075,6 +6075,23 @@ declare class MlDsa65Backend {
6075
6075
  addressBytes(): Uint8Array;
6076
6076
  getAddress(): string;
6077
6077
  sign(message: Uint8Array): Uint8Array;
6078
+ /**
6079
+ * Best-effort deterministic wipe of the in-memory secret key. Zeroes the
6080
+ * SDK-held `#secretKey` copy and makes any subsequent `sign()` /
6081
+ * `signPrehash()` / `signEvmTx()` throw `"MlDsa65Backend disposed"` rather
6082
+ * than signing with a zeroed key. Idempotent. Public material
6083
+ * (`publicKey()` / `getAddress()` / `verify()`) stays usable.
6084
+ *
6085
+ * Defense-in-depth (S1-01): narrows the post-lock residency window of the
6086
+ * ML-DSA-65 secret in the JS heap. `@noble/post-quantum`'s internal
6087
+ * transient keygen/sign buffers are out of scope; the SDK-held copy is the
6088
+ * meaningful residency win.
6089
+ */
6090
+ dispose(): void;
6091
+ /** Alias for {@link dispose}. */
6092
+ zeroize(): void;
6093
+ /** Whether {@link dispose} has been called (the secret key is wiped). */
6094
+ get disposed(): boolean;
6078
6095
  signPrehash(digest: Uint8Array): Uint8Array;
6079
6096
  verify(message: Uint8Array, signature: Uint8Array): boolean;
6080
6097
  signEvmTx(fields: NativeEvmTxFields): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolythium/core-sdk",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Official TypeScript SDK for Monolythium / LythiumDAG-BFT",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {