pshenmic-dpp 2.0.0-dev.2 → 2.0.0-dev.21

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 (207) hide show
  1. package/dist/binaries/bindingsTypes.d.ts +507 -37
  2. package/dist/binaries/bindingsTypes.js +4 -3
  3. package/dist/binaries/native/aarch64-apple-darwin/pshenmic_dpp.node +0 -0
  4. package/dist/binaries/native/x86_64-apple-darwin/pshenmic_dpp.node +0 -0
  5. package/dist/binaries/native/x86_64-unknown-linux-gnu/pshenmic_dpp.node +0 -0
  6. package/dist/binaries/native/x86_64-unknown-linux-musl/pshenmic_dpp.node +0 -0
  7. package/dist/binaries/node.cjs +50 -0
  8. package/dist/binaries/node.d.cts +2 -0
  9. package/dist/binaries/pshenmic_dpp.android.node/arm64-v8a/libpshenmic_dpp.so +0 -0
  10. package/dist/binaries/pshenmic_dpp.apple.node/Info.plist +29 -0
  11. package/dist/binaries/pshenmic_dpp.apple.node/ios-arm64-simulator/libpshenmic_dpp.framework/Info.plist +24 -0
  12. package/dist/binaries/pshenmic_dpp.apple.node/ios-arm64-simulator/libpshenmic_dpp.framework/libpshenmic_dpp +0 -0
  13. package/dist/binaries/pshenmic_dpp.apple.node/react-native-node-api-module +0 -0
  14. package/dist/binaries/pshenmic_dpp.d.ts +42 -1
  15. package/dist/binaries/pshenmic_dpp.js +1 -1
  16. package/dist/binaries/wasm/wasmBytes.cjs +3 -0
  17. package/dist/binaries/wasm/wasmBytes.d.cts +1 -0
  18. package/dist/binaries/wasm.d.ts +42 -1
  19. package/dist/binaries/wasm.js +2 -44
  20. package/dist/binaries/wasmCreation.cjs +46 -0
  21. package/dist/binaries/wasmCreation.d.cts +2 -0
  22. package/dist/src/dpp/dpp.d.ts +28 -2
  23. package/dist/src/dpp/dpp.js +28 -2
  24. package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.d.ts +1 -1
  25. package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.js +2 -2
  26. package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.d.ts +1 -1
  27. package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.js +3 -3
  28. package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.d.ts +1 -1
  29. package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.js +3 -3
  30. package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.d.ts +1 -1
  31. package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.js +2 -2
  32. package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.js +1 -1
  33. package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.d.ts +1 -1
  34. package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.js +2 -2
  35. package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.d.ts +4 -3
  36. package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.js +5 -4
  37. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.d.ts +4 -3
  38. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.js +5 -4
  39. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.d.ts +4 -3
  40. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.js +5 -4
  41. package/dist/src/dpp/structs/AssetLockProof/AssetLockProof.js +1 -1
  42. package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.js +2 -2
  43. package/dist/src/dpp/structs/AssetLockProof/InstantAssetLockProof.js +1 -1
  44. package/dist/src/dpp/structs/AssetLockProof/OutPoint.js +1 -1
  45. package/dist/src/dpp/structs/AssetLockProof/Transaction.js +1 -1
  46. package/dist/src/dpp/structs/AssetLockProof/TxIn.js +1 -1
  47. package/dist/src/dpp/structs/AssetLockProof/TxOut.js +1 -1
  48. package/dist/src/dpp/structs/AssetLockProof/Witness.js +1 -1
  49. package/dist/src/dpp/structs/Batch/BatchTransition.js +1 -1
  50. package/dist/src/dpp/structs/Batch/BatchedTransition.js +1 -1
  51. package/dist/src/dpp/structs/Batch/DocumentBaseTransition.js +1 -1
  52. package/dist/src/dpp/structs/Batch/DocumentTransition.d.ts +1 -0
  53. package/dist/src/dpp/structs/Batch/DocumentTransition.js +4 -1
  54. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.d.ts +1 -1
  55. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.js +2 -2
  56. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentDeleteTransition.js +1 -1
  57. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentPurchaseTransition.js +1 -1
  58. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.d.ts +1 -1
  59. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.js +2 -2
  60. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentTransferTransition.js +1 -1
  61. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentUpdatePriceTransition.js +1 -1
  62. package/dist/src/dpp/structs/Batch/PrefundedVotingBalance.js +1 -1
  63. package/dist/src/dpp/structs/Batch/TokenBaseTransition.js +1 -1
  64. package/dist/src/dpp/structs/Batch/TokenPaymentInfo.js +1 -1
  65. package/dist/src/dpp/structs/Batch/TokenPricingSchedule.js +1 -1
  66. package/dist/src/dpp/structs/Batch/TokenTransition.d.ts +1 -0
  67. package/dist/src/dpp/structs/Batch/TokenTransition.js +4 -1
  68. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenBurnTransition.js +1 -1
  69. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenClaimTransition.js +1 -1
  70. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenConfigUpdateTransition.js +1 -1
  71. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDestroyFrozenFundsTransition.js +1 -1
  72. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDirectPurchaseTransition.js +1 -1
  73. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenEmergencyActionTransition.js +1 -1
  74. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenFreezeTransition.js +1 -1
  75. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenMintTransition.js +1 -1
  76. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.js +1 -1
  77. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.d.ts +3 -0
  78. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.js +8 -1
  79. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenUnFreezeTransition.js +1 -1
  80. package/dist/src/dpp/structs/ContractBounds.js +1 -1
  81. package/dist/src/dpp/structs/CoreScript.js +1 -1
  82. package/dist/src/dpp/structs/DataContract.d.ts +6 -4
  83. package/dist/src/dpp/structs/DataContract.js +8 -2
  84. package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.js +1 -1
  85. package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.js +1 -1
  86. package/dist/src/dpp/structs/Document.d.ts +1 -1
  87. package/dist/src/dpp/structs/Document.js +1 -1
  88. package/dist/src/dpp/structs/EncryptedNote/PrivateEncryptedNote.js +1 -1
  89. package/dist/src/dpp/structs/EncryptedNote/SharedEncryptedNote.js +1 -1
  90. package/dist/src/dpp/structs/GroupStateTransitionInfo.js +1 -1
  91. package/dist/src/dpp/structs/Identifier.js +1 -1
  92. package/dist/src/dpp/structs/Identity.js +1 -1
  93. package/dist/src/dpp/structs/IdentityPublicKey.d.ts +1 -0
  94. package/dist/src/dpp/structs/IdentityPublicKey.js +6 -1
  95. package/dist/src/dpp/structs/IdentityPublicKeyInCreation.d.ts +1 -0
  96. package/dist/src/dpp/structs/IdentityPublicKeyInCreation.js +6 -1
  97. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.js +1 -1
  98. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.js +1 -1
  99. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.js +1 -1
  100. package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.js +1 -1
  101. package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.js +1 -1
  102. package/dist/src/dpp/structs/InstantLock.js +1 -1
  103. package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.d.ts +0 -2
  104. package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.js +1 -7
  105. package/dist/src/dpp/structs/MasternodeVote/Vote.js +1 -1
  106. package/dist/src/dpp/structs/MasternodeVote/VotePoll.d.ts +1 -1
  107. package/dist/src/dpp/structs/MasternodeVote/VotePoll.js +3 -3
  108. package/dist/src/dpp/structs/Orchard/CommitmentTree.d.ts +14 -0
  109. package/dist/src/dpp/structs/Orchard/CommitmentTree.js +31 -0
  110. package/dist/src/dpp/structs/Orchard/IdentityCreateFromShieldedPoolResult.d.ts +21 -0
  111. package/dist/src/dpp/structs/Orchard/IdentityCreateFromShieldedPoolResult.js +38 -0
  112. package/dist/src/dpp/structs/Orchard/MerklePath.d.ts +11 -0
  113. package/dist/src/dpp/structs/Orchard/MerklePath.js +25 -0
  114. package/dist/src/dpp/structs/Orchard/Note.d.ts +18 -0
  115. package/dist/src/dpp/structs/Orchard/Note.js +42 -0
  116. package/dist/src/dpp/structs/Orchard/OrchardAddress.d.ts +15 -0
  117. package/dist/src/dpp/structs/Orchard/OrchardAddress.js +31 -0
  118. package/dist/src/dpp/structs/Orchard/OrchardProver.d.ts +12 -0
  119. package/dist/src/dpp/structs/Orchard/OrchardProver.js +18 -0
  120. package/dist/src/dpp/structs/Orchard/RecoveredNote.d.ts +18 -0
  121. package/dist/src/dpp/structs/Orchard/RecoveredNote.js +29 -0
  122. package/dist/src/dpp/structs/Orchard/ShieldedBuilder.d.ts +40 -0
  123. package/dist/src/dpp/structs/Orchard/ShieldedBuilder.js +45 -0
  124. package/dist/src/dpp/structs/Orchard/ShieldedMemo.d.ts +11 -0
  125. package/dist/src/dpp/structs/Orchard/ShieldedMemo.js +25 -0
  126. package/dist/src/dpp/structs/Orchard/ShieldedWithdrawalResult.d.ts +11 -0
  127. package/dist/src/dpp/structs/Orchard/ShieldedWithdrawalResult.js +18 -0
  128. package/dist/src/dpp/structs/Orchard/SpendableNote.d.ts +13 -0
  129. package/dist/src/dpp/structs/Orchard/SpendableNote.js +27 -0
  130. package/dist/src/dpp/structs/PartialIdentity.js +1 -1
  131. package/dist/src/dpp/structs/{Address → PlatformAddress}/AddressWitness.d.ts +2 -2
  132. package/dist/src/dpp/structs/{Address → PlatformAddress}/AddressWitness.js +2 -2
  133. package/dist/src/dpp/structs/{Address → PlatformAddress}/PlatformAddress.d.ts +4 -2
  134. package/dist/src/dpp/structs/{Address → PlatformAddress}/PlatformAddress.js +9 -3
  135. package/dist/src/dpp/structs/PrivateKey.js +1 -1
  136. package/dist/src/dpp/structs/PublicKey.js +1 -1
  137. package/dist/src/dpp/structs/ShieldedTransitions/IdentityCreateFromShieldedPoolTransition.d.ts +31 -0
  138. package/dist/src/dpp/structs/ShieldedTransitions/IdentityCreateFromShieldedPoolTransition.js +73 -0
  139. package/dist/src/dpp/structs/ShieldedTransitions/SerializedAction.d.ts +19 -0
  140. package/dist/src/dpp/structs/ShieldedTransitions/SerializedAction.js +49 -0
  141. package/dist/src/dpp/structs/ShieldedTransitions/ShieldFromAssetLockTransition.d.ts +30 -0
  142. package/dist/src/dpp/structs/ShieldedTransitions/ShieldFromAssetLockTransition.js +77 -0
  143. package/dist/src/dpp/structs/ShieldedTransitions/ShieldTransition.d.ts +32 -0
  144. package/dist/src/dpp/structs/ShieldedTransitions/ShieldTransition.js +78 -0
  145. package/dist/src/dpp/structs/ShieldedTransitions/ShieldedTransferTransition.d.ts +21 -0
  146. package/dist/src/dpp/structs/ShieldedTransitions/ShieldedTransferTransition.js +51 -0
  147. package/dist/src/dpp/structs/ShieldedTransitions/ShieldedWithdrawalTransition.d.ts +29 -0
  148. package/dist/src/dpp/structs/ShieldedTransitions/ShieldedWithdrawalTransition.js +71 -0
  149. package/dist/src/dpp/structs/ShieldedTransitions/UnshieldTransition.d.ts +25 -0
  150. package/dist/src/dpp/structs/ShieldedTransitions/UnshieldTransition.js +59 -0
  151. package/dist/src/dpp/structs/StateTransition.d.ts +1 -0
  152. package/dist/src/dpp/structs/StateTransition.js +3 -0
  153. package/dist/src/dpp/structs/TokenConfiguration/ActionTaker.js +1 -1
  154. package/dist/src/dpp/structs/TokenConfiguration/ChangeControlRules.js +1 -1
  155. package/dist/src/dpp/structs/TokenConfiguration/Group.js +1 -1
  156. package/dist/src/dpp/structs/TokenConfiguration/TokenConfiguration.js +1 -1
  157. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationConvention.js +1 -1
  158. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationLocalization.js +1 -1
  159. package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRules.js +1 -1
  160. package/dist/src/dpp/structs/TokenConfiguration/TokenKeepsHistoryRules.js +1 -1
  161. package/dist/src/dpp/structs/TokenConfiguration/TokenMarketplaceRules.js +1 -1
  162. package/dist/src/dpp/structs/TokenConfiguration/TokenPerpetualDistribution.js +1 -1
  163. package/dist/src/dpp/structs/TokenConfiguration/TokenPreProgrammedDistribution.js +1 -1
  164. package/dist/src/dpp/types.d.ts +85 -11
  165. package/dist/src/dpp/utils.d.ts +4 -3
  166. package/dist/src/dpp/utils.js +24 -6
  167. package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.d.ts +1 -1
  168. package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.js +1 -1
  169. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressInfo.d.ts +2 -0
  170. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressInfo.js +12 -0
  171. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressesInfos.d.ts +2 -0
  172. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressesInfos.js +14 -0
  173. package/dist/src/dpp/verify/Shielded/verifyMostRecentShieldedAnchorProof.d.ts +2 -0
  174. package/dist/src/dpp/verify/Shielded/verifyMostRecentShieldedAnchorProof.js +9 -0
  175. package/dist/src/dpp/verify/Shielded/verifyShieldedAnchorsProof.d.ts +2 -0
  176. package/dist/src/dpp/verify/Shielded/verifyShieldedAnchorsProof.js +9 -0
  177. package/dist/src/dpp/verify/Shielded/verifyShieldedEncryptedNotesProof.d.ts +2 -0
  178. package/dist/src/dpp/verify/Shielded/verifyShieldedEncryptedNotesProof.js +15 -0
  179. package/dist/src/dpp/verify/Shielded/verifyShieldedNotesCountProof.d.ts +2 -0
  180. package/dist/src/dpp/verify/Shielded/verifyShieldedNotesCountProof.js +9 -0
  181. package/dist/src/dpp/verify/Shielded/verifyShieldedNullifiersProof.d.ts +2 -0
  182. package/dist/src/dpp/verify/Shielded/verifyShieldedNullifiersProof.js +12 -0
  183. package/dist/src/dpp/verify/Shielded/verifyShieldedPoolStateProof.d.ts +2 -0
  184. package/dist/src/dpp/verify/Shielded/verifyShieldedPoolStateProof.js +9 -0
  185. package/dist/src/dpp/verify/StateTransition/utils.js +80 -15
  186. package/dist/src/dpp/verify/System/verifyEpochsInfoProof.js +1 -1
  187. package/dist/src/dpp/verify/Tokens/verifyTokenBalancesForIdentitiesProof.js +1 -1
  188. package/dist/src/dpp/verify/Tokens/verifyTokensBalancesForIdentityProof.js +1 -1
  189. package/dist/src/native.d.ts +3 -0
  190. package/dist/src/native.js +8 -0
  191. package/dist/utils/{base122.js → base122.cjs} +3 -1
  192. package/package.json +18 -28
  193. package/tests/unit/DataContract.spec.ts +281 -0
  194. package/tests/unit/DynamicValue.spec.ts +42 -2
  195. package/tests/unit/Identifier.spec.ts +1 -1
  196. package/tests/unit/Identity.spec.ts +1 -1
  197. package/tests/unit/IdentityPublicKey.spec.ts +1 -1
  198. package/tests/unit/NodeApi.spec.ts +49 -0
  199. package/tests/unit/Shielded.spec.ts +344 -0
  200. package/tests/unit/ShieldedTransitions.spec.ts +709 -0
  201. package/tests/unit/TokenConfiguration.spec.ts +114 -0
  202. package/tests/unit/WebAssembly.spec.ts +49 -0
  203. package/tests/unit/utils/buildTokenConfiguration.ts +66 -0
  204. package/dist/binaries/pshenmic_dpp.android.node/x86_64/libpshenmic_dpp.so +0 -0
  205. package/dist/binaries/wasm/wasmBytes.d.ts +0 -2
  206. package/dist/binaries/wasm/wasmBytes.js +0 -2
  207. /package/dist/utils/{base122.d.ts → base122.d.cts} +0 -0
@@ -111,6 +111,12 @@ export declare class AssetLockProofNAPI {
111
111
  hex(): string;
112
112
  static fromHex(assetLockProof: string): AssetLockProofNAPI;
113
113
  }
114
+ export declare class AssetLockValueNAPI {
115
+ get initialCreditValue(): BigIntString;
116
+ get txOutScript(): Uint8Array;
117
+ get remainingCreditValue(): BigIntString;
118
+ get usedTags(): Array<Uint8Array>;
119
+ }
114
120
  export declare class AuthorizedActionTakersNAPI {
115
121
  static NoOne(): AuthorizedActionTakersNAPI;
116
122
  static ContractOwner(): AuthorizedActionTakersNAPI;
@@ -190,6 +196,54 @@ export declare class ChangeControlRulesNAPI {
190
196
  set selfChangingAdminActionTakersAllowed(selfChangingAdminActionTakersAllowed: boolean);
191
197
  canChangeAdminActionTakers(adminActionTakers: AuthorizedActionTakersNAPI, jsContractOwnerId: IdentifierLikeNAPI, mainGroup: number | undefined | null, jsGroups: Array<[number, GroupNAPI]>, actionTaker: ActionTakerNAPI, jsGoal: DynamicValue): boolean;
192
198
  }
199
+ /**
200
+ * Client-side Orchard note commitment tree.
201
+ *
202
+ * Rebuild the tree by appending every note commitment (`cmx`) in tree order,
203
+ * then produce a spend witness (`MerklePath`) for any leaf you marked. The
204
+ * witness + [`anchor`](Self::anchor) are what a shielded spend (withdrawal,
205
+ * unshield, transfer) needs to prove a note is in the tree.
206
+ *
207
+ * Typical flow:
208
+ * 1. `append(cmx, marked)` for each commitment (mark the ones you'll spend),
209
+ * 2. `checkpoint(id)` once all commitments up to your anchor are in,
210
+ * 3. `witness(position)` for the marked leaf and `anchor()` for the root —
211
+ * both taken from the same state so `merklePath.root(cmx) == anchor`.
212
+ */
213
+ export declare class CommitmentTreeNAPI {
214
+ /**
215
+ * Creates an empty tree. `max_checkpoints` bounds how many historical
216
+ * checkpoints are retained for witnessing (default 100).
217
+ */
218
+ constructor(maxCheckpoints?: number | undefined | null);
219
+ /**
220
+ * Appends a 32-byte note commitment (`cmx`). Set `marked` to `true` for
221
+ * commitments you intend to spend (only marked leaves can be witnessed).
222
+ */
223
+ append(jsCmx: Uint8Array, marked: boolean): void;
224
+ /**
225
+ * Records a checkpoint at the current state. Witnesses are produced
226
+ * relative to checkpoints, so checkpoint after appending the commitments
227
+ * up to the anchor you want to spend against.
228
+ */
229
+ checkpoint(checkpointId: number): boolean;
230
+ /**
231
+ * Position (leaf index) of the most recently appended commitment, or
232
+ * `null` if the tree is empty.
233
+ */
234
+ maxLeafPosition(): number | null;
235
+ /**
236
+ * Produces the Merkle witness for the marked leaf at `position`.
237
+ * `checkpoint_depth` is 0 for the current state, 1 for the previous
238
+ * checkpoint, etc. Returns `null` if no witness is available.
239
+ */
240
+ witness(position: number, checkpointDepth?: number | undefined | null): MerklePathNAPI | null;
241
+ /**
242
+ * The current tree root as a 32-byte Orchard `Anchor` (the empty-tree
243
+ * anchor if nothing has been appended).
244
+ */
245
+ anchor(): Uint8Array;
246
+ }
193
247
  export declare class ConsensusErrorNAPI {
194
248
  static deserialize(error: Uint8Array): ConsensusErrorNAPI;
195
249
  get message(): string;
@@ -451,6 +505,7 @@ export declare class DynamicValue {
451
505
  get value(): any;
452
506
  set value(value: any);
453
507
  isBigInt(): boolean;
508
+ getType(): string;
454
509
  }
455
510
  export declare class EpochBasedDistributionNAPI {
456
511
  interval: number;
@@ -516,6 +571,41 @@ export declare class IdentityCreateFromAddressesTransitionNAPI {
516
571
  static fromStateTransition(st: StateTransitionNAPI): IdentityCreateFromAddressesTransitionNAPI;
517
572
  toStateTransition(): StateTransitionNAPI;
518
573
  }
574
+ /**
575
+ * Result of [`ShieldedBuilderNAPI::identity_create_from_shielded_pool`]: the new
576
+ * identity's keys (with proof-of-possession signatures), the proven Orchard
577
+ * bundle fields, the derived identity id, and the client-predicted fee.
578
+ */
579
+ export declare class IdentityCreateFromShieldedPoolResultNAPI {
580
+ get publicKeys(): Array<IdentityPublicKeyInCreationNAPI>;
581
+ get identityId(): IdentifierNAPI;
582
+ get predictedFee(): BigIntString;
583
+ get actions(): Array<SerializedActionNAPI>;
584
+ get anchor(): Uint8Array;
585
+ get proof(): Uint8Array;
586
+ get bindingsSignature(): Uint8Array;
587
+ }
588
+ export declare class IdentityCreateFromShieldedPoolTransitionNAPI {
589
+ constructor(jsPublicKeys: Array<IdentityPublicKeyInCreationNAPI>, jsDenomination: BigIntString, jsActions: Array<SerializedActionNAPI>, jsAnchor: Uint8Array, jsProof: Uint8Array, jsBindingsSignature: Uint8Array, jsSendToAddressOnCreationFailure: PlatformAddressLikeNAPI, jsIdentityId: IdentifierLikeNAPI);
590
+ get publicKeys(): Array<IdentityPublicKeyInCreationNAPI>;
591
+ get denomination(): BigIntString;
592
+ get actions(): Array<SerializedActionNAPI>;
593
+ get anchor(): Uint8Array;
594
+ get proof(): Uint8Array;
595
+ get bindingsSignature(): Uint8Array;
596
+ get sendToAddressOnCreationFailure(): PlatformAddressNAPI;
597
+ get identityId(): IdentifierNAPI;
598
+ set publicKeys(jsPublicKeys: Array<IdentityPublicKeyInCreationNAPI>);
599
+ set denomination(denomination: BigIntString);
600
+ set actions(actions: Array<SerializedActionNAPI>);
601
+ set anchor(jsAnchor: Uint8Array);
602
+ set proof(proof: Uint8Array);
603
+ set bindingsSignature(jsBindingsSignature: Uint8Array);
604
+ set sendToAddressOnCreationFailure(jsAddress: PlatformAddressLikeNAPI);
605
+ set identityId(jsId: IdentifierLikeNAPI);
606
+ toStateTransition(): StateTransitionNAPI;
607
+ static fromStateTransition(st: StateTransitionNAPI): IdentityCreateFromShieldedPoolTransitionNAPI;
608
+ }
519
609
  export declare class IdentityCreateTransitionNAPI {
520
610
  constructor(jsPublicKeys: Array<IdentityPublicKeyInCreationNAPI>, assetLock: AssetLockProofNAPI, signature?: Uint8Array | undefined | null, userFeeIncrease?: number | undefined | null);
521
611
  static default(jsPlatformVersion: DynamicValue): IdentityCreateTransitionNAPI;
@@ -698,6 +788,10 @@ export declare class IdentityTokenBalanceNAPI {
698
788
  get id(): IdentifierNAPI;
699
789
  }
700
790
  export type VerifiedIdentityBalanceNAPI = IdentityTokenBalanceNAPI;
791
+ export declare class IdentityTokenBalanceOptionalNAPI {
792
+ balance?: BigIntString;
793
+ get id(): IdentifierNAPI;
794
+ }
701
795
  export declare class IdentityTokenInfoNAPI {
702
796
  get frozen(): boolean;
703
797
  set frozen(frozen: boolean);
@@ -777,11 +871,11 @@ export declare class IdentityUpdateTransitionNAPI {
777
871
  static fromStateTransition(st: StateTransitionNAPI): IdentityUpdateTransitionNAPI;
778
872
  }
779
873
  export declare class InputAddressNAPI {
780
- constructor(address: PlatformAddressNAPI, nonce: number, credits: BigIntString);
874
+ constructor(address: PlatformAddressLikeNAPI, nonce: number, credits: BigIntString);
781
875
  get address(): PlatformAddressNAPI;
782
876
  get nonce(): number;
783
877
  get credits(): BigIntString;
784
- set address(address: PlatformAddressNAPI);
878
+ set address(address: PlatformAddressLikeNAPI);
785
879
  set nonce(nonce: number);
786
880
  set credits(credits: BigIntString);
787
881
  }
@@ -831,14 +925,59 @@ export declare class MasternodeVoteTransitionNAPI {
831
925
  hex(): string;
832
926
  base64(): string;
833
927
  static fromBytes(jsBytes: Uint8Array): MasternodeVoteTransitionNAPI;
834
- get userFeeIncrease(): number;
835
928
  getSignableBytes(): Uint8Array;
836
929
  get assetLock(): AssetLockProofNAPI | null;
837
- set userFeeIncrease(amount: number);
838
930
  get modifiedDataIds(): Array<IdentifierNAPI>;
839
931
  toStateTransition(): StateTransitionNAPI;
840
932
  static fromStateTransition(st: StateTransitionNAPI): MasternodeVoteTransitionNAPI;
841
933
  }
934
+ /**
935
+ * The Merkle path from a note commitment leaf to the tree anchor: the leaf
936
+ * `position` plus the `NOTE_COMMITMENT_TREE_DEPTH` sibling hashes.
937
+ */
938
+ export declare class MerklePathNAPI {
939
+ constructor(jsPosition: number, jsAuthPath: Array<Uint8Array>);
940
+ get position(): number;
941
+ get authPath(): Array<Uint8Array>;
942
+ set position(jsPosition: number);
943
+ set authPath(jsAuthPath: Array<Uint8Array>);
944
+ }
945
+ /**
946
+ * A shielded Orchard note: the funds received by an address, defined by its
947
+ * owner address, value, `rho`, and `rseed`.
948
+ */
949
+ export declare class NoteNAPI {
950
+ constructor(jsAddress: OrchardAddressNAPI, jsValue: BigIntString, jsRho: Uint8Array, jsRseed: Uint8Array);
951
+ get address(): OrchardAddressNAPI;
952
+ get value(): BigIntString;
953
+ get rho(): Uint8Array;
954
+ get rseed(): Uint8Array;
955
+ /**
956
+ * The extracted note commitment (`cmx`, 32 bytes) — the leaf this note
957
+ * occupies in the note commitment tree. Append this to a
958
+ * `CommitmentTreeNAPI` to later produce the note's spend witness.
959
+ */
960
+ get cmx(): Uint8Array;
961
+ set address(jsAddress: OrchardAddressNAPI);
962
+ set value(jsValue: BigIntString);
963
+ set rho(jsRho: Uint8Array);
964
+ set rseed(jsRseed: Uint8Array);
965
+ }
966
+ export declare class OrchardAddressNAPI {
967
+ static fromBech32m(bech32M: string): OrchardAddressNAPI;
968
+ static fromBytes(bytes: Uint8Array): OrchardAddressNAPI;
969
+ toBech32m(jsNetwork: DynamicValue): string;
970
+ /**
971
+ * Derives the Orchard payment address from a BIP-39 seed via ZIP-32
972
+ * (`m/32'/coin_type'/account'`). `diversifier_index` selects the diversified
973
+ * address (default 0). `coin_type` is SLIP-44 (Dash = 5, testnets = 1).
974
+ */
975
+ static fromSeed(seed: Uint8Array, coinType: number, account: number, diversifierIndex?: number | undefined | null): OrchardAddressNAPI;
976
+ bytes(): Uint8Array;
977
+ }
978
+ export declare class OrchardProverNAPI {
979
+ constructor();
980
+ }
842
981
  export declare class OutPointNAPI {
843
982
  constructor(txidHex: string, vout: number);
844
983
  getVOUT(): number;
@@ -851,17 +990,17 @@ export declare class OutPointNAPI {
851
990
  static fromBase64(base64: string): OutPointNAPI;
852
991
  }
853
992
  export declare class OutputAddressNAPI {
854
- constructor(address: PlatformAddressNAPI, credits: BigIntString);
993
+ constructor(address: PlatformAddressLikeNAPI, credits: BigIntString);
855
994
  get address(): PlatformAddressNAPI;
856
995
  get credits(): BigIntString;
857
- set address(address: PlatformAddressNAPI);
996
+ set address(address: PlatformAddressLikeNAPI);
858
997
  set credits(credits: BigIntString);
859
998
  }
860
999
  export declare class OutputAddressNullableCreditsNAPI {
861
- constructor(address: PlatformAddressNAPI, credits?: BigIntString | undefined | null);
1000
+ constructor(address: PlatformAddressLikeNAPI, credits?: BigIntString | undefined | null);
862
1001
  get address(): PlatformAddressNAPI;
863
1002
  get credits(): BigIntString | null;
864
- set address(address: PlatformAddressNAPI);
1003
+ set address(address: PlatformAddressLikeNAPI);
865
1004
  set credits(credits: BigIntString | undefined | null);
866
1005
  }
867
1006
  export declare class PartialIdentityNAPI {
@@ -877,14 +1016,21 @@ export declare class PartialIdentityNAPI {
877
1016
  set revision(revision: BigIntString | undefined | null);
878
1017
  set notFoundPublicKeys(keys: Array<number> | undefined | null);
879
1018
  }
1019
+ export declare class PlatformAddressInfoNAPI {
1020
+ nonce?: number;
1021
+ get address(): PlatformAddressNAPI;
1022
+ get credits(): BigIntString | null;
1023
+ }
880
1024
  export declare class PlatformAddressNAPI {
881
- constructor(address: Uint8Array);
1025
+ constructor(address: PlatformAddressLikeNAPI);
882
1026
  bytes(): Uint8Array;
883
1027
  toAddress(jsNetwork: DynamicValue): string;
884
1028
  toBech32m(jsNetwork: DynamicValue): string;
885
1029
  isP2PKH(): boolean;
886
1030
  isP2SH(): boolean;
887
1031
  hash(): Uint8Array;
1032
+ static fromBech32m(bech32M: string): PlatformAddressNAPI;
1033
+ static fromBytes(bytes: Uint8Array): PlatformAddressNAPI;
888
1034
  }
889
1035
  export declare class PrefundedVotingBalanceNAPI {
890
1036
  constructor(indexName: string, credits: BigIntString);
@@ -925,6 +1071,20 @@ export declare class PublicKeyNAPI {
925
1071
  bytes(): Uint8Array;
926
1072
  static fromBytes(bytes: Uint8Array): PublicKeyNAPI;
927
1073
  }
1074
+ /**
1075
+ * A note recovered from a shielded action by trial-decryption, together with
1076
+ * the index of the action it was found in (its on-wire / tree-leaf order
1077
+ * within the transition's actions).
1078
+ */
1079
+ export declare class RecoveredNoteNAPI {
1080
+ get index(): number;
1081
+ get note(): NoteNAPI;
1082
+ /**
1083
+ * The note's nullifier (32 bytes). Check it against `getShieldedNullifiers`
1084
+ * to tell whether this note has already been spent.
1085
+ */
1086
+ get nullifier(): Uint8Array;
1087
+ }
928
1088
  export declare class ResourceVoteChoiceNAPI {
929
1089
  static TowardsIdentity(jsId: IdentifierLikeNAPI): ResourceVoteChoiceNAPI;
930
1090
  static Abstain(): ResourceVoteChoiceNAPI;
@@ -938,6 +1098,21 @@ export declare class RewardDistributionTypeNAPI {
938
1098
  static EpochBasedDistribution(interval: number, distributionFunction: DistributionFunctionNAPI): RewardDistributionTypeNAPI;
939
1099
  getDistribution(): BlockBasedDistributionNAPI | TimeBasedDistributionNAPI | EpochBasedDistributionNAPI;
940
1100
  }
1101
+ export declare class SerializedActionNAPI {
1102
+ constructor(jsNullifier: Uint8Array, jsRk: Uint8Array, jsCmx: Uint8Array, jsEncryptedNote: Uint8Array, jsCvNet: Uint8Array, jsSpendAuthSig: Uint8Array);
1103
+ get nullifier(): Uint8Array;
1104
+ get rk(): Uint8Array;
1105
+ get cmx(): Uint8Array;
1106
+ get encrypted_note(): Uint8Array;
1107
+ get cvNet(): Uint8Array;
1108
+ get spendAuthSig(): Uint8Array;
1109
+ set nullifier(jsNullifier: Uint8Array);
1110
+ set rk(jsRk: Uint8Array);
1111
+ set cmx(jsCmx: Uint8Array);
1112
+ set encrypted_note(jsEncryptedNote: Uint8Array);
1113
+ set cvNet(jsCvNet: Uint8Array);
1114
+ set spendAuthSig(jsSpendAuthSig: Uint8Array);
1115
+ }
941
1116
  export declare class SharedEncryptedNoteNAPI {
942
1117
  constructor(senderKeyIndex: number, recipientKeyIndex: number, value: Uint8Array);
943
1118
  get senderKeyIndex(): number;
@@ -947,6 +1122,212 @@ export declare class SharedEncryptedNoteNAPI {
947
1122
  set recipientKeyIndex(index: number);
948
1123
  set value(value: Uint8Array);
949
1124
  }
1125
+ export declare class ShieldedBuilderNAPI {
1126
+ constructor();
1127
+ shieldFromAssetLock(jsRecipient: OrchardAddressNAPI, jsShieldAmount: BigIntString, jsAssetLockProof: AssetLockProofNAPI, jsPrivateKey: DynamicValue | PrivateKeyNAPI, jsMemo: ShieldedMemoNAPI, jsDummyOutputs: number, jsSenderOvk?: Uint8Array | undefined | null, jsSurplusOutput?: PlatformAddressLikeNAPI | undefined | null, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): StateTransitionNAPI;
1128
+ /**
1129
+ * Builds a `ShieldedWithdrawal` state transition (shielded pool -> core L1).
1130
+ *
1131
+ * - `spends` - notes to spend with their Merkle paths
1132
+ * - `withdrawal_amount` - amount of credits to withdraw to the core chain
1133
+ * - `output_script` - core chain script that receives the funds
1134
+ * - `core_fee_per_byte` - core chain fee rate
1135
+ * - `pooling` - withdrawal pooling strategy ("Never" / "IfAvailable" / "Standard")
1136
+ * - `change_address` - Orchard address that receives the shielded change note
1137
+ * - `seed` / `coin_type` / `account` - BIP-39 seed + ZIP-32 path used to derive the
1138
+ * spend authority (full viewing key + spend authorizing key) for the notes being spent
1139
+ * - `anchor` - 32-byte Sinsemilla root the Merkle paths are witnessed against
1140
+ * - `memo` - structured memo for the change note
1141
+ * - `platform_version` - protocol version (defaults to the latest)
1142
+ *
1143
+ * Returns the proven state transition together with the fixed shielded fee (credits)
1144
+ * consensus charges for it.
1145
+ */
1146
+ shieldedWithdrawal(jsSpends: Array<SpendableNoteNAPI>, jsWithdrawalAmount: BigIntString, jsOutputScript: CoreScriptNAPI, jsCoreFeePerByte: number, jsPooling: DynamicValue, jsChangeAddress: OrchardAddressNAPI, jsSeed: Uint8Array, jsCoinType: number, jsAccount: number, jsAnchor: Uint8Array, jsMemo: ShieldedMemoNAPI, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): ShieldedWithdrawalResultNAPI;
1147
+ /**
1148
+ * Builds an `Unshield` state transition (shielded pool -> platform address).
1149
+ *
1150
+ * Like withdrawal, this spends notes — so it needs the same on-chain
1151
+ * commitment-tree witness + anchor. The net (`unshield_amount`) is credited
1152
+ * to `output_address` (a platform identity balance), and any remaining value
1153
+ * returns to the shielded `change_address`.
1154
+ *
1155
+ * - `spends` - notes to spend with their Merkle paths
1156
+ * - `output_address` - platform address that receives the unshielded credits
1157
+ * - `unshield_amount` - amount of credits to unshield
1158
+ * - `change_address` - Orchard address that receives the shielded change note
1159
+ * - `seed` / `coin_type` / `account` - BIP-39 seed + ZIP-32 path for the spend authority
1160
+ * - `anchor` - 32-byte Sinsemilla root the Merkle paths are witnessed against
1161
+ * - `memo` - structured memo for the change note
1162
+ * - `platform_version` - protocol version (defaults to the latest)
1163
+ *
1164
+ * Returns the proven state transition plus the fixed shielded fee (credits).
1165
+ */
1166
+ unshield(jsSpends: Array<SpendableNoteNAPI>, jsOutputAddress: PlatformAddressLikeNAPI, jsUnshieldAmount: BigIntString, jsChangeAddress: OrchardAddressNAPI, jsSeed: Uint8Array, jsCoinType: number, jsAccount: number, jsAnchor: Uint8Array, jsMemo: ShieldedMemoNAPI, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): ShieldedWithdrawalResultNAPI;
1167
+ /**
1168
+ * Builds a `ShieldedTransfer` state transition (shielded pool -> shielded pool).
1169
+ *
1170
+ * Spends notes and sends value to another Orchard address, fully shielded.
1171
+ * Needs the same on-chain commitment-tree witness + anchor as the other
1172
+ * spends. Any remaining value returns to `change_address`.
1173
+ *
1174
+ * - `spends` - notes to spend with their Merkle paths
1175
+ * - `recipient` - Orchard address that receives the transferred note
1176
+ * - `transfer_amount` - amount of credits to transfer
1177
+ * - `change_address` - Orchard address that receives the shielded change note
1178
+ * - `seed` / `coin_type` / `account` - BIP-39 seed + ZIP-32 path for the spend authority
1179
+ * - `anchor` - 32-byte Sinsemilla root the Merkle paths are witnessed against
1180
+ * - `memo` - structured memo for the recipient/change note
1181
+ * - `platform_version` - protocol version (defaults to the latest)
1182
+ *
1183
+ * Returns the proven state transition plus the fixed shielded fee (credits).
1184
+ */
1185
+ shieldedTransfer(jsSpends: Array<SpendableNoteNAPI>, jsRecipient: OrchardAddressNAPI, jsTransferAmount: BigIntString, jsChangeAddress: OrchardAddressNAPI, jsSeed: Uint8Array, jsCoinType: number, jsAccount: number, jsAnchor: Uint8Array, jsMemo: ShieldedMemoNAPI, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): ShieldedWithdrawalResultNAPI;
1186
+ /**
1187
+ * Builds a `Shield` state transition (transparent platform addresses -> pool).
1188
+ *
1189
+ * A deposit: it does NOT spend pool notes (no witness/anchor needed), but it
1190
+ * does sign the transparent input witnesses, so you pass the `PrivateKeyNAPI`
1191
+ * for every input address. Fees are deducted from the inputs per `fee_strategy`.
1192
+ *
1193
+ * - `recipient` - Orchard address that receives the shielded note
1194
+ * - `shield_amount` - amount of credits to shield
1195
+ * - `inputs` - platform address inputs (address + nonce + balance)
1196
+ * - `private_keys` - one private key per input address (used to sign witnesses)
1197
+ * - `fee_strategy` - how fees are deducted from the inputs
1198
+ * - `user_fee_increase` - user fee bump
1199
+ * - `memo` - structured memo for the recipient note
1200
+ * - `sender_ovk` - optional 32-byte sender OVK (recoverable send when set)
1201
+ * - `platform_version` - protocol version (defaults to the latest)
1202
+ */
1203
+ shield(jsRecipient: OrchardAddressNAPI, jsShieldAmount: BigIntString, jsInputs: Array<InputAddressNAPI>, jsPrivateKeys: Array<PrivateKeyNAPI>, jsFeeStrategy: Array<AddressFundsFeeStrategyStepNAPI>, jsUserFeeIncrease: number, jsMemo: ShieldedMemoNAPI, jsSenderOvk?: Uint8Array | undefined | null, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): StateTransitionNAPI;
1204
+ /**
1205
+ * Builds an `IdentityCreateFromShieldedPool` transition (pool -> new identity).
1206
+ *
1207
+ * A spend (needs the on-chain witness + anchor) that funds a brand-new identity
1208
+ * from the shielded pool. Each `public_keys[i]` is paired with `private_keys[i]`,
1209
+ * which signs that key's proof-of-possession (ECDSA keys only).
1210
+ *
1211
+ * - `public_keys` - the new identity's keys (in-creation form)
1212
+ * - `private_keys` - one private key per public key (same order)
1213
+ * - `denomination` - fixed pool denomination funding the identity
1214
+ * - `send_to_address_on_creation_failure` - platform address refunded if creation fails
1215
+ * - `spends` - notes to spend with their Merkle paths
1216
+ * - `change_address` - Orchard address for the shielded change note
1217
+ * - `seed` / `coin_type` / `account` - BIP-39 seed + ZIP-32 path for the spend authority
1218
+ * - `anchor` - 32-byte Sinsemilla root the Merkle paths are witnessed against
1219
+ * - `memo` - structured memo for the change note
1220
+ * - `platform_version` - protocol version (defaults to the latest)
1221
+ */
1222
+ identityCreateFromShieldedPool(jsPublicKeys: Array<IdentityPublicKeyInCreationNAPI>, jsPrivateKeys: Array<PrivateKeyNAPI>, jsDenomination: BigIntString, jsSendToAddressOnCreationFailure: PlatformAddressLikeNAPI, jsSpends: Array<SpendableNoteNAPI>, jsChangeAddress: OrchardAddressNAPI, jsSeed: Uint8Array, jsCoinType: number, jsAccount: number, jsAnchor: Uint8Array, jsMemo: ShieldedMemoNAPI, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): IdentityCreateFromShieldedPoolResultNAPI;
1223
+ }
1224
+ export declare class ShieldedMemoNAPI {
1225
+ static fromString(value: string): ShieldedMemoNAPI;
1226
+ static empty(): ShieldedMemoNAPI;
1227
+ static other(kind: number, payload: Uint8Array): ShieldedMemoNAPI;
1228
+ toString(): string;
1229
+ toBytes(): Uint8Array;
1230
+ }
1231
+ export declare class ShieldedTransferTransitionNAPI {
1232
+ constructor(jsActions: Array<SerializedActionNAPI>, jsValueBalance: BigIntString, jsAnchor: Uint8Array, jsProof: Uint8Array, jsBindingsSignature: Uint8Array);
1233
+ get actions(): Array<SerializedActionNAPI>;
1234
+ get valueBalance(): BigIntString;
1235
+ get anchor(): Uint8Array;
1236
+ get proof(): Uint8Array;
1237
+ get bindingsSignature(): Uint8Array;
1238
+ set actions(actions: Array<SerializedActionNAPI>);
1239
+ set valueBalance(amount: BigIntString);
1240
+ set anchor(jsAnchor: Uint8Array);
1241
+ set proof(proof: Uint8Array);
1242
+ set bindingsSignature(jsBindingsSignature: Uint8Array);
1243
+ toStateTransition(): StateTransitionNAPI;
1244
+ static fromStateTransition(st: StateTransitionNAPI): ShieldedTransferTransitionNAPI;
1245
+ }
1246
+ /**
1247
+ * Result of a proving shielded spend builder ([`ShieldedBuilderNAPI::shielded_withdrawal`],
1248
+ * [`ShieldedBuilderNAPI::unshield`], [`ShieldedBuilderNAPI::shielded_transfer`]): the
1249
+ * proven state transition plus the shielded fee (credits) consensus charges for it.
1250
+ */
1251
+ export declare class ShieldedWithdrawalResultNAPI {
1252
+ get stateTransition(): StateTransitionNAPI;
1253
+ get fee(): BigIntString;
1254
+ }
1255
+ export declare class ShieldedWithdrawalTransitionNAPI {
1256
+ constructor(jsActions: Array<SerializedActionNAPI>, jsUnshieldingAmount: BigIntString, jsAnchor: Uint8Array, jsProof: Uint8Array, jsBindingsSignature: Uint8Array, coreFeePerByte: number, jsPooling: DynamicValue, jsOutputScript: CoreScriptNAPI);
1257
+ get actions(): Array<SerializedActionNAPI>;
1258
+ get unshieldingAmount(): BigIntString;
1259
+ get anchor(): Uint8Array;
1260
+ get proof(): Uint8Array;
1261
+ get bindingsSignature(): Uint8Array;
1262
+ get coreFeePerByte(): number;
1263
+ get pooling(): string;
1264
+ get outputScript(): CoreScriptNAPI;
1265
+ set actions(actions: Array<SerializedActionNAPI>);
1266
+ set unshieldingAmount(amount: BigIntString);
1267
+ set anchor(jsAnchor: Uint8Array);
1268
+ set proof(proof: Uint8Array);
1269
+ set bindingsSignature(jsBindingsSignature: Uint8Array);
1270
+ set coreFeePerByte(coreFeePerByte: number);
1271
+ set pooling(jsPooling: DynamicValue);
1272
+ set outputScript(outputScript: CoreScriptNAPI);
1273
+ toStateTransition(): StateTransitionNAPI;
1274
+ static fromStateTransition(st: StateTransitionNAPI): ShieldedWithdrawalTransitionNAPI;
1275
+ }
1276
+ export declare class ShieldFromAssetLockTransitionNAPI {
1277
+ constructor(jsAssetLockProof: AssetLockProofNAPI, jsActions: Array<SerializedActionNAPI>, jsValueBalance: BigIntString, jsAnchor: Uint8Array, jsProof: Uint8Array, jsBindingsSignature: Uint8Array, jsSurplusOutput?: PlatformAddressLikeNAPI | undefined | null);
1278
+ get assetLockProof(): AssetLockProofNAPI;
1279
+ get actions(): Array<SerializedActionNAPI>;
1280
+ get valueBalance(): BigIntString;
1281
+ get anchor(): Uint8Array;
1282
+ get proof(): Uint8Array;
1283
+ get bindingsSignature(): Uint8Array;
1284
+ get surplusOutput(): PlatformAddressNAPI | null;
1285
+ get signature(): Uint8Array;
1286
+ set assetLockProof(jsAssetLockProof: AssetLockProofNAPI);
1287
+ set actions(actions: Array<SerializedActionNAPI>);
1288
+ set valueBalance(amount: BigIntString);
1289
+ set anchor(jsAnchor: Uint8Array);
1290
+ set proof(proof: Uint8Array);
1291
+ set bindingsSignature(jsBindingsSignature: Uint8Array);
1292
+ set surplusOutput(jsSurplusOutput: PlatformAddressLikeNAPI | undefined | null);
1293
+ set signature(signature: Uint8Array);
1294
+ toStateTransition(): StateTransitionNAPI;
1295
+ static fromStateTransition(st: StateTransitionNAPI): ShieldFromAssetLockTransitionNAPI;
1296
+ }
1297
+ export declare class ShieldTransitionNAPI {
1298
+ constructor(jsInputs: Array<InputAddressNAPI>, jsActions: Array<SerializedActionNAPI>, jsAmount: BigIntString, jsAnchor: Uint8Array, jsProof: Uint8Array, jsBindingsSignature: Uint8Array, jsFeeStrategy: Array<AddressFundsFeeStrategyStepNAPI>, userFeeIncrease: number, jsInputWitnesses: Array<AddressWitnessNAPI>);
1299
+ get inputs(): Array<InputAddressNAPI>;
1300
+ get actions(): Array<SerializedActionNAPI>;
1301
+ get amount(): BigIntString;
1302
+ get anchor(): Uint8Array;
1303
+ get proof(): Uint8Array;
1304
+ get bindingsSignature(): Uint8Array;
1305
+ get feeStrategy(): Array<AddressFundsFeeStrategyStepNAPI>;
1306
+ get userFeeIncrease(): number;
1307
+ get inputWitnesses(): Array<AddressWitnessNAPI>;
1308
+ set inputs(jsInputs: Array<InputAddressNAPI>);
1309
+ set actions(actions: Array<SerializedActionNAPI>);
1310
+ set amount(amount: BigIntString);
1311
+ set anchor(jsAnchor: Uint8Array);
1312
+ set proof(proof: Uint8Array);
1313
+ set bindingsSignature(jsBindingsSignature: Uint8Array);
1314
+ set feeStrategy(feeStrategy: Array<AddressFundsFeeStrategyStepNAPI>);
1315
+ set userFeeIncrease(userFeeIncrease: number);
1316
+ set inputWitnesses(jsInputWitnesses: Array<AddressWitnessNAPI>);
1317
+ toStateTransition(): StateTransitionNAPI;
1318
+ static fromStateTransition(st: StateTransitionNAPI): ShieldTransitionNAPI;
1319
+ }
1320
+ /**
1321
+ * An Orchard note to spend, paired with its Merkle inclusion path in the note
1322
+ * commitment tree — the unit consumed by a shielded spend (withdrawal, etc.).
1323
+ */
1324
+ export declare class SpendableNoteNAPI {
1325
+ constructor(jsNote: NoteNAPI, jsMerklePath: MerklePathNAPI);
1326
+ get note(): NoteNAPI;
1327
+ get merklePath(): MerklePathNAPI;
1328
+ set note(jsNote: NoteNAPI);
1329
+ set merklePath(jsMerklePath: MerklePathNAPI);
1330
+ }
950
1331
  export declare class StateTransitionNAPI {
951
1332
  sign(jsPrivateKey: DynamicValue | PrivateKeyNAPI, publicKey: IdentityPublicKeyNAPI): Uint8Array;
952
1333
  signByPrivateKey(jsPrivateKey: DynamicValue | PrivateKeyNAPI, keyId?: number | undefined | null, jsKeyType?: DynamicValue | undefined | null): Uint8Array;
@@ -972,10 +1353,15 @@ export declare class StateTransitionNAPI {
972
1353
  set signature(signature: Uint8Array);
973
1354
  set signaturePublicKeyId(keyId: number);
974
1355
  set userFeeIncrease(userFeeIncrease: number);
1356
+ getSignableBytes(): Uint8Array;
975
1357
  setOwnerId(jsOwnerId: IdentifierLikeNAPI): void;
976
1358
  setIdentityContractNonce(nonce: BigIntString): void;
977
1359
  setIdentityNonce(nonce: BigIntString): void;
978
1360
  }
1361
+ export declare class StoredAssetLockInfoNAPI {
1362
+ get type(): string;
1363
+ get value(): AssetLockValueNAPI | null;
1364
+ }
979
1365
  export declare class TimeBasedDistributionNAPI {
980
1366
  interval: BigIntString;
981
1367
  get function(): DistributionFunctionNAPI;
@@ -1341,10 +1727,22 @@ export declare class TxOutNAPI {
1341
1727
  set scriptPubKeyBytes(scriptPubkeyBytes: Uint8Array);
1342
1728
  getScriptPubKeyASM(): string;
1343
1729
  }
1344
- export declare class VerifiedAddressInfosNAPI {
1345
- nonce?: number;
1346
- get address(): PlatformAddressNAPI;
1347
- get credits(): BigIntString | null;
1730
+ export declare class UnshieldTransitionNAPI {
1731
+ constructor(jsOutputAddress: PlatformAddressLikeNAPI, jsActions: Array<SerializedActionNAPI>, jsUnshieldingAmount: BigIntString, jsAnchor: Uint8Array, jsProof: Uint8Array, jsBindingsSignature: Uint8Array);
1732
+ get outputAddress(): PlatformAddressNAPI;
1733
+ get actions(): Array<SerializedActionNAPI>;
1734
+ get unshieldingAmount(): BigIntString;
1735
+ get anchor(): Uint8Array;
1736
+ get proof(): Uint8Array;
1737
+ get bindingsSignature(): Uint8Array;
1738
+ set outputAddress(jsOutputAddress: PlatformAddressLikeNAPI);
1739
+ set actions(actions: Array<SerializedActionNAPI>);
1740
+ set unshieldingAmount(amount: BigIntString);
1741
+ set anchor(jsAnchor: Uint8Array);
1742
+ set proof(proof: Uint8Array);
1743
+ set bindingsSignature(jsBindingsSignature: Uint8Array);
1744
+ toStateTransition(): StateTransitionNAPI;
1745
+ static fromStateTransition(st: StateTransitionNAPI): UnshieldTransitionNAPI;
1348
1746
  }
1349
1747
  export declare class VerifiedBalanceTransferNAPI {
1350
1748
  get sender(): PartialIdentityNAPI;
@@ -1395,7 +1793,7 @@ export declare class VerifiedIdentityContractNonceNAPI {
1395
1793
  }
1396
1794
  export declare class VerifiedIdentityFullWithAddressInfosNAPI {
1397
1795
  get identity(): IdentityNAPI;
1398
- get infos(): Array<VerifiedAddressInfosNAPI>;
1796
+ get infos(): Array<PlatformAddressInfoNAPI>;
1399
1797
  }
1400
1798
  export declare class VerifiedIdentityKeysByIdentifierNAPI {
1401
1799
  rootHash: Uint8Array;
@@ -1412,15 +1810,60 @@ export declare class VerifiedIdentityTokenInfoNAPI {
1412
1810
  }
1413
1811
  export declare class VerifiedIdentityWithAddressInfosNAPI {
1414
1812
  get identity(): PartialIdentityNAPI;
1415
- get infos(): Array<VerifiedAddressInfosNAPI>;
1813
+ get infos(): Array<PlatformAddressInfoNAPI>;
1814
+ }
1815
+ export declare class VerifiedMostRecentShieldedAnchorNAPI {
1816
+ rootHash: Uint8Array;
1817
+ anchor?: Uint8Array;
1818
+ }
1819
+ export declare class VerifiedPlatformAddressesInfosNAPI {
1820
+ rootHash: Uint8Array;
1821
+ get infos(): Array<PlatformAddressInfoNAPI>;
1822
+ }
1823
+ export declare class VerifiedPlatformAddressInfoNAPI {
1824
+ rootHash: Uint8Array;
1825
+ nonce?: number;
1826
+ balance?: BigIntString;
1827
+ get address(): PlatformAddressNAPI | null;
1828
+ }
1829
+ export declare class VerifiedShieldedAnchorsNAPI {
1830
+ rootHash: Uint8Array;
1831
+ get anchors(): Array<Uint8Array>;
1832
+ }
1833
+ export declare class VerifiedShieldedEncryptedNoteNAPI {
1834
+ cmx: Uint8Array;
1835
+ nullifier: Uint8Array;
1836
+ cvNet: Uint8Array;
1837
+ encryptedNote: Uint8Array;
1838
+ }
1839
+ export declare class VerifiedShieldedEncryptedNotesNAPI {
1840
+ rootHash: Uint8Array;
1841
+ totalCount: BigIntString;
1842
+ get notes(): Array<VerifiedShieldedEncryptedNoteNAPI>;
1843
+ }
1844
+ export declare class VerifiedShieldedNotesCountNAPI {
1845
+ rootHash: Uint8Array;
1846
+ count?: BigIntString;
1847
+ }
1848
+ export declare class VerifiedShieldedNullifierNAPI {
1849
+ nullifier: Uint8Array;
1850
+ isSpent: boolean;
1851
+ }
1852
+ export declare class VerifiedShieldedNullifiersNAPI {
1853
+ rootHash: Uint8Array;
1854
+ get nullifiers(): Array<VerifiedShieldedNullifierNAPI>;
1855
+ }
1856
+ export declare class VerifiedShieldedPoolStateNAPI {
1857
+ rootHash: Uint8Array;
1858
+ totalBalance?: BigIntString;
1416
1859
  }
1417
1860
  export declare class VerifiedStateTransitionResultNAPI {
1418
1861
  rootHash: Uint8Array;
1419
- get result(): DataContractNAPI | IdentityNAPI | IdentifierNAPI | VerifiedIdentityBalanceNAPI | VerifiedIdentityTokenInfoNAPI | VerifiedTokenPricingScheduleNAPI | TokenStatusNAPI | Array<VerifiedIdentityBalanceNAPI> | PartialIdentityNAPI | VerifiedBalanceTransferNAPI | Array<VerifiedDocumentNAPI> | DocumentNAPI | VerifiedTokenGroupActionWithDocumentNAPI | VerifiedTokenGroupActionWithTokenBalanceNAPI | VerifiedTokenGroupActionWithTokenIdentityInfoNAPI | VerifiedTokenGroupActionWithTokenPricingScheduleNAPI | VoteNAPI | Array<VerifiedAddressInfosNAPI> | VerifiedIdentityFullWithAddressInfosNAPI | VerifiedIdentityWithAddressInfosNAPI;
1862
+ get result(): DataContractNAPI | IdentityNAPI | IdentifierNAPI | VerifiedIdentityBalanceNAPI | VerifiedIdentityTokenInfoNAPI | VerifiedTokenPricingScheduleNAPI | TokenStatusNAPI | Array<VerifiedIdentityBalanceNAPI> | PartialIdentityNAPI | VerifiedBalanceTransferNAPI | Array<VerifiedDocumentNAPI> | DocumentNAPI | VerifiedTokenGroupActionWithDocumentNAPI | VerifiedTokenGroupActionWithTokenBalanceNAPI | VerifiedTokenGroupActionWithTokenIdentityInfoNAPI | VerifiedTokenGroupActionWithTokenPricingScheduleNAPI | VoteNAPI | Array<PlatformAddressInfoNAPI> | VerifiedIdentityFullWithAddressInfosNAPI | VerifiedIdentityWithAddressInfosNAPI | StoredAssetLockInfoNAPI | Array<[Uint8Array, boolean]> | [Array<[Uint8Array, boolean]>, Array<PlatformAddressInfoNAPI>] | [Array<[Uint8Array, boolean]>, Array<VerifiedDocumentNAPI>] | [StoredAssetLockInfoNAPI, Array<PlatformAddressInfoNAPI>] | [IdentityNAPI, Array<[Uint8Array, boolean]>];
1420
1863
  }
1421
1864
  export declare class VerifiedTokenBalancesForIdentitiesNAPI {
1422
1865
  rootHash: Uint8Array;
1423
- get balances(): Array<IdentityTokenBalanceNAPI>;
1866
+ get balances(): Array<IdentityTokenBalanceOptionalNAPI>;
1424
1867
  }
1425
1868
  export declare class VerifiedTokenContractInfoNAPI {
1426
1869
  rootHash: Uint8Array;
@@ -1455,7 +1898,7 @@ export declare class VerifiedTokenPricingScheduleNAPI {
1455
1898
  }
1456
1899
  export declare class VerifiedTokensBalancesForIdentityNAPI {
1457
1900
  rootHash: Uint8Array;
1458
- get balances(): Array<IdentityTokenBalanceNAPI>;
1901
+ get balances(): Array<IdentityTokenBalanceOptionalNAPI>;
1459
1902
  }
1460
1903
  export declare class VerifiedTokenTotalSupplyNAPI {
1461
1904
  rootHash: Uint8Array;
@@ -1484,7 +1927,7 @@ export declare class VotePollNAPI {
1484
1927
  get contractId(): IdentifierNAPI;
1485
1928
  get documentTypeName(): string;
1486
1929
  get indexName(): string;
1487
- get indexValues(): Array<DynamicValue>;
1930
+ get indexValues(): Array<string>;
1488
1931
  set contractId(jsContractId: IdentifierLikeNAPI);
1489
1932
  set documentTypeName(documentTypeName: string);
1490
1933
  set indexName(indexName: string);
@@ -1497,7 +1940,7 @@ export declare class WitnessNAPI {
1497
1940
  clear(): void;
1498
1941
  push(newElement: Uint8Array): void;
1499
1942
  }
1500
- export declare const enum ActionGoalNAPI {
1943
+ export declare enum ActionGoalNAPI {
1501
1944
  ActionCompletion = 0,
1502
1945
  ActionParticipation = 1
1503
1946
  }
@@ -1508,11 +1951,11 @@ export interface AddressWitnessP2shNAPI {
1508
1951
  signatures: Array<Array<number>>;
1509
1952
  redeemScript: Uint8Array;
1510
1953
  }
1511
- export declare const enum AssetLockProofTypeNAPI {
1954
+ export declare enum AssetLockProofTypeNAPI {
1512
1955
  Instant = 0,
1513
1956
  Chain = 1
1514
1957
  }
1515
- export declare const enum BatchTypeNAPI {
1958
+ export declare enum BatchTypeNAPI {
1516
1959
  Create = 0,
1517
1960
  Replace = 1,
1518
1961
  Delete = 2,
@@ -1600,12 +2043,12 @@ export interface DistributionStepwiseStepNAPI {
1600
2043
  step: BigIntString;
1601
2044
  amount: BigIntString;
1602
2045
  }
1603
- export declare const enum GasFeesPaidByNAPI {
2046
+ export declare enum GasFeesPaidByNAPI {
1604
2047
  DocumentOwner = 0,
1605
2048
  ContractOwner = 1,
1606
2049
  PreferContractOwner = 2
1607
2050
  }
1608
- export declare const enum GroupActionStatusNAPI {
2051
+ export declare enum GroupActionStatusNAPI {
1609
2052
  ActionActive = 0,
1610
2053
  ActionClosed = 1
1611
2054
  }
@@ -1615,20 +2058,27 @@ export interface InstantAssetLockProofRAW {
1615
2058
  transaction: Uint8Array;
1616
2059
  outputIndex: number;
1617
2060
  }
1618
- export declare const enum KeyTypeNAPI {
2061
+ export declare enum KeyTypeNAPI {
1619
2062
  ECDSA_SECP256K1 = 0,
1620
2063
  BLS12_381 = 1,
1621
2064
  ECDSA_HASH160 = 2,
1622
2065
  BIP13_SCRIPT_HASH = 3,
1623
2066
  EDDSA_25519_HASH160 = 4
1624
2067
  }
1625
- export declare const enum NetworkNAPI {
2068
+ export declare enum NetworkNAPI {
1626
2069
  Mainnet = 0,
1627
2070
  Testnet = 1,
1628
2071
  Devnet = 2,
1629
2072
  Regtest = 3
1630
2073
  }
1631
- export declare const enum PlatformVersionNAPI {
2074
+ /**
2075
+ * Derives the sender's Orchard outgoing viewing key (External scope, 32 bytes)
2076
+ * from a BIP-39 seed via ZIP-32 — the value to pass as `sender_ovk` to
2077
+ * `shieldFromAssetLock` so the sender can later recover its own send.
2078
+ */
2079
+ export declare function orchardOvkFromSeed(seed: Uint8Array, coinType: number, account: number): Uint8Array;
2080
+ export type PlatformAddressLikeNAPI = PlatformAddressNAPI | DynamicValue;
2081
+ export declare enum PlatformVersionNAPI {
1632
2082
  PLATFORM_V1 = 1,
1633
2083
  PLATFORM_V2 = 2,
1634
2084
  PLATFORM_V3 = 3,
@@ -1639,14 +2089,15 @@ export declare const enum PlatformVersionNAPI {
1639
2089
  PLATFORM_V8 = 8,
1640
2090
  PLATFORM_V9 = 9,
1641
2091
  PLATFORM_V10 = 10,
1642
- PLATFORM_V11 = 11
2092
+ PLATFORM_V11 = 11,
2093
+ PLATFORM_V12 = 12
1643
2094
  }
1644
- export declare const enum PoolingNAPI {
2095
+ export declare enum PoolingNAPI {
1645
2096
  Never = 0,
1646
2097
  IfAvailable = 1,
1647
2098
  Standard = 2
1648
2099
  }
1649
- export declare const enum PurposeNAPI {
2100
+ export declare enum PurposeNAPI {
1650
2101
  AUTHENTICATION = 0,
1651
2102
  ENCRYPTION = 1,
1652
2103
  DECRYPTION = 2,
@@ -1655,7 +2106,18 @@ export declare const enum PurposeNAPI {
1655
2106
  VOTING = 5,
1656
2107
  OWNER = 6
1657
2108
  }
1658
- export declare const enum SecurityLevelNAPI {
2109
+ /**
2110
+ * Recovers your own notes from a list of shielded actions by trial-decrypting
2111
+ * each action's `encrypted_note` with the incoming viewing key derived from
2112
+ * `seed` via ZIP-32 (`m/32'/coin_type'/account'`, External scope).
2113
+ *
2114
+ * Only actions addressed to you decrypt; the rest are skipped. Each returned
2115
+ * entry carries the action `index` (use it as the leaf position when building
2116
+ * the spend witness) and the recovered [`NoteNAPI`] (value, rho, rseed,
2117
+ * address) — everything needed to spend it.
2118
+ */
2119
+ export declare function recoverNotes(jsActions: Array<SerializedActionNAPI>, jsSeed: Uint8Array, jsCoinType: number, jsAccount: number): Array<RecoveredNoteNAPI>;
2120
+ export declare enum SecurityLevelNAPI {
1659
2121
  MASTER = 0,
1660
2122
  CRITICAL = 1,
1661
2123
  HIGH = 2,
@@ -1666,14 +2128,16 @@ export interface TokenConfigurationLocalizationJsonNAPI {
1666
2128
  singularForm: string;
1667
2129
  pluralForm: string;
1668
2130
  }
1669
- export declare const enum TokenDistributionTypeNAPI {
2131
+ export declare enum TokenDistributionTypeNAPI {
1670
2132
  PreProgrammed = 0,
1671
2133
  Perpetual = 1
1672
2134
  }
1673
- export declare const enum TokenEmergencyActionNAPI {
2135
+ export declare enum TokenEmergencyActionNAPI {
1674
2136
  Pause = 0,
1675
2137
  Resume = 1
1676
2138
  }
2139
+ export declare function verifyAddressesInfos(proof: Uint8Array, jsPlatformAddresses: Array<PlatformAddressLikeNAPI>, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedPlatformAddressesInfosNAPI;
2140
+ export declare function verifyAddressInfo(proof: Uint8Array, jsPlatformAddress: PlatformAddressLikeNAPI, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedPlatformAddressInfoNAPI;
1677
2141
  export declare function verifyContractProof(proof: Uint8Array, contractKnownKeepsHistory: boolean | undefined | null, isProofSubset: boolean, inMultipleContractProofForm: boolean, jsContractId: IdentifierLikeNAPI, jsPlatformVersion: DynamicValue): VerifiedContractNAPI;
1678
2142
  export declare function verifyDocumentsProof(proof: Uint8Array, contract: DataContractNAPI, documentTypeName: string, jsWhereClauses: DynamicValue, jsOrderBy: Array<Array<string>>, limit: number | undefined | null, jsStartAt: IdentifierLikeNAPI | undefined | null, startAtIncluded: boolean, blockTimeMs: BigIntString | undefined | null, jsPlatformVersion: DynamicValue): VerifiedDocumentsNAPI;
1679
2143
  export declare function verifyEpochsInfoProof(proof: Uint8Array, currentEpoch: number, startEpoch: number | undefined | null, count: number, ascending: boolean, jsPlatformVersion: DynamicValue): VerifiedEpochsInfoNAPI;
@@ -1684,6 +2148,12 @@ export declare function verifyIdentityByUniqueKeyHashProof(proof: Uint8Array, js
1684
2148
  export declare function verifyIdentityContractNonceProof(proof: Uint8Array, jsIdentityId: IdentifierLikeNAPI, jsContractId: IdentifierLikeNAPI, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedIdentityContractNonceNAPI;
1685
2149
  export declare function verifyIdentityKeysByIdentifierProof(proof: Uint8Array, jsIdentityId: IdentifierLikeNAPI, specificKeyIds: Array<number> | undefined | null, withRevision: boolean, withBalance: boolean, isProofSubset: boolean, limit: number | undefined | null, offset: number | undefined | null, jsPlatformVersion: DynamicValue): VerifiedIdentityKeysByIdentifierNAPI;
1686
2150
  export declare function verifyIdentityNonceProof(proof: Uint8Array, jsIdentityId: IdentifierLikeNAPI, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedIdentityNonceNAPI;
2151
+ export declare function verifyMostRecentShieldedAnchorProof(proof: Uint8Array, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedMostRecentShieldedAnchorNAPI;
2152
+ export declare function verifyShieldedAnchorsProof(proof: Uint8Array, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedShieldedAnchorsNAPI;
2153
+ export declare function verifyShieldedEncryptedNotesProof(proof: Uint8Array, startIndex: BigIntString, count: number, maxElements: number, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedShieldedEncryptedNotesNAPI;
2154
+ export declare function verifyShieldedNotesCountProof(proof: Uint8Array, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedShieldedNotesCountNAPI;
2155
+ export declare function verifyShieldedNullifiersProof(proof: Uint8Array, nullifiers: Array<Uint8Array>, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedShieldedNullifiersNAPI;
2156
+ export declare function verifyShieldedPoolStateProof(proof: Uint8Array, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedShieldedPoolStateNAPI;
1687
2157
  export declare function verifySignatureDigest(signDigest: Uint8Array, signature: Uint8Array, pubkeyBytes: Uint8Array): boolean;
1688
2158
  export declare function verifyStateTransitionResult(proof: Uint8Array, stateTransition: StateTransitionNAPI, blockInfo: BlockInfoNAPI, jsKnownContractsArray: Array<DataContractNAPI>, jsPlatformVersion: DynamicValue): VerifiedStateTransitionResultNAPI;
1689
2159
  export declare function verifyTokenBalancesForIdentitiesProof(proof: Uint8Array, jsTokenId: IdentifierLikeNAPI, isProofSubset: boolean, jsIdentities: Array<IdentifierLikeNAPI>, jsPlatformVersion: DynamicValue): VerifiedTokenBalancesForIdentitiesNAPI;
@@ -1693,8 +2163,8 @@ export declare function verifyTokensBalancesForIdentityProof(proof: Uint8Array,
1693
2163
  export declare function verifyTokenTotalSupplyProof(proof: Uint8Array, jsTokenId: IdentifierLikeNAPI, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedTokenTotalSupplyNAPI;
1694
2164
  export declare function verifyTotalCreditsProof(proof: Uint8Array, coreSubsidyHalvingInterval: number, activationCoreHeight: number, currentCoreHeight: number, jsPlatformVersion: DynamicValue): VerifiedTotalCreditsNAPI;
1695
2165
  export declare function verifyVotePollVoteStateProof(proof: Uint8Array, contract: DataContractNAPI, documentTypeName: string, indexName: string, jsIndexValues: Array<Uint8Array>, jsResultType: DynamicValue, allowIncludeLockedAndAbstainingVoteTally: boolean, count: number | undefined | null, jsStartAt: DynamicValue, jsPlatformVersion: DynamicValue): VerifiedVoteStateNAPI;
1696
- export declare const enum VoteStateResultTypeNAPI {
1697
- Documents = 0,
1698
- VoteTally = 1,
1699
- DocumentsAndVoteTally = 2
2166
+ export declare enum VoteStateResultTypeNAPI {
2167
+ DOCUMENTS = 0,
2168
+ VOTE_TALLY = 1,
2169
+ DOCUMENTS_AND_VOTE_TALLY = 2
1700
2170
  }