pshenmic-dpp 2.0.0-dev.20 → 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 (52) hide show
  1. package/dist/binaries/bindingsTypes.d.ts +307 -0
  2. package/dist/binaries/native/aarch64-apple-darwin/pshenmic_dpp.node +0 -0
  3. package/dist/binaries/native/x86_64-apple-darwin/pshenmic_dpp.node +0 -0
  4. package/dist/binaries/native/x86_64-unknown-linux-gnu/pshenmic_dpp.node +0 -0
  5. package/dist/binaries/native/x86_64-unknown-linux-musl/pshenmic_dpp.node +0 -0
  6. package/dist/binaries/pshenmic_dpp.android.node/arm64-v8a/libpshenmic_dpp.so +0 -0
  7. package/dist/binaries/pshenmic_dpp.apple.node/ios-arm64-simulator/libpshenmic_dpp.framework/libpshenmic_dpp +0 -0
  8. package/dist/binaries/pshenmic_dpp.d.ts +27 -0
  9. package/dist/binaries/pshenmic_dpp.js +1 -1
  10. package/dist/binaries/wasm/wasmBytes.cjs +1 -1
  11. package/dist/binaries/wasm/wasmBytes.d.cts +1 -1
  12. package/dist/binaries/wasm.d.ts +27 -0
  13. package/dist/binaries/wasm.js +1 -1
  14. package/dist/src/dpp/dpp.d.ts +17 -0
  15. package/dist/src/dpp/dpp.js +17 -0
  16. package/dist/src/dpp/structs/Orchard/CommitmentTree.d.ts +14 -0
  17. package/dist/src/dpp/structs/Orchard/CommitmentTree.js +31 -0
  18. package/dist/src/dpp/structs/Orchard/IdentityCreateFromShieldedPoolResult.d.ts +21 -0
  19. package/dist/src/dpp/structs/Orchard/IdentityCreateFromShieldedPoolResult.js +38 -0
  20. package/dist/src/dpp/structs/Orchard/MerklePath.d.ts +11 -0
  21. package/dist/src/dpp/structs/Orchard/MerklePath.js +25 -0
  22. package/dist/src/dpp/structs/Orchard/Note.d.ts +18 -0
  23. package/dist/src/dpp/structs/Orchard/Note.js +42 -0
  24. package/dist/src/dpp/structs/Orchard/OrchardAddress.d.ts +15 -0
  25. package/dist/src/dpp/structs/Orchard/OrchardAddress.js +31 -0
  26. package/dist/src/dpp/structs/Orchard/OrchardProver.d.ts +12 -0
  27. package/dist/src/dpp/structs/Orchard/OrchardProver.js +18 -0
  28. package/dist/src/dpp/structs/Orchard/RecoveredNote.d.ts +18 -0
  29. package/dist/src/dpp/structs/Orchard/RecoveredNote.js +29 -0
  30. package/dist/src/dpp/structs/Orchard/ShieldedBuilder.d.ts +40 -0
  31. package/dist/src/dpp/structs/Orchard/ShieldedBuilder.js +45 -0
  32. package/dist/src/dpp/structs/Orchard/ShieldedMemo.d.ts +11 -0
  33. package/dist/src/dpp/structs/Orchard/ShieldedMemo.js +25 -0
  34. package/dist/src/dpp/structs/Orchard/ShieldedWithdrawalResult.d.ts +11 -0
  35. package/dist/src/dpp/structs/Orchard/ShieldedWithdrawalResult.js +18 -0
  36. package/dist/src/dpp/structs/Orchard/SpendableNote.d.ts +13 -0
  37. package/dist/src/dpp/structs/Orchard/SpendableNote.js +27 -0
  38. package/dist/src/dpp/types.d.ts +35 -0
  39. package/dist/src/dpp/verify/Shielded/verifyMostRecentShieldedAnchorProof.d.ts +2 -0
  40. package/dist/src/dpp/verify/Shielded/verifyMostRecentShieldedAnchorProof.js +9 -0
  41. package/dist/src/dpp/verify/Shielded/verifyShieldedAnchorsProof.d.ts +2 -0
  42. package/dist/src/dpp/verify/Shielded/verifyShieldedAnchorsProof.js +9 -0
  43. package/dist/src/dpp/verify/Shielded/verifyShieldedEncryptedNotesProof.d.ts +2 -0
  44. package/dist/src/dpp/verify/Shielded/verifyShieldedEncryptedNotesProof.js +15 -0
  45. package/dist/src/dpp/verify/Shielded/verifyShieldedNotesCountProof.d.ts +2 -0
  46. package/dist/src/dpp/verify/Shielded/verifyShieldedNotesCountProof.js +9 -0
  47. package/dist/src/dpp/verify/Shielded/verifyShieldedNullifiersProof.d.ts +2 -0
  48. package/dist/src/dpp/verify/Shielded/verifyShieldedNullifiersProof.js +12 -0
  49. package/dist/src/dpp/verify/Shielded/verifyShieldedPoolStateProof.d.ts +2 -0
  50. package/dist/src/dpp/verify/Shielded/verifyShieldedPoolStateProof.js +9 -0
  51. package/package.json +1 -1
  52. package/tests/unit/Shielded.spec.ts +344 -0
@@ -196,6 +196,54 @@ export declare class ChangeControlRulesNAPI {
196
196
  set selfChangingAdminActionTakersAllowed(selfChangingAdminActionTakersAllowed: boolean);
197
197
  canChangeAdminActionTakers(adminActionTakers: AuthorizedActionTakersNAPI, jsContractOwnerId: IdentifierLikeNAPI, mainGroup: number | undefined | null, jsGroups: Array<[number, GroupNAPI]>, actionTaker: ActionTakerNAPI, jsGoal: DynamicValue): boolean;
198
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
+ }
199
247
  export declare class ConsensusErrorNAPI {
200
248
  static deserialize(error: Uint8Array): ConsensusErrorNAPI;
201
249
  get message(): string;
@@ -523,6 +571,20 @@ export declare class IdentityCreateFromAddressesTransitionNAPI {
523
571
  static fromStateTransition(st: StateTransitionNAPI): IdentityCreateFromAddressesTransitionNAPI;
524
572
  toStateTransition(): StateTransitionNAPI;
525
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
+ }
526
588
  export declare class IdentityCreateFromShieldedPoolTransitionNAPI {
527
589
  constructor(jsPublicKeys: Array<IdentityPublicKeyInCreationNAPI>, jsDenomination: BigIntString, jsActions: Array<SerializedActionNAPI>, jsAnchor: Uint8Array, jsProof: Uint8Array, jsBindingsSignature: Uint8Array, jsSendToAddressOnCreationFailure: PlatformAddressLikeNAPI, jsIdentityId: IdentifierLikeNAPI);
528
590
  get publicKeys(): Array<IdentityPublicKeyInCreationNAPI>;
@@ -869,6 +931,53 @@ export declare class MasternodeVoteTransitionNAPI {
869
931
  toStateTransition(): StateTransitionNAPI;
870
932
  static fromStateTransition(st: StateTransitionNAPI): MasternodeVoteTransitionNAPI;
871
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
+ }
872
981
  export declare class OutPointNAPI {
873
982
  constructor(txidHex: string, vout: number);
874
983
  getVOUT(): number;
@@ -962,6 +1071,20 @@ export declare class PublicKeyNAPI {
962
1071
  bytes(): Uint8Array;
963
1072
  static fromBytes(bytes: Uint8Array): PublicKeyNAPI;
964
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
+ }
965
1088
  export declare class ResourceVoteChoiceNAPI {
966
1089
  static TowardsIdentity(jsId: IdentifierLikeNAPI): ResourceVoteChoiceNAPI;
967
1090
  static Abstain(): ResourceVoteChoiceNAPI;
@@ -999,6 +1122,112 @@ export declare class SharedEncryptedNoteNAPI {
999
1122
  set recipientKeyIndex(index: number);
1000
1123
  set value(value: Uint8Array);
1001
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
+ }
1002
1231
  export declare class ShieldedTransferTransitionNAPI {
1003
1232
  constructor(jsActions: Array<SerializedActionNAPI>, jsValueBalance: BigIntString, jsAnchor: Uint8Array, jsProof: Uint8Array, jsBindingsSignature: Uint8Array);
1004
1233
  get actions(): Array<SerializedActionNAPI>;
@@ -1014,6 +1243,15 @@ export declare class ShieldedTransferTransitionNAPI {
1014
1243
  toStateTransition(): StateTransitionNAPI;
1015
1244
  static fromStateTransition(st: StateTransitionNAPI): ShieldedTransferTransitionNAPI;
1016
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
+ }
1017
1255
  export declare class ShieldedWithdrawalTransitionNAPI {
1018
1256
  constructor(jsActions: Array<SerializedActionNAPI>, jsUnshieldingAmount: BigIntString, jsAnchor: Uint8Array, jsProof: Uint8Array, jsBindingsSignature: Uint8Array, coreFeePerByte: number, jsPooling: DynamicValue, jsOutputScript: CoreScriptNAPI);
1019
1257
  get actions(): Array<SerializedActionNAPI>;
@@ -1079,6 +1317,17 @@ export declare class ShieldTransitionNAPI {
1079
1317
  toStateTransition(): StateTransitionNAPI;
1080
1318
  static fromStateTransition(st: StateTransitionNAPI): ShieldTransitionNAPI;
1081
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
+ }
1082
1331
  export declare class StateTransitionNAPI {
1083
1332
  sign(jsPrivateKey: DynamicValue | PrivateKeyNAPI, publicKey: IdentityPublicKeyNAPI): Uint8Array;
1084
1333
  signByPrivateKey(jsPrivateKey: DynamicValue | PrivateKeyNAPI, keyId?: number | undefined | null, jsKeyType?: DynamicValue | undefined | null): Uint8Array;
@@ -1563,6 +1812,10 @@ export declare class VerifiedIdentityWithAddressInfosNAPI {
1563
1812
  get identity(): PartialIdentityNAPI;
1564
1813
  get infos(): Array<PlatformAddressInfoNAPI>;
1565
1814
  }
1815
+ export declare class VerifiedMostRecentShieldedAnchorNAPI {
1816
+ rootHash: Uint8Array;
1817
+ anchor?: Uint8Array;
1818
+ }
1566
1819
  export declare class VerifiedPlatformAddressesInfosNAPI {
1567
1820
  rootHash: Uint8Array;
1568
1821
  get infos(): Array<PlatformAddressInfoNAPI>;
@@ -1573,6 +1826,37 @@ export declare class VerifiedPlatformAddressInfoNAPI {
1573
1826
  balance?: BigIntString;
1574
1827
  get address(): PlatformAddressNAPI | null;
1575
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;
1859
+ }
1576
1860
  export declare class VerifiedStateTransitionResultNAPI {
1577
1861
  rootHash: Uint8Array;
1578
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]>];
@@ -1787,6 +2071,12 @@ export declare enum NetworkNAPI {
1787
2071
  Devnet = 2,
1788
2072
  Regtest = 3
1789
2073
  }
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;
1790
2080
  export type PlatformAddressLikeNAPI = PlatformAddressNAPI | DynamicValue;
1791
2081
  export declare enum PlatformVersionNAPI {
1792
2082
  PLATFORM_V1 = 1,
@@ -1816,6 +2106,17 @@ export declare enum PurposeNAPI {
1816
2106
  VOTING = 5,
1817
2107
  OWNER = 6
1818
2108
  }
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>;
1819
2120
  export declare enum SecurityLevelNAPI {
1820
2121
  MASTER = 0,
1821
2122
  CRITICAL = 1,
@@ -1847,6 +2148,12 @@ export declare function verifyIdentityByUniqueKeyHashProof(proof: Uint8Array, js
1847
2148
  export declare function verifyIdentityContractNonceProof(proof: Uint8Array, jsIdentityId: IdentifierLikeNAPI, jsContractId: IdentifierLikeNAPI, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedIdentityContractNonceNAPI;
1848
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;
1849
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;
1850
2157
  export declare function verifySignatureDigest(signDigest: Uint8Array, signature: Uint8Array, pubkeyBytes: Uint8Array): boolean;
1851
2158
  export declare function verifyStateTransitionResult(proof: Uint8Array, stateTransition: StateTransitionNAPI, blockInfo: BlockInfoNAPI, jsKnownContractsArray: Array<DataContractNAPI>, jsPlatformVersion: DynamicValue): VerifiedStateTransitionResultNAPI;
1852
2159
  export declare function verifyTokenBalancesForIdentitiesProof(proof: Uint8Array, jsTokenId: IdentifierLikeNAPI, isProofSubset: boolean, jsIdentities: Array<IdentifierLikeNAPI>, jsPlatformVersion: DynamicValue): VerifiedTokenBalancesForIdentitiesNAPI;
@@ -1,3 +1,5 @@
1
+ export const orchardOvkFromSeed: any;
2
+ export const recoverNotes: any;
1
3
  export const verifyAddressesInfos: any;
2
4
  export const verifyAddressInfo: any;
3
5
  export const verifyContractProof: any;
@@ -10,6 +12,12 @@ export const verifyIdentityByUniqueKeyHashProof: any;
10
12
  export const verifyIdentityContractNonceProof: any;
11
13
  export const verifyIdentityKeysByIdentifierProof: any;
12
14
  export const verifyIdentityNonceProof: any;
15
+ export const verifyMostRecentShieldedAnchorProof: any;
16
+ export const verifyShieldedAnchorsProof: any;
17
+ export const verifyShieldedEncryptedNotesProof: any;
18
+ export const verifyShieldedNotesCountProof: any;
19
+ export const verifyShieldedNullifiersProof: any;
20
+ export const verifyShieldedPoolStateProof: any;
13
21
  export const verifySignatureDigest: any;
14
22
  export const verifyStateTransitionResult: any;
15
23
  export const verifyTokenBalancesForIdentitiesProof: any;
@@ -34,6 +42,7 @@ export const BlockBasedDistributionNAPI: any;
34
42
  export const BlockInfoNAPI: any;
35
43
  export const ChainAssetLockProofNAPI: any;
36
44
  export const ChangeControlRulesNAPI: any;
45
+ export const CommitmentTreeNAPI: any;
37
46
  export const ConsensusErrorNAPI: any;
38
47
  export const ContenderWithSerializedDocumentNAPI: any;
39
48
  export const ContestedDocumentVotePollQueryExecutionResultNAPI: any;
@@ -59,6 +68,7 @@ export const GroupNAPI: any;
59
68
  export const GroupStateTransitionInfoNAPI: any;
60
69
  export const IdentifierNAPI: any;
61
70
  export const IdentityCreateFromAddressesTransitionNAPI: any;
71
+ export const IdentityCreateFromShieldedPoolResultNAPI: any;
62
72
  export const IdentityCreateFromShieldedPoolTransitionNAPI: any;
63
73
  export const IdentityCreateTransitionNAPI: any;
64
74
  export const IdentityCreditTransferNAPI: any;
@@ -77,6 +87,10 @@ export const InputAddressNAPI: any;
77
87
  export const InstantAssetLockProofNAPI: any;
78
88
  export const InstantLockNAPI: any;
79
89
  export const MasternodeVoteTransitionNAPI: any;
90
+ export const MerklePathNAPI: any;
91
+ export const NoteNAPI: any;
92
+ export const OrchardAddressNAPI: any;
93
+ export const OrchardProverNAPI: any;
80
94
  export const OutPointNAPI: any;
81
95
  export const OutputAddressNAPI: any;
82
96
  export const OutputAddressNullableCreditsNAPI: any;
@@ -87,14 +101,19 @@ export const PrefundedVotingBalanceNAPI: any;
87
101
  export const PrivateEncryptedNoteNAPI: any;
88
102
  export const PrivateKeyNAPI: any;
89
103
  export const PublicKeyNAPI: any;
104
+ export const RecoveredNoteNAPI: any;
90
105
  export const ResourceVoteChoiceNAPI: any;
91
106
  export const RewardDistributionTypeNAPI: any;
92
107
  export const SerializedActionNAPI: any;
93
108
  export const SharedEncryptedNoteNAPI: any;
109
+ export const ShieldedBuilderNAPI: any;
110
+ export const ShieldedMemoNAPI: any;
94
111
  export const ShieldedTransferTransitionNAPI: any;
112
+ export const ShieldedWithdrawalResultNAPI: any;
95
113
  export const ShieldedWithdrawalTransitionNAPI: any;
96
114
  export const ShieldFromAssetLockTransitionNAPI: any;
97
115
  export const ShieldTransitionNAPI: any;
116
+ export const SpendableNoteNAPI: any;
98
117
  export const StateTransitionNAPI: any;
99
118
  export const StoredAssetLockInfoNAPI: any;
100
119
  export const TimeBasedDistributionNAPI: any;
@@ -146,8 +165,16 @@ export const VerifiedIdentityKeysByIdentifierNAPI: any;
146
165
  export const VerifiedIdentityNonceNAPI: any;
147
166
  export const VerifiedIdentityTokenInfoNAPI: any;
148
167
  export const VerifiedIdentityWithAddressInfosNAPI: any;
168
+ export const VerifiedMostRecentShieldedAnchorNAPI: any;
149
169
  export const VerifiedPlatformAddressesInfosNAPI: any;
150
170
  export const VerifiedPlatformAddressInfoNAPI: any;
171
+ export const VerifiedShieldedAnchorsNAPI: any;
172
+ export const VerifiedShieldedEncryptedNoteNAPI: any;
173
+ export const VerifiedShieldedEncryptedNotesNAPI: any;
174
+ export const VerifiedShieldedNotesCountNAPI: any;
175
+ export const VerifiedShieldedNullifierNAPI: any;
176
+ export const VerifiedShieldedNullifiersNAPI: any;
177
+ export const VerifiedShieldedPoolStateNAPI: any;
151
178
  export const VerifiedStateTransitionResultNAPI: any;
152
179
  export const VerifiedTokenBalancesForIdentitiesNAPI: any;
153
180
  export const VerifiedTokenContractInfoNAPI: any;
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable */
2
2
  import { requireNodeAddon } from 'react-native-node-api';
3
- export const { verifyAddressesInfos, verifyAddressInfo, verifyContractProof, verifyDocumentsProof, verifyEpochsInfoProof, verifyIdentifierByNonUniquePublicKeyHashProof, verifyIdentityBalanceProof, verifyIdentityByIdentifierProof, verifyIdentityByUniqueKeyHashProof, verifyIdentityContractNonceProof, verifyIdentityKeysByIdentifierProof, verifyIdentityNonceProof, verifySignatureDigest, verifyStateTransitionResult, verifyTokenBalancesForIdentitiesProof, verifyTokenContractInfoProof, verifyTokenDirectPurchasePrices, verifyTokensBalancesForIdentityProof, verifyTokenTotalSupplyProof, verifyTotalCreditsProof, verifyVotePollVoteStateProof, ActionTakerNAPI, AddressCreditWithdrawalTransitionNAPI, AddressFundingFromAssetLockTransitionNAPI, AddressFundsFeeStrategyStepNAPI, AddressFundsTransferTransitionNAPI, AddressWitnessNAPI, AssetLockProofNAPI, AssetLockValueNAPI, AuthorizedActionTakersNAPI, BatchedTransitionNAPI, BatchTransitionNAPI, BlockBasedDistributionNAPI, BlockInfoNAPI, ChainAssetLockProofNAPI, ChangeControlRulesNAPI, ConsensusErrorNAPI, ContenderWithSerializedDocumentNAPI, ContestedDocumentVotePollQueryExecutionResultNAPI, ContractBoundsNAPI, CoreScriptNAPI, DataContractCreateTransitionNAPI, DataContractNAPI, DataContractUpdateTransitionNAPI, DistributionFunctionNAPI, DocumentBaseTransitionNAPI, DocumentCreateTransitionNAPI, DocumentDeleteTransitionNAPI, DocumentNAPI, DocumentPurchaseTransitionNAPI, DocumentReplaceTransitionNAPI, DocumentTransferTransitionNAPI, DocumentTransitionNAPI, DocumentUpdatePriceTransitionNAPI, DynamicValue, EpochBasedDistributionNAPI, ExtendedEpochInfoNAPI, GroupNAPI, GroupStateTransitionInfoNAPI, IdentifierNAPI, IdentityCreateFromAddressesTransitionNAPI, IdentityCreateFromShieldedPoolTransitionNAPI, IdentityCreateTransitionNAPI, IdentityCreditTransferNAPI, IdentityCreditTransferToAddressesTransitionNAPI, IdentityCreditWithdrawalTransitionNAPI, IdentityNAPI, IdentityPublicKeyInCreationNAPI, IdentityPublicKeyNAPI, IdentityTokenBalanceNAPI, IdentityTokenBalanceOptionalNAPI, IdentityTokenInfoNAPI, IdentityTopUpFromAddressesTransitionNAPI, IdentityTopUpTransitionNAPI, IdentityUpdateTransitionNAPI, InputAddressNAPI, InstantAssetLockProofNAPI, InstantLockNAPI, MasternodeVoteTransitionNAPI, OutPointNAPI, OutputAddressNAPI, OutputAddressNullableCreditsNAPI, PartialIdentityNAPI, PlatformAddressInfoNAPI, PlatformAddressNAPI, PrefundedVotingBalanceNAPI, PrivateEncryptedNoteNAPI, PrivateKeyNAPI, PublicKeyNAPI, ResourceVoteChoiceNAPI, RewardDistributionTypeNAPI, SerializedActionNAPI, SharedEncryptedNoteNAPI, ShieldedTransferTransitionNAPI, ShieldedWithdrawalTransitionNAPI, ShieldFromAssetLockTransitionNAPI, ShieldTransitionNAPI, StateTransitionNAPI, StoredAssetLockInfoNAPI, TimeBasedDistributionNAPI, TokenBaseTransitionNAPI, TokenBurnTransitionNAPI, TokenClaimTransitionNAPI, TokenConfigUpdateTransitionNAPI, TokenConfigurationChangeItemNAPI, TokenConfigurationConventionNAPI, TokenConfigurationLocalizationNAPI, TokenConfigurationNAPI, TokenContractInfoNAPI, TokenDestroyFrozenFundsTransitionNAPI, TokenDirectPurchaseTransitionNAPI, TokenDistributionRecipientNAPI, TokenDistributionRulesNAPI, TokenEmergencyActionTransitionNAPI, TokenFreezeTransitionNAPI, TokenKeepsHistoryRulesNAPI, TokenMarketplaceRulesNAPI, TokenMintTransitionNAPI, TokenPaymentInfoNAPI, TokenPerpetualDistributionNAPI, TokenPreProgrammedDistributionNAPI, TokenPricingScheduleNAPI, TokenSetPriceForDirectPurchaseTransitionNAPI, TokenStatusNAPI, TokenTradeModeNAPI, TokenTransferTransitionNAPI, TokenTransitionNAPI, TokenUnFreezeTransitionNAPI, TotalSingleTokenBalanceNAPI, TransactionNAPI, TxInNAPI, TxOutNAPI, UnshieldTransitionNAPI, VerifiedBalanceTransferNAPI, VerifiedContractNAPI, VerifiedDocumentNAPI, VerifiedDocumentsNAPI, VerifiedEpochsInfoNAPI, VerifiedIdentifierByNonUniquePublicKeyHashNAPI, VerifiedIdentityBalanceRootHashNAPI, VerifiedIdentityByIdentifierNAPI, VerifiedIdentityByUniqueKeyHashNAPI, VerifiedIdentityContractNonceNAPI, VerifiedIdentityFullWithAddressInfosNAPI, VerifiedIdentityKeysByIdentifierNAPI, VerifiedIdentityNonceNAPI, VerifiedIdentityTokenInfoNAPI, VerifiedIdentityWithAddressInfosNAPI, VerifiedPlatformAddressesInfosNAPI, VerifiedPlatformAddressInfoNAPI, VerifiedStateTransitionResultNAPI, VerifiedTokenBalancesForIdentitiesNAPI, VerifiedTokenContractInfoNAPI, VerifiedTokenDirectPurchasePricesNAPI, VerifiedTokenGroupActionWithDocumentNAPI, VerifiedTokenGroupActionWithTokenBalanceNAPI, VerifiedTokenGroupActionWithTokenIdentityInfoNAPI, VerifiedTokenGroupActionWithTokenPricingScheduleNAPI, VerifiedTokenPricingScheduleNAPI, VerifiedTokensBalancesForIdentityNAPI, VerifiedTokenTotalSupplyNAPI, VerifiedTotalCreditsNAPI, VerifiedVoteStateNAPI, VoteNAPI, VotePollNAPI, WitnessNAPI, ActionGoalNAPI, AssetLockProofTypeNAPI, BatchTypeNAPI, GasFeesPaidByNAPI, GroupActionStatusNAPI, KeyTypeNAPI, NetworkNAPI, PlatformVersionNAPI, PoolingNAPI, PurposeNAPI, SecurityLevelNAPI, TokenDistributionTypeNAPI, TokenEmergencyActionNAPI, VoteStateResultTypeNAPI } = requireNodeAddon('./pshenmic-dpp--pshenmic_dpp');
3
+ export const { orchardOvkFromSeed, recoverNotes, verifyAddressesInfos, verifyAddressInfo, verifyContractProof, verifyDocumentsProof, verifyEpochsInfoProof, verifyIdentifierByNonUniquePublicKeyHashProof, verifyIdentityBalanceProof, verifyIdentityByIdentifierProof, verifyIdentityByUniqueKeyHashProof, verifyIdentityContractNonceProof, verifyIdentityKeysByIdentifierProof, verifyIdentityNonceProof, verifyMostRecentShieldedAnchorProof, verifyShieldedAnchorsProof, verifyShieldedEncryptedNotesProof, verifyShieldedNotesCountProof, verifyShieldedNullifiersProof, verifyShieldedPoolStateProof, verifySignatureDigest, verifyStateTransitionResult, verifyTokenBalancesForIdentitiesProof, verifyTokenContractInfoProof, verifyTokenDirectPurchasePrices, verifyTokensBalancesForIdentityProof, verifyTokenTotalSupplyProof, verifyTotalCreditsProof, verifyVotePollVoteStateProof, ActionTakerNAPI, AddressCreditWithdrawalTransitionNAPI, AddressFundingFromAssetLockTransitionNAPI, AddressFundsFeeStrategyStepNAPI, AddressFundsTransferTransitionNAPI, AddressWitnessNAPI, AssetLockProofNAPI, AssetLockValueNAPI, AuthorizedActionTakersNAPI, BatchedTransitionNAPI, BatchTransitionNAPI, BlockBasedDistributionNAPI, BlockInfoNAPI, ChainAssetLockProofNAPI, ChangeControlRulesNAPI, CommitmentTreeNAPI, ConsensusErrorNAPI, ContenderWithSerializedDocumentNAPI, ContestedDocumentVotePollQueryExecutionResultNAPI, ContractBoundsNAPI, CoreScriptNAPI, DataContractCreateTransitionNAPI, DataContractNAPI, DataContractUpdateTransitionNAPI, DistributionFunctionNAPI, DocumentBaseTransitionNAPI, DocumentCreateTransitionNAPI, DocumentDeleteTransitionNAPI, DocumentNAPI, DocumentPurchaseTransitionNAPI, DocumentReplaceTransitionNAPI, DocumentTransferTransitionNAPI, DocumentTransitionNAPI, DocumentUpdatePriceTransitionNAPI, DynamicValue, EpochBasedDistributionNAPI, ExtendedEpochInfoNAPI, GroupNAPI, GroupStateTransitionInfoNAPI, IdentifierNAPI, IdentityCreateFromAddressesTransitionNAPI, IdentityCreateFromShieldedPoolResultNAPI, IdentityCreateFromShieldedPoolTransitionNAPI, IdentityCreateTransitionNAPI, IdentityCreditTransferNAPI, IdentityCreditTransferToAddressesTransitionNAPI, IdentityCreditWithdrawalTransitionNAPI, IdentityNAPI, IdentityPublicKeyInCreationNAPI, IdentityPublicKeyNAPI, IdentityTokenBalanceNAPI, IdentityTokenBalanceOptionalNAPI, IdentityTokenInfoNAPI, IdentityTopUpFromAddressesTransitionNAPI, IdentityTopUpTransitionNAPI, IdentityUpdateTransitionNAPI, InputAddressNAPI, InstantAssetLockProofNAPI, InstantLockNAPI, MasternodeVoteTransitionNAPI, MerklePathNAPI, NoteNAPI, OrchardAddressNAPI, OrchardProverNAPI, OutPointNAPI, OutputAddressNAPI, OutputAddressNullableCreditsNAPI, PartialIdentityNAPI, PlatformAddressInfoNAPI, PlatformAddressNAPI, PrefundedVotingBalanceNAPI, PrivateEncryptedNoteNAPI, PrivateKeyNAPI, PublicKeyNAPI, RecoveredNoteNAPI, ResourceVoteChoiceNAPI, RewardDistributionTypeNAPI, SerializedActionNAPI, SharedEncryptedNoteNAPI, ShieldedBuilderNAPI, ShieldedMemoNAPI, ShieldedTransferTransitionNAPI, ShieldedWithdrawalResultNAPI, ShieldedWithdrawalTransitionNAPI, ShieldFromAssetLockTransitionNAPI, ShieldTransitionNAPI, SpendableNoteNAPI, StateTransitionNAPI, StoredAssetLockInfoNAPI, TimeBasedDistributionNAPI, TokenBaseTransitionNAPI, TokenBurnTransitionNAPI, TokenClaimTransitionNAPI, TokenConfigUpdateTransitionNAPI, TokenConfigurationChangeItemNAPI, TokenConfigurationConventionNAPI, TokenConfigurationLocalizationNAPI, TokenConfigurationNAPI, TokenContractInfoNAPI, TokenDestroyFrozenFundsTransitionNAPI, TokenDirectPurchaseTransitionNAPI, TokenDistributionRecipientNAPI, TokenDistributionRulesNAPI, TokenEmergencyActionTransitionNAPI, TokenFreezeTransitionNAPI, TokenKeepsHistoryRulesNAPI, TokenMarketplaceRulesNAPI, TokenMintTransitionNAPI, TokenPaymentInfoNAPI, TokenPerpetualDistributionNAPI, TokenPreProgrammedDistributionNAPI, TokenPricingScheduleNAPI, TokenSetPriceForDirectPurchaseTransitionNAPI, TokenStatusNAPI, TokenTradeModeNAPI, TokenTransferTransitionNAPI, TokenTransitionNAPI, TokenUnFreezeTransitionNAPI, TotalSingleTokenBalanceNAPI, TransactionNAPI, TxInNAPI, TxOutNAPI, UnshieldTransitionNAPI, VerifiedBalanceTransferNAPI, VerifiedContractNAPI, VerifiedDocumentNAPI, VerifiedDocumentsNAPI, VerifiedEpochsInfoNAPI, VerifiedIdentifierByNonUniquePublicKeyHashNAPI, VerifiedIdentityBalanceRootHashNAPI, VerifiedIdentityByIdentifierNAPI, VerifiedIdentityByUniqueKeyHashNAPI, VerifiedIdentityContractNonceNAPI, VerifiedIdentityFullWithAddressInfosNAPI, VerifiedIdentityKeysByIdentifierNAPI, VerifiedIdentityNonceNAPI, VerifiedIdentityTokenInfoNAPI, VerifiedIdentityWithAddressInfosNAPI, VerifiedMostRecentShieldedAnchorNAPI, VerifiedPlatformAddressesInfosNAPI, VerifiedPlatformAddressInfoNAPI, VerifiedShieldedAnchorsNAPI, VerifiedShieldedEncryptedNoteNAPI, VerifiedShieldedEncryptedNotesNAPI, VerifiedShieldedNotesCountNAPI, VerifiedShieldedNullifierNAPI, VerifiedShieldedNullifiersNAPI, VerifiedShieldedPoolStateNAPI, VerifiedStateTransitionResultNAPI, VerifiedTokenBalancesForIdentitiesNAPI, VerifiedTokenContractInfoNAPI, VerifiedTokenDirectPurchasePricesNAPI, VerifiedTokenGroupActionWithDocumentNAPI, VerifiedTokenGroupActionWithTokenBalanceNAPI, VerifiedTokenGroupActionWithTokenIdentityInfoNAPI, VerifiedTokenGroupActionWithTokenPricingScheduleNAPI, VerifiedTokenPricingScheduleNAPI, VerifiedTokensBalancesForIdentityNAPI, VerifiedTokenTotalSupplyNAPI, VerifiedTotalCreditsNAPI, VerifiedVoteStateNAPI, VoteNAPI, VotePollNAPI, WitnessNAPI, ActionGoalNAPI, AssetLockProofTypeNAPI, BatchTypeNAPI, GasFeesPaidByNAPI, GroupActionStatusNAPI, KeyTypeNAPI, NetworkNAPI, PlatformVersionNAPI, PoolingNAPI, PurposeNAPI, SecurityLevelNAPI, TokenDistributionTypeNAPI, TokenEmergencyActionNAPI, VoteStateResultTypeNAPI } = requireNodeAddon('./pshenmic-dpp--pshenmic_dpp');