@monolythium/core-sdk 0.4.8 → 0.4.10
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/dist/crypto/index.cjs +28 -0
- package/dist/crypto/index.cjs.map +1 -1
- package/dist/crypto/index.d.cts +2 -2
- package/dist/crypto/index.d.ts +2 -2
- package/dist/crypto/index.js +28 -0
- package/dist/crypto/index.js.map +1 -1
- package/dist/index.cjs +38 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +38 -32
- package/dist/index.js.map +1 -1
- package/dist/{submission-Bd8ajSxX.d.cts → submission-7MkZky2W.d.cts} +17 -0
- package/dist/{submission-Bd8ajSxX.d.ts → submission-7MkZky2W.d.ts} +17 -0
- package/package.json +1 -1
|
@@ -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): {
|