@laceio/sdk 0.1.1-canary.0 → 0.1.1-canary.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.
Files changed (65) hide show
  1. package/README.md +1 -1
  2. package/dist/{account-call-CoCq3V55.js → account-call-BDdWqMAY.js} +22 -7
  3. package/dist/{account-call-BF4rBcNw.js → account-call-BExOpZoo.js} +1 -1
  4. package/dist/{account-call-B7cF8ly4.cjs → account-call-CYYoAS1E.cjs} +27 -6
  5. package/dist/{account-call-DFcD257E.cjs → account-call-Cvj7viaq.cjs} +1 -1
  6. package/dist/{artefact-loader-Cqc9eSkL.cjs → artefact-loader-De9WJH1J.cjs} +1 -0
  7. package/dist/{artefact-loader-D0T2f6F7.js → artefact-loader-nlsYFjxU.js} +1 -0
  8. package/dist/bitcoin.cjs +3 -3
  9. package/dist/bitcoin.js +3 -3
  10. package/dist/cardano.cjs +3 -3
  11. package/dist/cardano.d.ts +10 -7
  12. package/dist/cardano.js +3 -3
  13. package/dist/{contract-DD6CGnpB.cjs → contract-2KVxlHyu.cjs} +1 -1
  14. package/dist/{contract-BsIGhsYa.js → contract-DjQqqZLo.js} +1 -1
  15. package/dist/{device-readers-BHJeNR8I.js → device-readers-BPDz2oqa.js} +1 -1
  16. package/dist/{device-readers-b4g2j3QL.js → device-readers-CVqmvmLZ.js} +2 -1
  17. package/dist/{device-readers-cxcJcWq5.cjs → device-readers-DzkDMjPn.cjs} +1 -1
  18. package/dist/{device-readers-Dw7uTNM5.cjs → device-readers-XMZMfFvZ.cjs} +3 -2
  19. package/dist/{envelopes-BdE1xlgz.cjs → envelopes-BmL7onAK.cjs} +71 -1127
  20. package/dist/{envelopes-B3QCzo5p.js → envelopes-CfWTR2uy.js} +65 -1103
  21. package/dist/experimental.cjs +96 -41
  22. package/dist/experimental.d.ts +157 -39
  23. package/dist/experimental.js +90 -35
  24. package/dist/{gated-call-DdDrxEq5.cjs → gated-call-DLC5PBlN.cjs} +23 -19
  25. package/dist/{gated-call-CcsuW9L5.js → gated-call-DQhT7v2J.js} +23 -19
  26. package/dist/{gated-call-BrPjKolT.js → gated-call-DdNOQh_Z.js} +1 -1
  27. package/dist/{gated-call-Dk7PazhG.cjs → gated-call-wAB15GtN.cjs} +1 -1
  28. package/dist/grant-circuits-BKJrMSNo.cjs +49 -0
  29. package/dist/grant-circuits-D53wmGyr.js +26 -0
  30. package/dist/{grant-rules-B7eDuD5G.cjs → grant-rules-fYt80KB1.cjs} +1741 -95
  31. package/dist/{grant-rules-qLrKUIR3.js → grant-rules-rG1kJq6l.js} +1694 -78
  32. package/dist/{grants-CIb6nOV7.cjs → grants-C5wpNvZJ.cjs} +28 -35
  33. package/dist/{grants-Bnb-3Hkv.cjs → grants-DY3sN9We.cjs} +2 -2
  34. package/dist/{grants-CYY0AquW.js → grants-ngFtS52g.js} +26 -15
  35. package/dist/{grants-DOsFSotP.js → grants-qpXC94Rk.js} +2 -2
  36. package/dist/index.cjs +4 -4
  37. package/dist/index.d.ts +10 -7
  38. package/dist/index.js +4 -4
  39. package/dist/{init-DPTJohPd.js → init-CwLZXfTl.js} +1 -1
  40. package/dist/{init-X6m_cqDy.js → init-DJzEpODO.js} +45 -25
  41. package/dist/{init-DmyuM9Lo.cjs → init-DnELgrhn.cjs} +1 -1
  42. package/dist/{init-DktAnYI0.cjs → init-DypZuehC.cjs} +48 -28
  43. package/dist/{jubjub-authoriser-A2c8vmkN.js → jubjub-authoriser-BBJcD2uC.js} +3 -2
  44. package/dist/{jubjub-authoriser-D3ZDgzcF.cjs → jubjub-authoriser-BlXt4Z-D.cjs} +6 -5
  45. package/dist/midnight.cjs +1 -1
  46. package/dist/midnight.js +1 -1
  47. package/dist/{modules-cardano-BiL9hoM3.js → modules-cardano-4IgYsKeN.js} +10 -7
  48. package/dist/{modules-cardano-UeXks3sd.cjs → modules-cardano-Baqj2GZH.cjs} +10 -7
  49. package/dist/{providers-1on_fwJO.cjs → providers--Hg9iF5v.cjs} +7 -5
  50. package/dist/{providers-C1MsxfMA.js → providers-DQ5_3h2l.js} +7 -5
  51. package/dist/{sdk-1SRu8Ype.cjs → sdk-Bm9-P0L-.cjs} +4 -4
  52. package/dist/{sdk-BneJm7ey.js → sdk-Cf__6dDe.js} +4 -4
  53. package/dist/{slice-Cwt8jShq.js → slice-DJelVt0i.js} +30 -30
  54. package/dist/{slice-BKnGkAkd.cjs → slice-RQRLciQc.cjs} +30 -30
  55. package/dist/{submit-bitcoin-tx-DFLnhidO.js → submit-bitcoin-tx-CE0AD-xH.js} +2 -2
  56. package/dist/{submit-bitcoin-tx-sih2hSfb.cjs → submit-bitcoin-tx-CK10OTfQ.cjs} +2 -2
  57. package/dist/{token-color.vo-CItgoOjw.js → types-46lh8O9r.js} +8 -1
  58. package/dist/{token-color.vo-Ca4hUXfh.cjs → types-BhhNR1_B.cjs} +13 -0
  59. package/package.json +1 -1
  60. /package/dist/{init-DIyNx6DZ.js → init-B0hAl9w6.js} +0 -0
  61. /package/dist/{init-Bilqsbng.js → init-CS98M3iD.js} +0 -0
  62. /package/dist/{init-J8QobR93.cjs → init-CSURGyW_.cjs} +0 -0
  63. /package/dist/{init-bzvl1JhF.cjs → init-kVOOiU0-.cjs} +0 -0
  64. /package/dist/{node-relay-BOuvdZvC.cjs → node-relay-BEtqi_vU.cjs} +0 -0
  65. /package/dist/{node-relay-CLtc5n1v.js → node-relay-CkgpDObu.js} +0 -0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @laceio/sdk
2
2
 
3
- A headless TypeScript SDK for self-custodial wallets in the form your app needs (recovery phrases, your own key material, passkeys or the hosted signer), reactive state observables, transaction building, signing and submission, and wallet modules on one engine, with more added over time. The documentation, the API reference and a Playground are on the developer site, <https://sdk.lace.io>.
3
+ A headless TypeScript SDK for self-custody wallets, reactive state observables, transaction building, signing and submission, and wallet modules on one engine. Build wallets with recovery phrases, user-controlled key material or passkeys. In a browser app, wallet keys stay in the user's browser. The hosted signer is a self-custody passkey wallet running in a separate browser window; your app receives only public keys and signatures. The documentation, the API reference and a Playground are on the developer site, <https://sdk.lace.io>.
4
4
 
5
5
  ## Installation
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { n as HexBytes, t as ByteArray } from "./bytes.vo-CziaOsba.js";
2
- import { i as AccAddress, t as createMidnightProviders } from "./providers-C1MsxfMA.js";
3
- import { n as executeGatedCall, o as DeviceEpoch, s as UseCounter, t as connectAccountHandle } from "./gated-call-CcsuW9L5.js";
2
+ import { i as AccAddress, t as createMidnightProviders } from "./providers-DQ5_3h2l.js";
3
+ import { n as executeGatedCall, o as DeviceEpoch, s as UseCounter, t as connectAccountHandle } from "./gated-call-DQhT7v2J.js";
4
4
  import { t as AccountContractMissingError } from "./errors-pkQdxW-7.js";
5
5
  import { i as ledger } from "./acc-module-ur8CkBd1.js";
6
6
  //#region ../../packages/module/passport-account/src/infra/indexer.ts
@@ -178,18 +178,33 @@ const UNKNOWN_ENTRY_ABORT = "failed assert: unknown device entry";
178
178
  /** Whether a contract abort message says the authorising key was rejected. */
179
179
  const isNotAuthorisedAbort = (message) => NOT_AUTHORISED_ABORTS.some((abort) => message.includes(abort));
180
180
  /**
181
- * The decoded ledger state of the account at `address`, which must hold
182
- * a live contract.
181
+ * The contract state the indexer serves at `address`, which must exist.
183
182
  *
184
183
  * @throws {@link AccountContractMissingError} when the indexer serves no
185
184
  * contract at the address.
186
185
  */
187
- const queryAccountLedger = async (indexer, address) => {
186
+ const queryAccountState = async (indexer, address) => {
188
187
  const state = await indexer.queryContractState(address);
189
188
  if (!state) throw new AccountContractMissingError(`No live Account Custody Contract found at ${address}.`);
190
- return ledger(state.data);
189
+ return state;
191
190
  };
192
191
  /**
192
+ * The decoded ledger state of the account at `address`, which must hold
193
+ * a live contract.
194
+ *
195
+ * @throws {@link AccountContractMissingError} when the indexer serves no
196
+ * contract at the address.
197
+ */
198
+ const queryAccountLedger = async (indexer, address) => ledger((await queryAccountState(indexer, address)).data);
199
+ /**
200
+ * The operations the account at `address` holds verifier keys for, which
201
+ * are the circuits the chain will accept a call to.
202
+ *
203
+ * @throws {@link AccountContractMissingError} when the indexer serves no
204
+ * contract at the address.
205
+ */
206
+ const queryAccountOperations = async (indexer, address) => (await queryAccountState(indexer, address)).operations().map(String);
207
+ /**
193
208
  * Reads the account's ledger state through a fresh indexer client, which
194
209
  * is returned with it so a flow can read the state again after a call.
195
210
  */
@@ -249,4 +264,4 @@ const withRefreshedLocalDevice = (devices, commitmentHex) => devices.map((device
249
264
  commitmentHex
250
265
  } : device);
251
266
  //#endregion
252
- export { submitAccountCall as a, readAccountLedger as i, isNotAuthorisedAbort as n, withRefreshedLocalDevice as o, queryAccountLedger as r, createIndexerClient as s, UNKNOWN_ENTRY_ABORT as t };
267
+ export { readAccountLedger as a, createIndexerClient as c, queryAccountOperations as i, isNotAuthorisedAbort as n, submitAccountCall as o, queryAccountLedger as r, withRefreshedLocalDevice as s, UNKNOWN_ENTRY_ABORT as t };
@@ -1,3 +1,3 @@
1
1
  import "./_polyfill-buffer-patch-JcrfT1gU.js";
2
- import { i as readAccountLedger } from "./account-call-CoCq3V55.js";
2
+ import { a as readAccountLedger } from "./account-call-BDdWqMAY.js";
3
3
  export { readAccountLedger };
@@ -1,6 +1,6 @@
1
1
  const require_bytes_vo = require("./bytes.vo-hecRu3YZ.cjs");
2
- const require_providers = require("./providers-1on_fwJO.cjs");
3
- const require_gated_call = require("./gated-call-DdDrxEq5.cjs");
2
+ const require_providers = require("./providers--Hg9iF5v.cjs");
3
+ const require_gated_call = require("./gated-call-DLC5PBlN.cjs");
4
4
  const require_errors = require("./errors-BA3b8aVu.cjs");
5
5
  const require_acc_module = require("./acc-module-NL_8mEHH.cjs");
6
6
  //#region ../../packages/module/passport-account/src/infra/indexer.ts
@@ -178,18 +178,33 @@ const UNKNOWN_ENTRY_ABORT = "failed assert: unknown device entry";
178
178
  /** Whether a contract abort message says the authorising key was rejected. */
179
179
  const isNotAuthorisedAbort = (message) => NOT_AUTHORISED_ABORTS.some((abort) => message.includes(abort));
180
180
  /**
181
- * The decoded ledger state of the account at `address`, which must hold
182
- * a live contract.
181
+ * The contract state the indexer serves at `address`, which must exist.
183
182
  *
184
183
  * @throws {@link AccountContractMissingError} when the indexer serves no
185
184
  * contract at the address.
186
185
  */
187
- const queryAccountLedger = async (indexer, address) => {
186
+ const queryAccountState = async (indexer, address) => {
188
187
  const state = await indexer.queryContractState(address);
189
188
  if (!state) throw new require_errors.AccountContractMissingError(`No live Account Custody Contract found at ${address}.`);
190
- return require_acc_module.ledger(state.data);
189
+ return state;
191
190
  };
192
191
  /**
192
+ * The decoded ledger state of the account at `address`, which must hold
193
+ * a live contract.
194
+ *
195
+ * @throws {@link AccountContractMissingError} when the indexer serves no
196
+ * contract at the address.
197
+ */
198
+ const queryAccountLedger = async (indexer, address) => require_acc_module.ledger((await queryAccountState(indexer, address)).data);
199
+ /**
200
+ * The operations the account at `address` holds verifier keys for, which
201
+ * are the circuits the chain will accept a call to.
202
+ *
203
+ * @throws {@link AccountContractMissingError} when the indexer serves no
204
+ * contract at the address.
205
+ */
206
+ const queryAccountOperations = async (indexer, address) => (await queryAccountState(indexer, address)).operations().map(String);
207
+ /**
193
208
  * Reads the account's ledger state through a fresh indexer client, which
194
209
  * is returned with it so a flow can read the state again after a call.
195
210
  */
@@ -273,6 +288,12 @@ Object.defineProperty(exports, "queryAccountLedger", {
273
288
  return queryAccountLedger;
274
289
  }
275
290
  });
291
+ Object.defineProperty(exports, "queryAccountOperations", {
292
+ enumerable: true,
293
+ get: function() {
294
+ return queryAccountOperations;
295
+ }
296
+ });
276
297
  Object.defineProperty(exports, "readAccountLedger", {
277
298
  enumerable: true,
278
299
  get: function() {
@@ -1,4 +1,4 @@
1
1
  require("./chunk-9hOWP6kD.cjs");
2
2
  require("./_polyfill-buffer-patch-BycQkEkK.cjs");
3
- const require_account_call = require("./account-call-B7cF8ly4.cjs");
3
+ const require_account_call = require("./account-call-CYYoAS1E.cjs");
4
4
  exports.readAccountLedger = require_account_call.readAccountLedger;
@@ -95,6 +95,7 @@ const accManifest = {
95
95
  "derive_boot_commitment_with_jubjub",
96
96
  "derive_device_entry_with_jubjub",
97
97
  "derive_grant_id_with_jubjub",
98
+ "derive_grant_id_with_k256",
98
99
  "derive_grant_object_commit",
99
100
  "derive_grant_scope_digest"
100
101
  ]
@@ -95,6 +95,7 @@ const accManifest = {
95
95
  "derive_boot_commitment_with_jubjub",
96
96
  "derive_device_entry_with_jubjub",
97
97
  "derive_grant_id_with_jubjub",
98
+ "derive_grant_id_with_k256",
98
99
  "derive_grant_object_commit",
99
100
  "derive_grant_scope_digest"
100
101
  ]
package/dist/bitcoin.cjs CHANGED
@@ -7,7 +7,7 @@ require("./serializable-n3UoxbZc.cjs");
7
7
  require("./pbkdf2-B1veireP.cjs");
8
8
  require("./safe-buffer-DbXbwhUQ.cjs");
9
9
  require("./src-BayYMIjw.cjs");
10
- const require_sdk = require("./sdk-1SRu8Ype.cjs");
10
+ const require_sdk = require("./sdk-Bm9-P0L-.cjs");
11
11
  require("./secret-box-ZfbYwBgS.cjs");
12
12
  const require_address = require("./address-lECYBd9-.cjs");
13
13
  require("./util-D1YlKzrc.cjs");
@@ -16,8 +16,8 @@ const require_time_vo = require("./time.vo-TmYE-_Y2.cjs");
16
16
  require("./asyncoption-CYcZNBRM.cjs");
17
17
  const require_const = require("./const-BWBAzOmN.cjs");
18
18
  const require_account_id_vo = require("./account-id.vo-DYZBZQsz.cjs");
19
- const require_contract = require("./contract-DD6CGnpB.cjs");
20
- const require_submit_bitcoin_tx = require("./submit-bitcoin-tx-sih2hSfb.cjs");
19
+ const require_contract = require("./contract-2KVxlHyu.cjs");
20
+ const require_submit_bitcoin_tx = require("./submit-bitcoin-tx-CK10OTfQ.cjs");
21
21
  const require_types = require("./types-Dls6Z5gV.cjs");
22
22
  const require_const$1 = require("./const-CSWmOyzn.cjs");
23
23
  require("./bn-BFq5a4dk.cjs");
package/dist/bitcoin.js CHANGED
@@ -6,7 +6,7 @@ import "./_web-crypto-random-bytes-BvzwTYPG.js";
6
6
  import "./safe-buffer-CqGpSFCQ.js";
7
7
  import "./browser-D5jRKv_L.js";
8
8
  import "./src-CgINPlSx.js";
9
- import { M as WalletId, S as WalletType, a as createInMemoryWalletEntity, c as createLaceWallet } from "./sdk-BneJm7ey.js";
9
+ import { M as WalletId, S as WalletType, a as createInMemoryWalletEntity, c as createLaceWallet } from "./sdk-Cf__6dDe.js";
10
10
  import "./secret-box-CSmRp6Tt.js";
11
11
  import { s as BitcoinNetworkId } from "./address-OxwXIwbF.js";
12
12
  import "./util-DHxtzUzY.js";
@@ -15,8 +15,8 @@ import { r as Milliseconds } from "./time.vo-C17-tYq3.js";
15
15
  import "./asyncoption-DZQGfznq.js";
16
16
  import { t as FEATURE_FLAG_NETWORK_TYPE } from "./const-xGSNCtwQ.js";
17
17
  import { t as AccountId } from "./account-id.vo-KDTWJ-W5.js";
18
- import { r as LazyWalletMismatchError } from "./contract-BsIGhsYa.js";
19
- import { a as createBitcoinLazyInMemoryVaultModule, d as BitcoinTxBuildErrorCode, i as waitForBitcoinAccountSync, n as signBitcoinTx, o as modules_exports, r as buildBitcoinTx, t as submitBitcoinTx, u as BitcoinTxBuildError } from "./submit-bitcoin-tx-DFLnhidO.js";
18
+ import { r as LazyWalletMismatchError } from "./contract-DjQqqZLo.js";
19
+ import { a as createBitcoinLazyInMemoryVaultModule, d as BitcoinTxBuildErrorCode, i as waitForBitcoinAccountSync, n as signBitcoinTx, o as modules_exports, r as buildBitcoinTx, t as submitBitcoinTx, u as BitcoinTxBuildError } from "./submit-bitcoin-tx-CE0AD-xH.js";
20
20
  import { n as BitcoinNetwork } from "./types-DXSxXGz0.js";
21
21
  import { n as BITCOIN_MEMPOOL_FEE_MARKET_FEATURE_FLAG, t as BITCOIN_FEATURE_FLAG } from "./const-DW7z3R5k.js";
22
22
  export { AccountId, BITCOIN_FEATURE_FLAG, BITCOIN_MEMPOOL_FEE_MARKET_FEATURE_FLAG, BitcoinNetwork, BitcoinNetworkId, BitcoinTxBuildError, BitcoinTxBuildErrorCode, FEATURE_FLAG_NETWORK_TYPE, HexBytes, LazyWalletMismatchError, Milliseconds, WalletId, WalletType, buildBitcoinTx, createBitcoinLazyInMemoryVaultModule, createInMemoryWalletEntity, createLaceWallet, modules_exports as m, signBitcoinTx, submitBitcoinTx, waitForBitcoinAccountSync };
package/dist/cardano.cjs CHANGED
@@ -9,7 +9,7 @@ require("./safe-buffer-DbXbwhUQ.cjs");
9
9
  const require_Cardano = require("./Cardano-BQ_af0Y3.cjs");
10
10
  require("./InMemoryKeyAgent-Bc_xZY-v.cjs");
11
11
  require("./src-BayYMIjw.cjs");
12
- const require_sdk = require("./sdk-1SRu8Ype.cjs");
12
+ const require_sdk = require("./sdk-Bm9-P0L-.cjs");
13
13
  require("./secret-box-ZfbYwBgS.cjs");
14
14
  require("./util-D1YlKzrc.cjs");
15
15
  const require_bytes_vo = require("./bytes.vo-hecRu3YZ.cjs");
@@ -19,8 +19,8 @@ const require_key_source = require("./key-source-D2tTAag-.cjs");
19
19
  const require_const = require("./const-BWBAzOmN.cjs");
20
20
  const require_account_id_vo = require("./account-id.vo-DYZBZQsz.cjs");
21
21
  const require_const$1 = require("./const-D3mCkwrM.cjs");
22
- const require_contract = require("./contract-DD6CGnpB.cjs");
23
- const require_modules_cardano = require("./modules-cardano-UeXks3sd.cjs");
22
+ const require_contract = require("./contract-2KVxlHyu.cjs");
23
+ const require_modules_cardano = require("./modules-cardano-Baqj2GZH.cjs");
24
24
  exports.AccountId = require_account_id_vo.AccountId;
25
25
  Object.defineProperty(exports, "Cardano", {
26
26
  enumerable: true,
package/dist/cardano.d.ts CHANGED
@@ -24380,8 +24380,8 @@ type CreateRemotePasskeySignerProps = {
24380
24380
  host?: CreateSignerClientProps['host'];
24381
24381
  };
24382
24382
  /**
24383
- * One connection to the hosted Lace signer page and the Cardano signing a dApp
24384
- * does through it.
24383
+ * One connection to the hosted Lace self-custodial passkey wallet in the user's
24384
+ * browser, and the Cardano signing a dApp does through it.
24385
24385
  */
24386
24386
  type RemotePasskeySigner = Pick<SignerClient, 'close' | 'connect' | 'open' | 'request'> & {
24387
24387
  /** Signs Cardano transactions and data through the same signer connection. */
@@ -24400,8 +24400,10 @@ type RemotePasskeySigner = Pick<SignerClient, 'close' | 'connect' | 'open' | 're
24400
24400
  *
24401
24401
  * It composes {@link createSignerClient} with the remote Cardano vault
24402
24402
  * module, so a dApp gets one connection to the Lace signer page instead of
24403
- * building its own key source. The passkey stays with the signer page; the
24404
- * dApp receives public keys and signatures only.
24403
+ * building its own key source. The hosted signer is a self-custodial wallet:
24404
+ * wallet keys are derived and used in its window in the user's browser, and
24405
+ * the passkey stays in the user's authenticator. The dApp receives public
24406
+ * keys and signatures only.
24405
24407
  *
24406
24408
  * `open` must run synchronously inside the user's click handler: browsers
24407
24409
  * refuse a popup opened after an await. Call `connect` right after `open`
@@ -24441,15 +24443,16 @@ type RemotePasskeyWalletEntity = {
24441
24443
  publicKey: Bip32PublicKeyHex;
24442
24444
  };
24443
24445
  /**
24444
- * Builds the Cardano wallet entity of the account the hosted signer holds,
24445
- * from the account public key the user agrees to share there. It fails
24446
+ * Builds a Cardano wallet entity from the public account key the user agrees
24447
+ * to share through the hosted self-custodial passkey wallet. It fails
24446
24448
  * closed with {@link PasskeyWalletMismatchError} when that key differs from
24447
24449
  * `expectedPublicKey`.
24448
24450
  *
24449
24451
  * The entity is a {@link WalletType.LazyInMemory} wallet built from the
24450
24452
  * public account key alone:
24451
24453
  * no mnemonic, PRF output or encrypted root ever reaches the dApp, so there
24452
- * is nothing secret to persist. The wallet id is derived from that key.
24454
+ * is nothing secret to persist. Wallet keys stay in the signer's window in
24455
+ * the user's browser. The wallet id is derived from the public key.
24453
24456
  *
24454
24457
  * Mainnet and testnet accounts are returned; consumers choose which to expose.
24455
24458
  *
package/dist/cardano.js CHANGED
@@ -8,7 +8,7 @@ import "./browser-D5jRKv_L.js";
8
8
  import { t as Cardano_exports } from "./Cardano-B-gyqBBD.js";
9
9
  import "./InMemoryKeyAgent-D8T3vtXy.js";
10
10
  import "./src-CgINPlSx.js";
11
- import { M as WalletId, S as WalletType, a as createInMemoryWalletEntity, c as createLaceWallet } from "./sdk-BneJm7ey.js";
11
+ import { M as WalletId, S as WalletType, a as createInMemoryWalletEntity, c as createLaceWallet } from "./sdk-Cf__6dDe.js";
12
12
  import "./secret-box-CSmRp6Tt.js";
13
13
  import "./util-DHxtzUzY.js";
14
14
  import { n as HexBytes } from "./bytes.vo-CziaOsba.js";
@@ -18,6 +18,6 @@ import { c as RemoteSignerError, l as SignerClosedError, t as createPasskeyKeySo
18
18
  import { t as FEATURE_FLAG_NETWORK_TYPE } from "./const-xGSNCtwQ.js";
19
19
  import { t as AccountId } from "./account-id.vo-KDTWJ-W5.js";
20
20
  import { n as FEATURE_FLAG_CARDANO } from "./const-DbuUHSzR.js";
21
- import { r as LazyWalletMismatchError } from "./contract-BsIGhsYa.js";
22
- import { _ as PasskeyWalletMismatchError, a as submitCardanoTx, c as waitForNetworkInfo, d as createRemotePasskeySigner, f as createRemoteCardanoVaultModule, g as createPasskeyWalletEntity, h as createSignerClient, i as createSteelSwapProvider, l as createRemotePasskeyWalletEntity, m as RemoteSignerResultError, o as signCardanoTx, p as CardanoRemoteSignerFactory, s as createTxBuilder, t as modules_cardano_exports, v as createPasskeyVaultModule, y as createLazyInMemoryVaultModule } from "./modules-cardano-BiL9hoM3.js";
21
+ import { r as LazyWalletMismatchError } from "./contract-DjQqqZLo.js";
22
+ import { _ as PasskeyWalletMismatchError, a as submitCardanoTx, c as waitForNetworkInfo, d as createRemotePasskeySigner, f as createRemoteCardanoVaultModule, g as createPasskeyWalletEntity, h as createSignerClient, i as createSteelSwapProvider, l as createRemotePasskeyWalletEntity, m as RemoteSignerResultError, o as signCardanoTx, p as CardanoRemoteSignerFactory, s as createTxBuilder, t as modules_cardano_exports, v as createPasskeyVaultModule, y as createLazyInMemoryVaultModule } from "./modules-cardano-4IgYsKeN.js";
23
23
  export { AccountId, Cardano_exports as Cardano, CardanoRemoteSignerFactory, FEATURE_FLAG_CARDANO, FEATURE_FLAG_NETWORK_TYPE, HexBlob, HexBytes, LazyWalletMismatchError, Milliseconds, PasskeyWalletMismatchError, RemoteSignerError, RemoteSignerResultError, Serialization_exports as Serialization, SignerClosedError, SignerPopupBlockedError, WalletId, WalletType, createInMemoryWalletEntity, createLaceWallet, createLazyInMemoryVaultModule, createPasskeyKeySource, createPasskeyVaultModule, createPasskeyWalletEntity, createRemoteCardanoVaultModule, createRemotePasskeySigner, createRemotePasskeyWalletEntity, createSignerClient, createSteelSwapProvider, createTxBuilder, modules_cardano_exports as m, signCardanoTx, submitCardanoTx, waitForNetworkInfo };
@@ -1,4 +1,4 @@
1
- const require_sdk = require("./sdk-1SRu8Ype.cjs");
1
+ const require_sdk = require("./sdk-Bm9-P0L-.cjs");
2
2
  const require_store = require("./store-C7AneHEY.cjs");
3
3
  const require_reselect = require("./reselect-kP4DaAII.cjs");
4
4
  const require_slice = require("./slice-Bf4enJKZ.cjs");
@@ -1,4 +1,4 @@
1
- import { A as ContractName, D as storageDependencyContract, O as combineStore, _ as walletActiveStateDependencyContract, k as createMixin, v as tokensStoreContract, w as networkStoreContract, y as syncStoreContract } from "./sdk-BneJm7ey.js";
1
+ import { A as ContractName, D as storageDependencyContract, O as combineStore, _ as walletActiveStateDependencyContract, k as createMixin, v as tokensStoreContract, w as networkStoreContract, y as syncStoreContract } from "./sdk-Cf__6dDe.js";
2
2
  import { a as inferStoreContext, n as combineContracts, r as inferContractContext } from "./store-AUlTfcI_.js";
3
3
  import { t as createSelector } from "./reselect-JIgawvPe.js";
4
4
  import { r as tokensSelectors } from "./slice-ByNWnxKS.js";
@@ -1,3 +1,3 @@
1
1
  import "./_polyfill-buffer-patch-JcrfT1gU.js";
2
- import { i as resolveLiveReaders, n as derivesEntry, r as deviceEntryOf, t as assertJoiningDevice } from "./device-readers-b4g2j3QL.js";
2
+ import { i as resolveLiveReaders, n as derivesEntry, r as deviceEntryOf, t as assertJoiningDevice } from "./device-readers-CVqmvmLZ.js";
3
3
  export { assertJoiningDevice, derivesEntry, deviceEntryOf, resolveLiveReaders };
@@ -1,6 +1,7 @@
1
1
  import { n as HexBytes, t as ByteArray } from "./bytes.vo-CziaOsba.js";
2
+ import { H as isSealableX25519Key } from "./grant-rules-rG1kJq6l.js";
2
3
  import { f as DeviceReaderInvalidError } from "./errors-pkQdxW-7.js";
3
- import { t as decodeDevicePublicKey, y as isSealableX25519Key } from "./envelopes-B3QCzo5p.js";
4
+ import { t as decodeDevicePublicKey } from "./envelopes-CfWTR2uy.js";
4
5
  import { a as pureCircuits } from "./acc-module-ur8CkBd1.js";
5
6
  //#region ../../packages/module/passport-account/src/acc/device-readers.ts
6
7
  /**
@@ -1,6 +1,6 @@
1
1
  require("./chunk-9hOWP6kD.cjs");
2
2
  require("./_polyfill-buffer-patch-BycQkEkK.cjs");
3
- const require_device_readers = require("./device-readers-Dw7uTNM5.cjs");
3
+ const require_device_readers = require("./device-readers-XMZMfFvZ.cjs");
4
4
  exports.assertJoiningDevice = require_device_readers.assertJoiningDevice;
5
5
  exports.derivesEntry = require_device_readers.derivesEntry;
6
6
  exports.deviceEntryOf = require_device_readers.deviceEntryOf;
@@ -1,6 +1,7 @@
1
1
  const require_bytes_vo = require("./bytes.vo-hecRu3YZ.cjs");
2
+ const require_grant_rules = require("./grant-rules-fYt80KB1.cjs");
2
3
  const require_errors = require("./errors-BA3b8aVu.cjs");
3
- const require_envelopes = require("./envelopes-BdE1xlgz.cjs");
4
+ const require_envelopes = require("./envelopes-BmL7onAK.cjs");
4
5
  const require_acc_module = require("./acc-module-NL_8mEHH.cjs");
5
6
  //#region ../../packages/module/passport-account/src/acc/device-readers.ts
6
7
  /**
@@ -47,7 +48,7 @@ const derivesEntry = (scope, devicePublicKey, entryHex) => {
47
48
  * commitment.
48
49
  */
49
50
  const assertJoiningDevice = (scope, reader, commitmentHex) => {
50
- if (!require_envelopes.isSealableX25519Key(reader.readerPublicKey) || deviceEntryOf(scope, reader.devicePublicKey, 0n) !== commitmentHex.toLowerCase()) throw new require_errors.DeviceReaderInvalidError();
51
+ if (!require_grant_rules.isSealableX25519Key(reader.readerPublicKey) || deviceEntryOf(scope, reader.devicePublicKey, 0n) !== commitmentHex.toLowerCase()) throw new require_errors.DeviceReaderInvalidError();
51
52
  };
52
53
  /**
53
54
  * The live entry of each device key that derives one, by key. Every key