@waaskey/sdk 0.3.0 → 0.3.2
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/index.cjs +230 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +90 -49
- package/dist/index.d.ts +90 -49
- package/dist/index.js +230 -69
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +5 -1
- package/package.json +3 -3
package/dist/node.d.ts
CHANGED
|
@@ -80,7 +80,11 @@ interface DeviceSignParams extends CeremonyParams {
|
|
|
80
80
|
}
|
|
81
81
|
/** Result of the device half of sign. */
|
|
82
82
|
interface DeviceSignResult {
|
|
83
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* The signature as LOW-S–normalized compact `r ‖ s` hex (128 chars, no `0x`) — byte-identical to
|
|
85
|
+
* what the platform's own party produces, so the backend can cross-check the two before embedding
|
|
86
|
+
* one into a transaction, and chain adapters can slice `r`/`s` by offset.
|
|
87
|
+
*/
|
|
84
88
|
signature: string;
|
|
85
89
|
}
|
|
86
90
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@waaskey/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "WAASKey — embedded, non-custodial MPC wallets for your app. Official TypeScript SDK.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Waaskey",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@simplewebauthn/browser": "^13.0.0",
|
|
66
|
-
"@waaskey/client-wasm": "0.2.
|
|
66
|
+
"@waaskey/client-wasm": "0.2.2"
|
|
67
67
|
},
|
|
68
68
|
"peerDependenciesMeta": {
|
|
69
69
|
"@simplewebauthn/browser": {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"optional": true
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
|
-
"//peerDependencies-note": "@waaskey/client-wasm (the wasm MPC engine) is loaded via an indirect dynamic import (see mpc/load-wasm.ts) and pinned to the EXACT version in CLIENT_WASM_VERSION — never a floating range (issue #40). The SDK
|
|
76
|
+
"//peerDependencies-note": "@waaskey/client-wasm (the wasm MPC engine) is loaded via an indirect dynamic import (see mpc/load-wasm.ts) and pinned to the EXACT version in CLIENT_WASM_VERSION — never a floating range (issue #40). The SDK requires 0.2.2, which awaits the relay close (an unpolled close left the party's role registered, so a sign right after keygen was rejected) and emits signatures as low-s normalized compact r‖s hex — the wire form the platform party produces and the chain adapters slice by offset. Bump BOTH this pin and CLIENT_WASM_VERSION together, and only AFTER the new client-wasm is on npm: pnpm resolves optional peers, so an unpublished pin 404s `pnpm install`. Publish it from waas-core by bumping client-wasm/Cargo.toml and pushing a `client-wasm-v<version>` tag.",
|
|
77
77
|
"scripts": {
|
|
78
78
|
"build": "tsup",
|
|
79
79
|
"start": "tsup --watch",
|