kalvora.js 0.0.1-alpha.3 → 0.0.2-alpha.0

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 (138) hide show
  1. package/CHANGELOG.md +40 -1
  2. package/README.md +57 -12
  3. package/dist/README.md +57 -12
  4. package/dist/index.cjs +33844 -32846
  5. package/dist/index.cjs.map +4 -4
  6. package/dist/index.d.ts +10 -9
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +10 -9
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +10 -9
  11. package/dist/native.d.ts +25 -0
  12. package/dist/native.d.ts.map +1 -0
  13. package/dist/native.js +24 -0
  14. package/dist/native.js.map +1 -0
  15. package/dist/proto/generated/txn_pb.d.ts +8 -0
  16. package/dist/proto/generated/txn_pb.js +1 -1
  17. package/dist/proto/txn.proto +3 -0
  18. package/dist/src/allowance/transaction.d.ts.map +1 -1
  19. package/dist/src/allowance/transaction.js +4 -7
  20. package/dist/src/allowance/transaction.js.map +1 -1
  21. package/dist/src/client/networks.d.ts +1 -1
  22. package/dist/src/client/networks.d.ts.map +1 -1
  23. package/dist/src/client/networks.js +2 -2
  24. package/dist/src/client/networks.js.map +1 -1
  25. package/dist/src/coin-txn/multisig.d.ts +50 -0
  26. package/dist/src/coin-txn/multisig.d.ts.map +1 -0
  27. package/dist/src/coin-txn/multisig.js +194 -0
  28. package/dist/src/coin-txn/multisig.js.map +1 -0
  29. package/dist/src/coin-txn/transaction.d.ts +2 -1
  30. package/dist/src/coin-txn/transaction.d.ts.map +1 -1
  31. package/dist/src/coin-txn/transaction.js +50 -33
  32. package/dist/src/coin-txn/transaction.js.map +1 -1
  33. package/dist/src/contract/create/transaction.d.ts.map +1 -1
  34. package/dist/src/contract/create/transaction.js +2 -1
  35. package/dist/src/contract/create/transaction.js.map +1 -1
  36. package/dist/src/contract/shared/types.d.ts +3 -2
  37. package/dist/src/contract/shared/types.d.ts.map +1 -1
  38. package/dist/src/contract/update/transaction.d.ts.map +1 -1
  39. package/dist/src/contract/update/transaction.js +2 -1
  40. package/dist/src/contract/update/transaction.js.map +1 -1
  41. package/dist/src/grpc/transaction/transaction-client.d.ts.map +1 -1
  42. package/dist/src/grpc/transaction/transaction-client.js +2 -0
  43. package/dist/src/grpc/transaction/transaction-client.js.map +1 -1
  44. package/dist/src/items/transaction.d.ts +2 -3
  45. package/dist/src/items/transaction.d.ts.map +1 -1
  46. package/dist/src/items/transaction.js +2 -3
  47. package/dist/src/items/transaction.js.map +1 -1
  48. package/dist/src/proposal/governance.d.ts.map +1 -1
  49. package/dist/src/proposal/governance.js +9 -31
  50. package/dist/src/proposal/governance.js.map +1 -1
  51. package/dist/src/proposal/transaction.d.ts +2 -2
  52. package/dist/src/proposal/transaction.d.ts.map +1 -1
  53. package/dist/src/proposal/transaction.js +5 -4
  54. package/dist/src/proposal/transaction.js.map +1 -1
  55. package/dist/src/proposal-cancel/transaction.d.ts +2 -2
  56. package/dist/src/proposal-cancel/transaction.d.ts.map +1 -1
  57. package/dist/src/proposal-cancel/transaction.js +2 -1
  58. package/dist/src/proposal-cancel/transaction.js.map +1 -1
  59. package/dist/src/shared/fee-calculators/universal-fee-calculator.d.ts +2 -2
  60. package/dist/src/shared/fee-calculators/universal-fee-calculator.d.ts.map +1 -1
  61. package/dist/src/shared/fee-calculators/universal-fee-calculator.js +2 -1
  62. package/dist/src/shared/fee-calculators/universal-fee-calculator.js.map +1 -1
  63. package/dist/src/shared/tx/admission.d.ts +13 -0
  64. package/dist/src/shared/tx/admission.d.ts.map +1 -0
  65. package/dist/src/shared/tx/admission.js +95 -0
  66. package/dist/src/shared/tx/admission.js.map +1 -0
  67. package/dist/src/shared/tx/base.d.ts +2 -2
  68. package/dist/src/shared/tx/base.d.ts.map +1 -1
  69. package/dist/src/shared/tx/base.js +4 -16
  70. package/dist/src/shared/tx/base.js.map +1 -1
  71. package/dist/src/shared/tx/expiry.d.ts +36 -0
  72. package/dist/src/shared/tx/expiry.d.ts.map +1 -0
  73. package/dist/src/shared/tx/expiry.js +79 -0
  74. package/dist/src/shared/tx/expiry.js.map +1 -0
  75. package/dist/src/shared/tx/standard.d.ts +2 -3
  76. package/dist/src/shared/tx/standard.d.ts.map +1 -1
  77. package/dist/src/shared/tx/standard.js +2 -1
  78. package/dist/src/shared/tx/standard.js.map +1 -1
  79. package/dist/src/shared/utils/amount-utils.d.ts +1 -1
  80. package/dist/src/shared/utils/amount-utils.d.ts.map +1 -1
  81. package/dist/src/shared/utils/amount-utils.js +1 -1
  82. package/dist/src/shared/utils/amount-utils.js.map +1 -1
  83. package/dist/src/sign/context.d.ts +4 -0
  84. package/dist/src/sign/context.d.ts.map +1 -1
  85. package/dist/src/sign/context.js +15 -0
  86. package/dist/src/sign/context.js.map +1 -1
  87. package/dist/src/sign/draft.d.ts +56 -0
  88. package/dist/src/sign/draft.d.ts.map +1 -0
  89. package/dist/src/sign/draft.js +206 -0
  90. package/dist/src/sign/draft.js.map +1 -0
  91. package/dist/src/sign/finalize.d.ts +4 -1
  92. package/dist/src/sign/finalize.d.ts.map +1 -1
  93. package/dist/src/sign/finalize.js +89 -27
  94. package/dist/src/sign/finalize.js.map +1 -1
  95. package/dist/src/sign/index.d.ts +1 -0
  96. package/dist/src/sign/index.d.ts.map +1 -1
  97. package/dist/src/sign/index.js +1 -0
  98. package/dist/src/sign/index.js.map +1 -1
  99. package/dist/src/sign/resources.d.ts +3 -1
  100. package/dist/src/sign/resources.d.ts.map +1 -1
  101. package/dist/src/sign/resources.js +21 -10
  102. package/dist/src/sign/resources.js.map +1 -1
  103. package/dist/src/smart-contracts/shared/base.d.ts +1 -1
  104. package/dist/src/smart-contracts/shared/base.d.ts.map +1 -1
  105. package/dist/src/smart-contracts/shared/base.js +2 -1
  106. package/dist/src/smart-contracts/shared/base.js.map +1 -1
  107. package/dist/src/validator-ops/transaction.d.ts.map +1 -1
  108. package/dist/src/validator-ops/transaction.js +4 -0
  109. package/dist/src/validator-ops/transaction.js.map +1 -1
  110. package/dist/src/version.d.ts +3 -0
  111. package/dist/src/version.d.ts.map +1 -0
  112. package/dist/src/version.js +3 -0
  113. package/dist/src/version.js.map +1 -0
  114. package/dist/src/vote/transaction.d.ts +2 -3
  115. package/dist/src/vote/transaction.d.ts.map +1 -1
  116. package/dist/src/vote/transaction.js +2 -3
  117. package/dist/src/vote/transaction.js.map +1 -1
  118. package/dist/src/wallet-creation/falcon.d.ts +35 -13
  119. package/dist/src/wallet-creation/falcon.d.ts.map +1 -1
  120. package/dist/src/wallet-creation/falcon.js +69 -37
  121. package/dist/src/wallet-creation/falcon.js.map +1 -1
  122. package/dist/src/wallet-registration/class-policy.d.ts +17 -0
  123. package/dist/src/wallet-registration/class-policy.d.ts.map +1 -0
  124. package/dist/src/wallet-registration/class-policy.js +93 -0
  125. package/dist/src/wallet-registration/class-policy.js.map +1 -0
  126. package/dist/src/wallet-registration/index.d.ts +2 -1
  127. package/dist/src/wallet-registration/index.d.ts.map +1 -1
  128. package/dist/src/wallet-registration/index.js +7 -1
  129. package/dist/src/wallet-registration/index.js.map +1 -1
  130. package/dist/src/wallet-registration/multisig.d.ts +47 -0
  131. package/dist/src/wallet-registration/multisig.d.ts.map +1 -0
  132. package/dist/src/wallet-registration/multisig.js +154 -0
  133. package/dist/src/wallet-registration/multisig.js.map +1 -0
  134. package/dist/src/wallet-registration/policy.d.ts +3 -0
  135. package/dist/src/wallet-registration/policy.d.ts.map +1 -1
  136. package/dist/src/wallet-registration/policy.js +16 -11
  137. package/dist/src/wallet-registration/policy.js.map +1 -1
  138. package/package.json +21 -5
package/CHANGELOG.md CHANGED
@@ -5,7 +5,46 @@ All notable changes to this project are documented here. The format follows
5
5
  [Semantic Versioning](https://semver.org/). While the version is `0.0.x`, any
6
6
  release may change APIs; pin an exact version.
7
7
 
8
- ## [Unreleased]
8
+ ## [0.0.2-alpha.0] — prerelease
9
+
10
+ ### Added
11
+
12
+ - Import `kalvora.js/native` for native Kalvora queries, governance builders
13
+ and wallet operations through ESM without installing the Solana bridge.
14
+ The native and root entry points export the same SDK `VERSION`.
15
+ - Pinned Git installs generate the protobuf bindings and build the SDK during
16
+ `prepare`. The npm tarball contains the compiled entry points.
17
+
18
+ ### Changed
19
+
20
+ - **Breaking installation change for root ESM consumers.** Install
21
+ `@solana/web3.js@^1.98.4` and `@solana/spl-token@^0.4.14` alongside
22
+ `kalvora.js`. Both packages are optional peers. Native and wallet ESM
23
+ consumers can omit them. If either peer is already installed, its version
24
+ must satisfy the declared range.
25
+ - Text proposals preserve leading and trailing whitespace in the Markdown
26
+ body through signing and serialization.
27
+
28
+ ## [0.0.1-alpha.4] — npm prerelease
29
+
30
+ This npm package includes the SDK changes since npm `0.0.1-alpha.3`. Earlier
31
+ GitHub prereleases used version numbers `alpha.4` through `alpha.9`. The
32
+ [original GitHub alpha.4 archive](https://github.com/IntoTheDerk/kalvora.js/releases/tag/v0.0.1-alpha.4)
33
+ contains the first shared-wallet implementation. After publication, install
34
+ this build with `npm install --save-exact kalvora.js@0.0.1-alpha.4`.
35
+
36
+ ### Added
37
+
38
+ - Create, import and register shared Falcon wallets with M-of-N thresholds, signer classes and alternative signing rules. Members can approve the same registration on independent devices. [Shared wallet creation](./src/wallet-creation/README.md#shared-wallets)
39
+ - Quote and send native KAL from a registered shared wallet. Each member reviews the same payment and signs in its permanent policy slot. [Shared wallet payments](./src/coin-txn/README.md#shared-wallet-payments)
40
+ - Generate and restore chain-independent keys offline with `FalconKey`. Version 1 wallet backups and version 2 key backups restore the same key. Supply the selected network’s trusted transaction context when signing. [Wallet creation](./src/wallet-creation/README.md)
41
+ - Set an optional signed deadline on eligible multisig transactions for validator versions `200044` and `200045`. Save a prepared transaction, resume it on another device and verify detached Falcon proofs. Supported transactions can add a sponsor after owner approval. Omitting the deadline preserves the existing signing bytes and ten-minute window. [V47 dev-client guide](docs/guides/v47-multisig-expiry.md)
42
+ - Build and sign a proposal containing a Coin payment with both governance and wallet inputs. Submission checks the proposal and child deadlines at nanosecond precision. First inclusion at the deadline is valid. [Governance and eligibility](docs/guides/v47-multisig-expiry.md#which-transactions-qualify)
43
+
44
+ ### Fixed
45
+
46
+ - Shared transfer fee quotes use the caller’s current transaction context and check the registered policy, identities, nonce, fees and balance.
47
+ - Coin quotes calculate recipient initialization fees for the transferred instrument. A transfer to an existing balance row, including a zero balance, incurs only the ordinary fee.
9
48
 
10
49
  ## [0.0.1-alpha.3] — prerelease
11
50
 
package/README.md CHANGED
@@ -56,28 +56,50 @@ or any signer you write.
56
56
  ## Install
57
57
 
58
58
  ```bash
59
- npm install kalvora.js
59
+ npm install --save-exact kalvora.js@0.0.2-alpha.0
60
60
  ```
61
61
 
62
- Use Node.js 20.19 or later for the SDK toolchain. Falcon signing requires a cryptographically secure random source in the target runtime. The Solana
63
- bridge helpers use the optional dependencies `@solana/web3.js` and
64
- `@solana/spl-token`; everything else works without them.
62
+ Use Node.js 20.19 or later for the SDK toolchain. Falcon signing requires a
63
+ cryptographically secure random source in the target runtime. The full ESM
64
+ root eagerly loads the Solana bridge. Its bridge dependencies are optional peers
65
+ and are **not installed automatically**. Use `kalvora.js/native` for native
66
+ queries and governance operations, or `kalvora.js/wallet` for keys only. Neither
67
+ entry requires the Solana packages.
68
+
69
+ Optional peers still impose package-wide version constraints when present. This
70
+ also applies to consumers importing only `/native` or `/wallet`: existing
71
+ `@solana/web3.js` must satisfy `^1.98.4`, and existing `@solana/spl-token` must
72
+ satisfy `^0.4.14`. Incompatible pinned versions can cause npm `ERESOLVE` before
73
+ any SDK code runs. This installation constraint is intentional on the alpha
74
+ development line; consumers without Solana packages need not add them.
75
+
76
+ Before using the full root ESM API or the bridge examples, install the peers:
77
+
78
+ ```bash
79
+ npm install --save-exact kalvora.js@0.0.2-alpha.0 "@solana/web3.js@^1.98.4" "@solana/spl-token@^0.4.14"
80
+ ```
81
+
82
+ Existing root ESM consumers upgrading from automatic optional dependencies must
83
+ add these two dependencies explicitly. The CommonJS bundle still contains bridge
84
+ code; use the narrow ESM entries to avoid loading it.
65
85
 
66
86
  ## Quick start
67
87
 
68
- Obtain the network name, final block-zero hash and endpoints from the operator. Generate a Falcon wallet, protect its backup, and prefund its receiving address with enough native KALV to register.
88
+ Generate a Falcon key offline and protect its backup. For registration, obtain the current finalized block zero from your authenticated indexer and build the transaction with that context.
69
89
 
70
90
  ```typescript
71
- import { FalconWallet, KalvoraClient, pinNetwork, buildWalletRegistration, signAndFinalize } from 'kalvora.js';
91
+ import { FalconKey, KalvoraClient, deriveChainId, buildWalletRegistration, signAndFinalize } from 'kalvora.js';
72
92
 
73
- const network = pinNetwork('protonet', 'kal_proto', trustedFinalGenesisHash);
74
- const wallet = FalconWallet.generate({ networkName: 'kal_proto', genesisHash: trustedFinalGenesisHash });
93
+ const wallet = FalconKey.generate({ networkName: 'kal_proto' });
75
94
  await saveToProtectedStorage(wallet.exportBackup());
76
95
  console.log(wallet.walletAddress); // Receiving address for prefunding
77
96
 
78
- const client = new KalvoraClient({ network, grpc: { endpoint: trustedEndpoint, trustedOperatorAddress } });
97
+ // Supply your application's authenticated indexer transport.
98
+ const block = await readFinalizedBlockZeroFromIndexer();
99
+ const transactionContext = { chainId: deriveChainId('kal_proto', block.hash) };
100
+ const client = new KalvoraClient({ network: 'protonet', grpc: { endpoint: trustedEndpoint, trustedOperatorAddress, transactionContext } });
79
101
  const registration = await buildWalletRegistration(wallet, { grpcConfig: client.grpcConfig });
80
- await signAndFinalize(registration, wallet);
102
+ await signAndFinalize(registration, wallet, transactionContext);
81
103
  const receipt = await client.submitAndWait(registration, { verifyFinalizedBlock });
82
104
  if (!receipt.success) throw new Error(receipt.statusName);
83
105
  ```
@@ -90,10 +112,31 @@ See the [migration overview and remaining acceptance checks](./docs/protocol-mig
90
112
 
91
113
  ### Fresh-genesis wallets
92
114
 
93
- The wallet-only entry point exports `FalconWallet`, the two padded Falcon variants and all eleven hash choices. `FalconWallet.restore(backup)` restores the key with its selected address and network pin. BLAKE3-256 is the default. A different hash for the same key creates a separate address, balance and nonce.
115
+ The wallet-only entry point exports `FalconKey` for offline key generation and restoration, the two padded Falcon variants and all eleven hash choices. `FalconKey.restore(backup)` also reads version 1 backups from the chain-bound `FalconWallet` API. BLAKE3-256 is the default. A different hash for the same key creates a separate address, balance and nonce.
94
116
 
95
117
  Historical Ed25519 and Ed448 backups use the [older HD derivation scheme](./docs/guides/hd-derivation.md). Generate and register a fresh Falcon address for the new genesis. See [wallet creation and backup](./src/wallet-creation/README.md).
96
118
 
119
+ ### Native entry: `kalvora.js/native`
120
+
121
+ `kalvora.js/native` is ESM-only and exports the existing native client,
122
+ governance proposal/vote builders, proposal submission, stage-fee arithmetic,
123
+ serialization, address and contract validation, RPC errors, enums, and their
124
+ types and SDK `VERSION`. For transaction construction, pass the selected network’s current finalized block-zero hash from the authenticated indexer to `pinNetwork` and use `client.grpcConfig` for the builder.
125
+ It also exposes `UniversalFeeCalculator` for callers supplying explicit native
126
+ fee metadata.
127
+
128
+ ```typescript
129
+ import { KalvoraClient, pinNetwork, buildVoteTXN, serializeTransaction } from 'kalvora.js/native';
130
+ import type { GRPCConfig, ProposalConstructionContext } from 'kalvora.js/native';
131
+ ```
132
+
133
+ An ordinary consumer install supports this entry without Solana packages or
134
+ `--omit=optional`. Building the full SDK from source, including its Git `prepare`
135
+ step, installs the bridge packages as development dependencies for its build and
136
+ tests; they are not propagated to consumers. The root exports and CommonJS
137
+ bundle retain their bridge code. This packaging boundary does not remediate
138
+ advisories in bridge consumers or remove code from the full CommonJS bundle.
139
+
97
140
  ## Querying the network
98
141
 
99
142
  `KalvoraClient` bundles the query clients behind one endpoint configuration:
@@ -196,6 +239,7 @@ strings shared with wallet apps are exported as constants
196
239
  | [Getting started](./docs/guides/getting-started.md) | Wallets, connecting, sending, external signers, errors |
197
240
  | [HD derivation](./docs/guides/hd-derivation.md) | Exact key derivation for Ed25519 (SLIP-0010) and Ed448, reference vectors |
198
241
  | [Transactions](./docs/guides/transactions.md) | Every transaction type, required permissions, shared options |
242
+ | [V47 multisig deadlines](./docs/guides/v47-multisig-expiry.md) | Prepare a shared payment once, collect proofs across sessions and reconcile the signed result |
199
243
  | [Contract IDs](./docs/guides/contract-ids.md) | Checksummed Base58 ids, genesis ids, deriving an id while creating a contract |
200
244
  | [Querying](./docs/guides/querying.md) | Query clients, blocks, results, events, guardian payloads, raw access |
201
245
  | [Proposals](./src/proposal/README.md) | Text proposals and proposals that execute a coin transfer |
@@ -213,8 +257,9 @@ function carries TSDoc. Generate the API reference with `npm run docs`
213
257
  |---|---|---|
214
258
  | `kalvora.js` | The full SDK: client, queries, wallets, signing, every transaction builder, adapters, use cases, raw protobuf bindings (`proto`) | ESM, CommonJS, React Native, types |
215
259
  | `kalvora.js/wallet` | Offline Falcon keys, address selection, signing, backup and restore, plus historical Ed mnemonic and HD derivation tools | ESM, types |
260
+ | `kalvora.js/native` | Native client and governance operations, encoding, validation and fee calculation; no optional Solana bridge import | ESM, types |
216
261
 
217
- Every public API is exported from one of these two entry points; deep imports
262
+ Every public API is exported from one of these entry points; deep imports
218
263
  into `dist/` are not supported.
219
264
 
220
265
  ## Stability
package/dist/README.md CHANGED
@@ -56,28 +56,50 @@ or any signer you write.
56
56
  ## Install
57
57
 
58
58
  ```bash
59
- npm install kalvora.js
59
+ npm install --save-exact kalvora.js@0.0.2-alpha.0
60
60
  ```
61
61
 
62
- Use Node.js 20.19 or later for the SDK toolchain. Falcon signing requires a cryptographically secure random source in the target runtime. The Solana
63
- bridge helpers use the optional dependencies `@solana/web3.js` and
64
- `@solana/spl-token`; everything else works without them.
62
+ Use Node.js 20.19 or later for the SDK toolchain. Falcon signing requires a
63
+ cryptographically secure random source in the target runtime. The full ESM
64
+ root eagerly loads the Solana bridge. Its bridge dependencies are optional peers
65
+ and are **not installed automatically**. Use `kalvora.js/native` for native
66
+ queries and governance operations, or `kalvora.js/wallet` for keys only. Neither
67
+ entry requires the Solana packages.
68
+
69
+ Optional peers still impose package-wide version constraints when present. This
70
+ also applies to consumers importing only `/native` or `/wallet`: existing
71
+ `@solana/web3.js` must satisfy `^1.98.4`, and existing `@solana/spl-token` must
72
+ satisfy `^0.4.14`. Incompatible pinned versions can cause npm `ERESOLVE` before
73
+ any SDK code runs. This installation constraint is intentional on the alpha
74
+ development line; consumers without Solana packages need not add them.
75
+
76
+ Before using the full root ESM API or the bridge examples, install the peers:
77
+
78
+ ```bash
79
+ npm install --save-exact kalvora.js@0.0.2-alpha.0 "@solana/web3.js@^1.98.4" "@solana/spl-token@^0.4.14"
80
+ ```
81
+
82
+ Existing root ESM consumers upgrading from automatic optional dependencies must
83
+ add these two dependencies explicitly. The CommonJS bundle still contains bridge
84
+ code; use the narrow ESM entries to avoid loading it.
65
85
 
66
86
  ## Quick start
67
87
 
68
- Obtain the network name, final block-zero hash and endpoints from the operator. Generate a Falcon wallet, protect its backup, and prefund its receiving address with enough native KALV to register.
88
+ Generate a Falcon key offline and protect its backup. For registration, obtain the current finalized block zero from your authenticated indexer and build the transaction with that context.
69
89
 
70
90
  ```typescript
71
- import { FalconWallet, KalvoraClient, pinNetwork, buildWalletRegistration, signAndFinalize } from 'kalvora.js';
91
+ import { FalconKey, KalvoraClient, deriveChainId, buildWalletRegistration, signAndFinalize } from 'kalvora.js';
72
92
 
73
- const network = pinNetwork('protonet', 'kal_proto', trustedFinalGenesisHash);
74
- const wallet = FalconWallet.generate({ networkName: 'kal_proto', genesisHash: trustedFinalGenesisHash });
93
+ const wallet = FalconKey.generate({ networkName: 'kal_proto' });
75
94
  await saveToProtectedStorage(wallet.exportBackup());
76
95
  console.log(wallet.walletAddress); // Receiving address for prefunding
77
96
 
78
- const client = new KalvoraClient({ network, grpc: { endpoint: trustedEndpoint, trustedOperatorAddress } });
97
+ // Supply your application's authenticated indexer transport.
98
+ const block = await readFinalizedBlockZeroFromIndexer();
99
+ const transactionContext = { chainId: deriveChainId('kal_proto', block.hash) };
100
+ const client = new KalvoraClient({ network: 'protonet', grpc: { endpoint: trustedEndpoint, trustedOperatorAddress, transactionContext } });
79
101
  const registration = await buildWalletRegistration(wallet, { grpcConfig: client.grpcConfig });
80
- await signAndFinalize(registration, wallet);
102
+ await signAndFinalize(registration, wallet, transactionContext);
81
103
  const receipt = await client.submitAndWait(registration, { verifyFinalizedBlock });
82
104
  if (!receipt.success) throw new Error(receipt.statusName);
83
105
  ```
@@ -90,10 +112,31 @@ See the [migration overview and remaining acceptance checks](./docs/protocol-mig
90
112
 
91
113
  ### Fresh-genesis wallets
92
114
 
93
- The wallet-only entry point exports `FalconWallet`, the two padded Falcon variants and all eleven hash choices. `FalconWallet.restore(backup)` restores the key with its selected address and network pin. BLAKE3-256 is the default. A different hash for the same key creates a separate address, balance and nonce.
115
+ The wallet-only entry point exports `FalconKey` for offline key generation and restoration, the two padded Falcon variants and all eleven hash choices. `FalconKey.restore(backup)` also reads version 1 backups from the chain-bound `FalconWallet` API. BLAKE3-256 is the default. A different hash for the same key creates a separate address, balance and nonce.
94
116
 
95
117
  Historical Ed25519 and Ed448 backups use the [older HD derivation scheme](./docs/guides/hd-derivation.md). Generate and register a fresh Falcon address for the new genesis. See [wallet creation and backup](./src/wallet-creation/README.md).
96
118
 
119
+ ### Native entry: `kalvora.js/native`
120
+
121
+ `kalvora.js/native` is ESM-only and exports the existing native client,
122
+ governance proposal/vote builders, proposal submission, stage-fee arithmetic,
123
+ serialization, address and contract validation, RPC errors, enums, and their
124
+ types and SDK `VERSION`. For transaction construction, pass the selected network’s current finalized block-zero hash from the authenticated indexer to `pinNetwork` and use `client.grpcConfig` for the builder.
125
+ It also exposes `UniversalFeeCalculator` for callers supplying explicit native
126
+ fee metadata.
127
+
128
+ ```typescript
129
+ import { KalvoraClient, pinNetwork, buildVoteTXN, serializeTransaction } from 'kalvora.js/native';
130
+ import type { GRPCConfig, ProposalConstructionContext } from 'kalvora.js/native';
131
+ ```
132
+
133
+ An ordinary consumer install supports this entry without Solana packages or
134
+ `--omit=optional`. Building the full SDK from source, including its Git `prepare`
135
+ step, installs the bridge packages as development dependencies for its build and
136
+ tests; they are not propagated to consumers. The root exports and CommonJS
137
+ bundle retain their bridge code. This packaging boundary does not remediate
138
+ advisories in bridge consumers or remove code from the full CommonJS bundle.
139
+
97
140
  ## Querying the network
98
141
 
99
142
  `KalvoraClient` bundles the query clients behind one endpoint configuration:
@@ -196,6 +239,7 @@ strings shared with wallet apps are exported as constants
196
239
  | [Getting started](./docs/guides/getting-started.md) | Wallets, connecting, sending, external signers, errors |
197
240
  | [HD derivation](./docs/guides/hd-derivation.md) | Exact key derivation for Ed25519 (SLIP-0010) and Ed448, reference vectors |
198
241
  | [Transactions](./docs/guides/transactions.md) | Every transaction type, required permissions, shared options |
242
+ | [V47 multisig deadlines](./docs/guides/v47-multisig-expiry.md) | Prepare a shared payment once, collect proofs across sessions and reconcile the signed result |
199
243
  | [Contract IDs](./docs/guides/contract-ids.md) | Checksummed Base58 ids, genesis ids, deriving an id while creating a contract |
200
244
  | [Querying](./docs/guides/querying.md) | Query clients, blocks, results, events, guardian payloads, raw access |
201
245
  | [Proposals](./src/proposal/README.md) | Text proposals and proposals that execute a coin transfer |
@@ -213,8 +257,9 @@ function carries TSDoc. Generate the API reference with `npm run docs`
213
257
  |---|---|---|
214
258
  | `kalvora.js` | The full SDK: client, queries, wallets, signing, every transaction builder, adapters, use cases, raw protobuf bindings (`proto`) | ESM, CommonJS, React Native, types |
215
259
  | `kalvora.js/wallet` | Offline Falcon keys, address selection, signing, backup and restore, plus historical Ed mnemonic and HD derivation tools | ESM, types |
260
+ | `kalvora.js/native` | Native client and governance operations, encoding, validation and fee calculation; no optional Solana bridge import | ESM, types |
216
261
 
217
- Every public API is exported from one of these two entry points; deep imports
262
+ Every public API is exported from one of these entry points; deep imports
218
263
  into `dist/` are not supported.
219
264
 
220
265
  ## Stability