@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.
@@ -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.0"
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": "30a977906ffe17f0c8154fc58cad84e5df227730bdf50dfd1bea27271c27d635",
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": "36fb737144714076d0a980aedb84ef4d47f5ca98246e90fddf43c29140aced2b"
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": "60717e64cecd5d8532c510ef1f5e60c382daa41aee184b91ec0cfb65da94d1fe",
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": "ae63051a87200abb4b866eb33d9932a79d362e3112397e5a0b4fcbaf464ecfb5"
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": "b41ef1b3a57563b3ec0a0507dac488beee635693fdca299badd8a7ddaf050448",
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": "305fde47592fd7a9321129053c55722fdecd8025c96962052cc430b2862d7d6e"
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": "7bca2a3c2aa5208b57ba168af1c0066d5e09bf3d0b206a4b72da33b3e9f6a6a7",
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": "ac4932d897470893a453e385e3aef19759a4b18e069407fb5293a900c9101c36"
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": "7cfb93d1efe8ab85f51418f1cddad2604a52f607c0301e85ccf4a28f8a8de04f",
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": "0909a15f5d630a44d584483a7ddc062f46fb002c4ac87ad609625178a0748c2b"
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":1791900498698}
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":1791900730423}
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":1791900949130}
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":1791900184666}
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":1791901158819}
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
- const admissionRequest = await buildRouterAbEd25519YaoProductAdmissionRequestV1({
180
- registrationCeremonyId: ceremony.registrationCeremonyId,
181
- walletId: ceremony.intent.walletId,
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: authMethod.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).catch(withholdEd25519AdmissionDescription);
193
- return described?.ok ? {
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
- } : { status: "after_proof" };
213
+ } : null;
198
214
  }
199
215
  function withholdEd25519AdmissionDescription() {
200
216
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seams/wallet-server",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "type": "module",
5
5
  "description": "Seams server TypeScript SDK for NEAR and EVM-family wallets",
6
6
  "main": "./dist/esm/index.js",