@seams/wallet-server 0.10.0 → 0.10.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/artifact-manifest.json +11 -11
- package/cloudflare-router-ab/build/deriver-a/build-stamp.json +1 -1
- package/cloudflare-router-ab/build/deriver-b/build-stamp.json +1 -1
- package/cloudflare-router-ab/build/router/build-stamp.json +1 -1
- package/cloudflare-router-ab/build/signing-worker/build-stamp.json +1 -1
- package/cloudflare-router-ab/build/tenant-root-control-plane/build-stamp.json +1 -1
- package/dist/esm/router/cloudflare/d1/registration/d1WalletRegistrationSetupExecution.js +27 -11
- package/package.json +1 -1
package/artifact-manifest.json
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
"schemaVersion": "seams_wallet_server_artifact_manifest_v1",
|
|
3
3
|
"package": {
|
|
4
4
|
"name": "@seams/wallet-server",
|
|
5
|
-
"version": "0.10.
|
|
5
|
+
"version": "0.10.1"
|
|
6
6
|
},
|
|
7
7
|
"workers": {
|
|
8
8
|
"router": {
|
|
9
9
|
"entry": "cloudflare-router-ab/build/router/worker/shim.mjs",
|
|
10
|
-
"fingerprint": "
|
|
10
|
+
"fingerprint": "b7defc2e52554b84b4be81aa98e36df17a8d87d2c237fc54977fcbb3e5d5f3fe",
|
|
11
11
|
"files": [
|
|
12
12
|
{
|
|
13
13
|
"path": "cloudflare-router-ab/build/router/build-stamp.json",
|
|
14
14
|
"bytes": 119,
|
|
15
|
-
"sha256": "
|
|
15
|
+
"sha256": "569b8dc7c91734fdb8e70bc32695d3878b36af4797f09cdf881f76af5f77fc6e"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"path": "cloudflare-router-ab/build/router/index.js",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"deriver-a": {
|
|
40
40
|
"entry": "cloudflare-router-ab/build/deriver-a/worker/shim.mjs",
|
|
41
|
-
"fingerprint": "
|
|
41
|
+
"fingerprint": "63145d407ef76f5297feb269bda9fd8b83456b088e8b6221549a1ce1562dd677",
|
|
42
42
|
"files": [
|
|
43
43
|
{
|
|
44
44
|
"path": "cloudflare-router-ab/build/deriver-a/build-stamp.json",
|
|
45
45
|
"bytes": 122,
|
|
46
|
-
"sha256": "
|
|
46
|
+
"sha256": "9c91ef671f2959f1c95cdbbfb19bdc5c111e7c6e5644a688599add75a010e03a"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"path": "cloudflare-router-ab/build/deriver-a/index.js",
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
},
|
|
70
70
|
"deriver-b": {
|
|
71
71
|
"entry": "cloudflare-router-ab/build/deriver-b/worker/shim.mjs",
|
|
72
|
-
"fingerprint": "
|
|
72
|
+
"fingerprint": "6aa884b1c5918353417885d4ff98e71448fb895b905cbc33a26bbb201cffd4aa",
|
|
73
73
|
"files": [
|
|
74
74
|
{
|
|
75
75
|
"path": "cloudflare-router-ab/build/deriver-b/build-stamp.json",
|
|
76
76
|
"bytes": 122,
|
|
77
|
-
"sha256": "
|
|
77
|
+
"sha256": "a248bf9d5965e68e5e9ddda18a7df1538599947e587337ac0f891ea38dc99058"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
"path": "cloudflare-router-ab/build/deriver-b/index.js",
|
|
@@ -100,12 +100,12 @@
|
|
|
100
100
|
},
|
|
101
101
|
"signing-worker": {
|
|
102
102
|
"entry": "cloudflare-router-ab/build/signing-worker/worker/shim.mjs",
|
|
103
|
-
"fingerprint": "
|
|
103
|
+
"fingerprint": "cac4747153c83f200b9587a2a7b3b16134c8a606be97c922c57c7cdf047209ec",
|
|
104
104
|
"files": [
|
|
105
105
|
{
|
|
106
106
|
"path": "cloudflare-router-ab/build/signing-worker/build-stamp.json",
|
|
107
107
|
"bytes": 127,
|
|
108
|
-
"sha256": "
|
|
108
|
+
"sha256": "979d6d2cbd65a5f2cd247626c8a004602d511749fe58eff1a5a96feac2b4bfdc"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"path": "cloudflare-router-ab/build/signing-worker/index.js",
|
|
@@ -131,12 +131,12 @@
|
|
|
131
131
|
},
|
|
132
132
|
"tenant-root-control-plane": {
|
|
133
133
|
"entry": "cloudflare-router-ab/build/tenant-root-control-plane/worker/shim.mjs",
|
|
134
|
-
"fingerprint": "
|
|
134
|
+
"fingerprint": "b693de9ac3c30fdb07fa3533939c92cf53d5b9393879606bc1468a634e8c0a24",
|
|
135
135
|
"files": [
|
|
136
136
|
{
|
|
137
137
|
"path": "cloudflare-router-ab/build/tenant-root-control-plane/build-stamp.json",
|
|
138
138
|
"bytes": 139,
|
|
139
|
-
"sha256": "
|
|
139
|
+
"sha256": "eca5ee33b2dd0ecfe2f42e6bb83a481141c1309b8166a2815427cfc52d4a07cd"
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"path": "cloudflare-router-ab/build/tenant-root-control-plane/index.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"profile":"release","wallet_objects":true,"features":"strict-worker-deriver-a-entrypoint","started_at_ms":
|
|
1
|
+
{"profile":"release","wallet_objects":true,"features":"strict-worker-deriver-a-entrypoint","started_at_ms":1791942930294}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"profile":"release","wallet_objects":true,"features":"strict-worker-deriver-b-entrypoint","started_at_ms":
|
|
1
|
+
{"profile":"release","wallet_objects":true,"features":"strict-worker-deriver-b-entrypoint","started_at_ms":1791943152950}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"profile":"release","wallet_objects":true,"features":"strict-worker-router-entrypoint","started_at_ms":
|
|
1
|
+
{"profile":"release","wallet_objects":true,"features":"strict-worker-router-entrypoint","started_at_ms":1791943363555}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"profile":"release","wallet_objects":true,"features":"strict-worker-signing-worker-entrypoint","started_at_ms":
|
|
1
|
+
{"profile":"release","wallet_objects":true,"features":"strict-worker-signing-worker-entrypoint","started_at_ms":1791942629258}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"profile":"release","wallet_objects":false,"features":"strict-worker-tenant-root-control-plane-entrypoint","started_at_ms":
|
|
1
|
+
{"profile":"release","wallet_objects":false,"features":"strict-worker-tenant-root-control-plane-entrypoint","started_at_ms":1791943569178}
|
|
@@ -176,25 +176,41 @@ async function describeSetupEd25519Admission(ed25519Yao, ceremony, branch) {
|
|
|
176
176
|
const signingRootId = normalizeOptionalTrimmedString(ceremony.signingRootId);
|
|
177
177
|
const signingRootVersion = normalizeOptionalTrimmedString(ceremony.signingRootVersion);
|
|
178
178
|
if (authMethod.kind !== "passkey" || !ed25519Yao || !mint || !signingRootId || !signingRootVersion) return { status: "after_proof" };
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
return await describedEd25519Admission({
|
|
180
|
+
ed25519Yao,
|
|
181
|
+
ceremony,
|
|
182
|
+
branch,
|
|
183
|
+
rpId: authMethod.rpId,
|
|
184
|
+
mint,
|
|
182
185
|
signingRootId,
|
|
183
|
-
signingRootVersion
|
|
186
|
+
signingRootVersion
|
|
187
|
+
}).catch(withholdEd25519AdmissionDescription) ?? { status: "after_proof" };
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Every step that can fail is inside this one promise, so the caller's single
|
|
191
|
+
* catch covers the request as well as the receipt. A wallet id that cannot
|
|
192
|
+
* hold the branch's signing key fails here, and respond reports it as before.
|
|
193
|
+
*/
|
|
194
|
+
async function describedEd25519Admission(input) {
|
|
195
|
+
const admissionRequest = await buildRouterAbEd25519YaoProductAdmissionRequestV1({
|
|
196
|
+
registrationCeremonyId: input.ceremony.registrationCeremonyId,
|
|
197
|
+
walletId: input.ceremony.intent.walletId,
|
|
198
|
+
signingRootId: input.signingRootId,
|
|
199
|
+
signingRootVersion: input.signingRootVersion,
|
|
184
200
|
authorityScope: {
|
|
185
201
|
kind: "passkey",
|
|
186
|
-
rpId:
|
|
202
|
+
rpId: input.rpId
|
|
187
203
|
},
|
|
188
|
-
branch,
|
|
189
|
-
signingWorkerId: ed25519Yao.signingWorkerId,
|
|
190
|
-
materialActivation: mint.materialActivation
|
|
204
|
+
branch: input.branch,
|
|
205
|
+
signingWorkerId: input.ed25519Yao.signingWorkerId,
|
|
206
|
+
materialActivation: input.mint.materialActivation
|
|
191
207
|
});
|
|
192
|
-
const described = await ed25519Yao.describeRegistrationAdmission(admissionRequest, mint.sessionId)
|
|
193
|
-
return described
|
|
208
|
+
const described = await input.ed25519Yao.describeRegistrationAdmission(admissionRequest, input.mint.sessionId);
|
|
209
|
+
return described.ok ? {
|
|
194
210
|
status: "described",
|
|
195
211
|
admissionRequest,
|
|
196
212
|
admissionReceipt: described.value
|
|
197
|
-
} :
|
|
213
|
+
} : null;
|
|
198
214
|
}
|
|
199
215
|
function withholdEd25519AdmissionDescription() {
|
|
200
216
|
return null;
|