pshenmic-dpp 2.0.0-dev.28 → 2.0.0-dev.29
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.
- package/dist/binaries/bindingsTypes.d.ts +140 -2
- package/dist/binaries/bindingsTypes.js +11 -0
- package/dist/binaries/native/aarch64-apple-darwin/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/aarch64-pc-windows-msvc/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/aarch64-unknown-linux-gnu/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/aarch64-unknown-linux-musl/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/x86_64-apple-darwin/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/x86_64-pc-windows-msvc/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/x86_64-unknown-linux-gnu/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/x86_64-unknown-linux-musl/pshenmic_dpp.node +0 -0
- package/dist/binaries/pshenmic_dpp.android.node/arm64-v8a/libpshenmic_dpp.so +0 -0
- package/dist/binaries/pshenmic_dpp.apple.node/ios-arm64-simulator/libpshenmic_dpp.framework/libpshenmic_dpp +0 -0
- package/dist/binaries/pshenmic_dpp.d.ts +4 -0
- package/dist/binaries/pshenmic_dpp.js +1 -1
- package/dist/binaries/wasm/wasmBytes.cjs +1 -1
- package/dist/binaries/wasm.d.ts +4 -0
- package/dist/binaries/wasm.js +1 -1
- package/dist/src/dpp/dpp.d.ts +3 -0
- package/dist/src/dpp/dpp.js +3 -0
- package/dist/src/dpp/enums.d.ts +1 -1
- package/dist/src/dpp/enums.js +1 -1
- package/dist/src/dpp/structs/Orchard/FullViewingKey.d.ts +27 -0
- package/dist/src/dpp/structs/Orchard/FullViewingKey.js +45 -0
- package/dist/src/dpp/structs/Orchard/IncomingViewingKey.d.ts +29 -0
- package/dist/src/dpp/structs/Orchard/IncomingViewingKey.js +44 -0
- package/dist/src/dpp/structs/Orchard/OrchardAddress.d.ts +14 -2
- package/dist/src/dpp/structs/Orchard/OrchardAddress.js +16 -2
- package/dist/src/dpp/structs/Orchard/ShieldedBuilder.d.ts +17 -0
- package/dist/src/dpp/structs/Orchard/ShieldedBuilder.js +18 -0
- package/dist/src/dpp/structs/Orchard/ShieldedOutput.d.ts +23 -0
- package/dist/src/dpp/structs/Orchard/ShieldedOutput.js +41 -0
- package/dist/src/dpp/types.d.ts +2 -1
- package/package.json +1 -1
- package/tests/unit/Shielded.spec.ts +176 -0
|
@@ -593,6 +593,46 @@ export declare class FinalizedEpochInfoNAPI {
|
|
|
593
593
|
get feeMultiplierPermille(): BigIntString;
|
|
594
594
|
get protocolVersion(): number;
|
|
595
595
|
}
|
|
596
|
+
/**
|
|
597
|
+
* An Orchard full viewing key: it can detect both incoming and outgoing notes
|
|
598
|
+
* and compute their nullifiers (so it sees the full balance), but cannot spend.
|
|
599
|
+
*/
|
|
600
|
+
export declare class FullViewingKeyNAPI {
|
|
601
|
+
/**
|
|
602
|
+
* Derives the full viewing key from a BIP-39 seed via ZIP-32
|
|
603
|
+
* (`m/32'/coin_type'/account'`). `coin_type` is SLIP-44 (Dash = 5,
|
|
604
|
+
* testnets = 1).
|
|
605
|
+
*/
|
|
606
|
+
static fromSeed(seed: Uint8Array, coinType: number, account: number): FullViewingKeyNAPI;
|
|
607
|
+
/**
|
|
608
|
+
* Parses a full viewing key from its 96-byte raw encoding
|
|
609
|
+
* (`ak || nk || rivk`).
|
|
610
|
+
*/
|
|
611
|
+
static fromBytes(bytes: Uint8Array): FullViewingKeyNAPI;
|
|
612
|
+
/** The 96-byte raw encoding of this key. */
|
|
613
|
+
bytes(): Uint8Array;
|
|
614
|
+
/**
|
|
615
|
+
* Derives the incoming viewing key for the given scope (default
|
|
616
|
+
* `External`) — the key that trial-decrypts notes sent to you.
|
|
617
|
+
*/
|
|
618
|
+
toIvk(jsScope?: DynamicValue | undefined | null): IncomingViewingKeyNAPI;
|
|
619
|
+
/**
|
|
620
|
+
* Derives the outgoing viewing key (32 bytes) for the given scope (default
|
|
621
|
+
* `External`) — the value to pass as `sender_ovk` when building a shield so
|
|
622
|
+
* the sender can later recover its own send.
|
|
623
|
+
*/
|
|
624
|
+
toOvk(jsScope?: DynamicValue | undefined | null): Uint8Array;
|
|
625
|
+
/**
|
|
626
|
+
* The payment address at `diversifier_index` (default 0) for the given
|
|
627
|
+
* scope (default `External`).
|
|
628
|
+
*/
|
|
629
|
+
address(diversifierIndex?: number | undefined | null, jsScope?: DynamicValue | undefined | null): OrchardAddressNAPI;
|
|
630
|
+
/**
|
|
631
|
+
* The scope this address was derived under, or `null` if it does not
|
|
632
|
+
* belong to this key.
|
|
633
|
+
*/
|
|
634
|
+
scopeForAddress(jsAddress: OrchardAddressNAPI): string | null;
|
|
635
|
+
}
|
|
596
636
|
export declare class GroupNAPI {
|
|
597
637
|
constructor(jsMembers: Array<[IdentifierLikeNAPI, number]>, requiredPower: number);
|
|
598
638
|
get members(): Array<[IdentifierNAPI, number]>;
|
|
@@ -1016,6 +1056,40 @@ export declare class IdentityUpdateTransitionNAPI {
|
|
|
1016
1056
|
toStateTransition(): StateTransitionNAPI;
|
|
1017
1057
|
static fromStateTransition(st: StateTransitionNAPI): IdentityUpdateTransitionNAPI;
|
|
1018
1058
|
}
|
|
1059
|
+
/**
|
|
1060
|
+
* An Orchard incoming viewing key: it detects and decrypts notes sent to you,
|
|
1061
|
+
* but cannot see your outgoing notes, tell when a note is spent, or spend it.
|
|
1062
|
+
* Safe to hand to a watch-only service such as a merchant terminal.
|
|
1063
|
+
*/
|
|
1064
|
+
export declare class IncomingViewingKeyNAPI {
|
|
1065
|
+
/**
|
|
1066
|
+
* Derives the incoming viewing key from a BIP-39 seed via ZIP-32
|
|
1067
|
+
* (`m/32'/coin_type'/account'`) for the given scope (default `External`).
|
|
1068
|
+
*/
|
|
1069
|
+
static fromSeed(seed: Uint8Array, coinType: number, account: number, jsScope?: DynamicValue | undefined | null): IncomingViewingKeyNAPI;
|
|
1070
|
+
/**
|
|
1071
|
+
* Derives the incoming viewing key from a full viewing key for the given
|
|
1072
|
+
* scope (default `External`).
|
|
1073
|
+
*/
|
|
1074
|
+
static fromFullViewingKey(jsFullViewingKey: FullViewingKeyNAPI, jsScope?: DynamicValue | undefined | null): IncomingViewingKeyNAPI;
|
|
1075
|
+
/**
|
|
1076
|
+
* Parses an incoming viewing key from its 64-byte raw encoding
|
|
1077
|
+
* (`dk || ivk`).
|
|
1078
|
+
*/
|
|
1079
|
+
static fromBytes(bytes: Uint8Array): IncomingViewingKeyNAPI;
|
|
1080
|
+
/** The 64-byte raw encoding of this key. */
|
|
1081
|
+
bytes(): Uint8Array;
|
|
1082
|
+
/**
|
|
1083
|
+
* The payment address at `diversifier_index` (default 0). The scope is
|
|
1084
|
+
* fixed by the key itself.
|
|
1085
|
+
*/
|
|
1086
|
+
address(diversifierIndex?: number | undefined | null): OrchardAddressNAPI;
|
|
1087
|
+
/**
|
|
1088
|
+
* The diversifier index `address` was derived at, or `null` if the address
|
|
1089
|
+
* was not derived from this key.
|
|
1090
|
+
*/
|
|
1091
|
+
diversifierIndex(jsAddress: OrchardAddressNAPI): number | null;
|
|
1092
|
+
}
|
|
1019
1093
|
export declare class InputAddressNAPI {
|
|
1020
1094
|
constructor(address: PlatformAddressLikeNAPI, nonce: number, credits: BigIntString);
|
|
1021
1095
|
get address(): PlatformAddressNAPI;
|
|
@@ -1117,9 +1191,20 @@ export declare class OrchardAddressNAPI {
|
|
|
1117
1191
|
/**
|
|
1118
1192
|
* Derives the Orchard payment address from a BIP-39 seed via ZIP-32
|
|
1119
1193
|
* (`m/32'/coin_type'/account'`). `diversifier_index` selects the diversified
|
|
1120
|
-
* address (default 0)
|
|
1194
|
+
* address (default 0), `scope` the ZIP-32 scope (default `External`).
|
|
1195
|
+
* `coin_type` is SLIP-44 (Dash = 5, testnets = 1).
|
|
1196
|
+
*/
|
|
1197
|
+
static fromSeed(seed: Uint8Array, coinType: number, account: number, diversifierIndex?: number | undefined | null, jsScope?: DynamicValue | undefined | null): OrchardAddressNAPI;
|
|
1198
|
+
/**
|
|
1199
|
+
* Derives the payment address at `diversifier_index` (default 0) from a
|
|
1200
|
+
* full viewing key, for the given `scope` (default `External`).
|
|
1121
1201
|
*/
|
|
1122
|
-
static
|
|
1202
|
+
static fromFullViewingKey(jsFullViewingKey: FullViewingKeyNAPI, diversifierIndex?: number | undefined | null, jsScope?: DynamicValue | undefined | null): OrchardAddressNAPI;
|
|
1203
|
+
/**
|
|
1204
|
+
* Derives the payment address at `diversifier_index` (default 0) from an
|
|
1205
|
+
* incoming viewing key. The scope is fixed by the key itself.
|
|
1206
|
+
*/
|
|
1207
|
+
static fromIncomingViewingKey(jsIncomingViewingKey: IncomingViewingKeyNAPI, diversifierIndex?: number | undefined | null): OrchardAddressNAPI;
|
|
1123
1208
|
bytes(): Uint8Array;
|
|
1124
1209
|
}
|
|
1125
1210
|
export declare class OrchardProverNAPI {
|
|
@@ -1341,6 +1426,31 @@ export declare class ShieldedBuilderNAPI {
|
|
|
1341
1426
|
* Returns the proven state transition plus the fixed shielded fee (credits).
|
|
1342
1427
|
*/
|
|
1343
1428
|
shieldedTransfer(jsSpends: Array<SpendableNoteNAPI>, jsRecipient: OrchardAddressNAPI, jsTransferAmount: BigIntString, jsChangeAddress: OrchardAddressNAPI, jsSeed: Uint8Array, jsCoinType: number, jsAccount: number, jsAnchor: Uint8Array, jsMemo: ShieldedMemoNAPI, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): Promise<ShieldedWithdrawalResultNAPI>;
|
|
1429
|
+
/**
|
|
1430
|
+
* Builds a `ShieldedTransfer` that pays many Orchard addresses at once
|
|
1431
|
+
* (shielded pool -> shielded pool).
|
|
1432
|
+
*
|
|
1433
|
+
* Same spend side as [`Self::shielded_transfer`] — one account's notes, one
|
|
1434
|
+
* anchor — but the output side is a list instead of a single recipient, so
|
|
1435
|
+
* one proof and one fee cover the whole fan-out. Consensus never sees the
|
|
1436
|
+
* output count (outputs are ciphertext inside the actions), so this needs no
|
|
1437
|
+
* protocol change; what it does see is `actions.len()`, which Orchard sets to
|
|
1438
|
+
* `max(spends, outputs + change, 2)` and prices the fee from.
|
|
1439
|
+
*
|
|
1440
|
+
* - `spends` - notes to spend with their Merkle paths
|
|
1441
|
+
* - `outputs` - recipients, each with its own amount and memo (at least one)
|
|
1442
|
+
* - `change_address` - Orchard address that receives the shielded change note;
|
|
1443
|
+
* it is always written, even at zero value, so the action count — and with
|
|
1444
|
+
* it the fee — is fixed before the change amount is known
|
|
1445
|
+
* - `seed` / `coin_type` / `account` - BIP-39 seed + ZIP-32 path for the spend authority
|
|
1446
|
+
* - `anchor` - 32-byte Sinsemilla root the Merkle paths are witnessed against
|
|
1447
|
+
* - `platform_version` - protocol version (defaults to the latest)
|
|
1448
|
+
*
|
|
1449
|
+
* Returns the proven state transition plus the fixed shielded fee (credits).
|
|
1450
|
+
* Errors before proving if the bundle would exceed the consensus action cap,
|
|
1451
|
+
* rather than after a multi-second proof the node would reject.
|
|
1452
|
+
*/
|
|
1453
|
+
shieldedTransferMulti(jsSpends: Array<SpendableNoteNAPI>, jsOutputs: Array<ShieldedOutputNAPI>, jsChangeAddress: OrchardAddressNAPI, jsSeed: Uint8Array, jsCoinType: number, jsAccount: number, jsAnchor: Uint8Array, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): Promise<ShieldedWithdrawalResultNAPI>;
|
|
1344
1454
|
/**
|
|
1345
1455
|
* Builds a `Shield` state transition (transparent platform addresses -> pool).
|
|
1346
1456
|
*
|
|
@@ -1386,6 +1496,24 @@ export declare class ShieldedMemoNAPI {
|
|
|
1386
1496
|
toString(): string;
|
|
1387
1497
|
toBytes(): Uint8Array;
|
|
1388
1498
|
}
|
|
1499
|
+
/**
|
|
1500
|
+
* One output of a multi-output shielded transfer: the Orchard address that
|
|
1501
|
+
* receives the note, its value in credits, and the memo carried inside the
|
|
1502
|
+
* note's encrypted ciphertext.
|
|
1503
|
+
*
|
|
1504
|
+
* The single-recipient builders take the recipient, amount and memo as three
|
|
1505
|
+
* flat arguments; fanning out to N recipients needs them grouped, so each
|
|
1506
|
+
* output carries its own memo rather than sharing one across the bundle.
|
|
1507
|
+
*/
|
|
1508
|
+
export declare class ShieldedOutputNAPI {
|
|
1509
|
+
constructor(jsAddress: OrchardAddressNAPI, jsAmount: BigIntString, jsMemo: ShieldedMemoNAPI);
|
|
1510
|
+
get address(): OrchardAddressNAPI;
|
|
1511
|
+
set address(jsAddress: OrchardAddressNAPI);
|
|
1512
|
+
get amount(): BigIntString;
|
|
1513
|
+
set amount(jsAmount: BigIntString);
|
|
1514
|
+
get memo(): ShieldedMemoNAPI;
|
|
1515
|
+
set memo(jsMemo: ShieldedMemoNAPI);
|
|
1516
|
+
}
|
|
1389
1517
|
export declare class ShieldedTransferTransitionNAPI {
|
|
1390
1518
|
constructor(jsActions: Array<SerializedActionNAPI>, jsValueBalance: BigIntString, jsAnchor: Uint8Array, jsProof: Uint8Array, jsBindingsSignature: Uint8Array);
|
|
1391
1519
|
get actions(): Array<SerializedActionNAPI>;
|
|
@@ -2384,6 +2512,16 @@ export declare enum PurposeNAPI {
|
|
|
2384
2512
|
* address) — everything needed to spend it.
|
|
2385
2513
|
*/
|
|
2386
2514
|
export declare function recoverNotes(jsActions: Array<SerializedActionNAPI>, jsSeed: Uint8Array, jsCoinType: number, jsAccount: number): Array<RecoveredNoteNAPI>;
|
|
2515
|
+
/**
|
|
2516
|
+
* The scope of an Orchard viewing key or address (ZIP-32).
|
|
2517
|
+
*
|
|
2518
|
+
* `External` addresses are the ones you hand out to receive funds; `Internal`
|
|
2519
|
+
* is the wallet's own scope, used for change and note management.
|
|
2520
|
+
*/
|
|
2521
|
+
export declare enum ScopeNAPI {
|
|
2522
|
+
External = 0,
|
|
2523
|
+
Internal = 1
|
|
2524
|
+
}
|
|
2387
2525
|
export declare enum SecurityLevelNAPI {
|
|
2388
2526
|
MASTER = 0,
|
|
2389
2527
|
CRITICAL = 1,
|
|
@@ -76,6 +76,17 @@ export var PurposeNAPI;
|
|
|
76
76
|
PurposeNAPI[PurposeNAPI["VOTING"] = 5] = "VOTING";
|
|
77
77
|
PurposeNAPI[PurposeNAPI["OWNER"] = 6] = "OWNER";
|
|
78
78
|
})(PurposeNAPI || (PurposeNAPI = {}));
|
|
79
|
+
/**
|
|
80
|
+
* The scope of an Orchard viewing key or address (ZIP-32).
|
|
81
|
+
*
|
|
82
|
+
* `External` addresses are the ones you hand out to receive funds; `Internal`
|
|
83
|
+
* is the wallet's own scope, used for change and note management.
|
|
84
|
+
*/
|
|
85
|
+
export var ScopeNAPI;
|
|
86
|
+
(function (ScopeNAPI) {
|
|
87
|
+
ScopeNAPI[ScopeNAPI["External"] = 0] = "External";
|
|
88
|
+
ScopeNAPI[ScopeNAPI["Internal"] = 1] = "Internal";
|
|
89
|
+
})(ScopeNAPI || (ScopeNAPI = {}));
|
|
79
90
|
export var SecurityLevelNAPI;
|
|
80
91
|
(function (SecurityLevelNAPI) {
|
|
81
92
|
SecurityLevelNAPI[SecurityLevelNAPI["MASTER"] = 0] = "MASTER";
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -75,6 +75,7 @@ export const DynamicValue: any;
|
|
|
75
75
|
export const EpochBasedDistributionNAPI: any;
|
|
76
76
|
export const ExtendedEpochInfoNAPI: any;
|
|
77
77
|
export const FinalizedEpochInfoNAPI: any;
|
|
78
|
+
export const FullViewingKeyNAPI: any;
|
|
78
79
|
export const GroupNAPI: any;
|
|
79
80
|
export const GroupStateTransitionInfoNAPI: any;
|
|
80
81
|
export const GroveAncestorNAPI: any;
|
|
@@ -98,6 +99,7 @@ export const IdentityTokenInfoNAPI: any;
|
|
|
98
99
|
export const IdentityTopUpFromAddressesTransitionNAPI: any;
|
|
99
100
|
export const IdentityTopUpTransitionNAPI: any;
|
|
100
101
|
export const IdentityUpdateTransitionNAPI: any;
|
|
102
|
+
export const IncomingViewingKeyNAPI: any;
|
|
101
103
|
export const InputAddressNAPI: any;
|
|
102
104
|
export const InstantAssetLockProofNAPI: any;
|
|
103
105
|
export const InstantLockNAPI: any;
|
|
@@ -123,6 +125,7 @@ export const SerializedActionNAPI: any;
|
|
|
123
125
|
export const SharedEncryptedNoteNAPI: any;
|
|
124
126
|
export const ShieldedBuilderNAPI: any;
|
|
125
127
|
export const ShieldedMemoNAPI: any;
|
|
128
|
+
export const ShieldedOutputNAPI: any;
|
|
126
129
|
export const ShieldedTransferTransitionNAPI: any;
|
|
127
130
|
export const ShieldedWithdrawalResultNAPI: any;
|
|
128
131
|
export const ShieldedWithdrawalTransitionNAPI: any;
|
|
@@ -221,6 +224,7 @@ export const NetworkNAPI: any;
|
|
|
221
224
|
export const PlatformVersionNAPI: any;
|
|
222
225
|
export const PoolingNAPI: any;
|
|
223
226
|
export const PurposeNAPI: any;
|
|
227
|
+
export const ScopeNAPI: any;
|
|
224
228
|
export const SecurityLevelNAPI: any;
|
|
225
229
|
export const TokenDistributionTypeNAPI: any;
|
|
226
230
|
export const TokenEmergencyActionNAPI: any;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import { requireNodeAddon } from 'react-native-node-api';
|
|
3
|
-
export const { orchardOvkFromSeed, recoverNotes, verifyAddressesBranchState, verifyAddressesInfos, verifyAddressesTrunkState, verifyAddressInfo, verifyContractProof, verifyDocumentsProof, verifyEpochsInfoProof, verifyFinalizedEpochInfosProof, verifyIdentifierByNonUniquePublicKeyHashProof, verifyIdentityBalanceProof, verifyIdentityByIdentifierProof, verifyIdentityByUniqueKeyHashProof, verifyIdentityContractNonceProof, verifyIdentityKeysByIdentifierProof, verifyIdentityNonceProof, verifyMostRecentShieldedAnchorProof, verifyRecentAddressBalanceChanges, verifyRecentCompactedAddressBalanceChanges, verifyShieldedAnchorsProof, verifyShieldedEncryptedNotesProof, verifyShieldedNotesCountProof, verifyShieldedNullifiersProof, verifyShieldedPoolStateProof, verifySignatureDigest, verifyStateTransitionResult, verifyTokenBalancesForIdentitiesProof, verifyTokenContractInfoProof, verifyTokenDirectPurchasePrices, verifyTokensBalancesForIdentityProof, verifyTokenTotalSupplyProof, verifyTotalCreditsProof, verifyVotePollVoteStateProof, ActionTakerNAPI, AddressBalanceChangeNAPI, AddressCreditWithdrawalTransitionNAPI, AddressFundingFromAssetLockTransitionNAPI, AddressFundsFeeStrategyStepNAPI, AddressFundsTransferTransitionNAPI, AddressWitnessNAPI, AssetLockProofNAPI, AssetLockValueNAPI, AuthorizedActionTakersNAPI, BatchedTransitionNAPI, BatchTransitionNAPI, BlockAddressBalanceChangesNAPI, BlockBasedDistributionNAPI, BlockHeightCreditNAPI, BlockInfoNAPI, ChainAssetLockProofNAPI, ChangeControlRulesNAPI, CommitmentTreeNAPI, CompactedAddressBalanceChangeNAPI, CompactedBlockAddressBalanceChangesNAPI, ConsensusErrorNAPI, ContenderWithSerializedDocumentNAPI, ContestedDocumentVotePollQueryExecutionResultNAPI, ContractBoundsNAPI, CoreScriptNAPI, DataContractCreateTransitionNAPI, DataContractNAPI, DataContractUpdateTransitionNAPI, DistributionFunctionNAPI, DocumentBaseTransitionNAPI, DocumentCreateTransitionNAPI, DocumentDeleteTransitionNAPI, DocumentNAPI, DocumentPurchaseTransitionNAPI, DocumentReplaceTransitionNAPI, DocumentTransferTransitionNAPI, DocumentTransitionNAPI, DocumentUpdatePriceTransitionNAPI, DynamicValue, EpochBasedDistributionNAPI, ExtendedEpochInfoNAPI, FinalizedEpochInfoNAPI, GroupNAPI, GroupStateTransitionInfoNAPI, GroveAncestorNAPI, GroveElementEntryNAPI, GroveElementNAPI, GroveLeafInfoNAPI, 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, VerifiedAddressesBranchStateNAPI, VerifiedAddressesTrunkStateNAPI, VerifiedBalanceTransferNAPI, VerifiedContractNAPI, VerifiedDocumentNAPI, VerifiedDocumentsNAPI, VerifiedEpochsInfoNAPI, VerifiedFinlizedEpochInfosNAPI, VerifiedIdentifierByNonUniquePublicKeyHashNAPI, VerifiedIdentityBalanceRootHashNAPI, VerifiedIdentityByIdentifierNAPI, VerifiedIdentityByUniqueKeyHashNAPI, VerifiedIdentityContractNonceNAPI, VerifiedIdentityFullWithAddressInfosNAPI, VerifiedIdentityKeysByIdentifierNAPI, VerifiedIdentityNonceNAPI, VerifiedIdentityTokenInfoNAPI, VerifiedIdentityWithAddressInfosNAPI, VerifiedMostRecentShieldedAnchorNAPI, VerifiedPlatformAddressesInfosNAPI, VerifiedPlatformAddressInfoNAPI, VerifiedRecentAddressBalanceChangesNAPI, VerifiedRecentCompactedAddressBalanceChangesNAPI, 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');
|
|
3
|
+
export const { orchardOvkFromSeed, recoverNotes, verifyAddressesBranchState, verifyAddressesInfos, verifyAddressesTrunkState, verifyAddressInfo, verifyContractProof, verifyDocumentsProof, verifyEpochsInfoProof, verifyFinalizedEpochInfosProof, verifyIdentifierByNonUniquePublicKeyHashProof, verifyIdentityBalanceProof, verifyIdentityByIdentifierProof, verifyIdentityByUniqueKeyHashProof, verifyIdentityContractNonceProof, verifyIdentityKeysByIdentifierProof, verifyIdentityNonceProof, verifyMostRecentShieldedAnchorProof, verifyRecentAddressBalanceChanges, verifyRecentCompactedAddressBalanceChanges, verifyShieldedAnchorsProof, verifyShieldedEncryptedNotesProof, verifyShieldedNotesCountProof, verifyShieldedNullifiersProof, verifyShieldedPoolStateProof, verifySignatureDigest, verifyStateTransitionResult, verifyTokenBalancesForIdentitiesProof, verifyTokenContractInfoProof, verifyTokenDirectPurchasePrices, verifyTokensBalancesForIdentityProof, verifyTokenTotalSupplyProof, verifyTotalCreditsProof, verifyVotePollVoteStateProof, ActionTakerNAPI, AddressBalanceChangeNAPI, AddressCreditWithdrawalTransitionNAPI, AddressFundingFromAssetLockTransitionNAPI, AddressFundsFeeStrategyStepNAPI, AddressFundsTransferTransitionNAPI, AddressWitnessNAPI, AssetLockProofNAPI, AssetLockValueNAPI, AuthorizedActionTakersNAPI, BatchedTransitionNAPI, BatchTransitionNAPI, BlockAddressBalanceChangesNAPI, BlockBasedDistributionNAPI, BlockHeightCreditNAPI, BlockInfoNAPI, ChainAssetLockProofNAPI, ChangeControlRulesNAPI, CommitmentTreeNAPI, CompactedAddressBalanceChangeNAPI, CompactedBlockAddressBalanceChangesNAPI, ConsensusErrorNAPI, ContenderWithSerializedDocumentNAPI, ContestedDocumentVotePollQueryExecutionResultNAPI, ContractBoundsNAPI, CoreScriptNAPI, DataContractCreateTransitionNAPI, DataContractNAPI, DataContractUpdateTransitionNAPI, DistributionFunctionNAPI, DocumentBaseTransitionNAPI, DocumentCreateTransitionNAPI, DocumentDeleteTransitionNAPI, DocumentNAPI, DocumentPurchaseTransitionNAPI, DocumentReplaceTransitionNAPI, DocumentTransferTransitionNAPI, DocumentTransitionNAPI, DocumentUpdatePriceTransitionNAPI, DynamicValue, EpochBasedDistributionNAPI, ExtendedEpochInfoNAPI, FinalizedEpochInfoNAPI, FullViewingKeyNAPI, GroupNAPI, GroupStateTransitionInfoNAPI, GroveAncestorNAPI, GroveElementEntryNAPI, GroveElementNAPI, GroveLeafInfoNAPI, IdentifierNAPI, IdentityCreateFromAddressesTransitionNAPI, IdentityCreateFromShieldedPoolResultNAPI, IdentityCreateFromShieldedPoolTransitionNAPI, IdentityCreateTransitionNAPI, IdentityCreditTransferNAPI, IdentityCreditTransferToAddressesTransitionNAPI, IdentityCreditWithdrawalTransitionNAPI, IdentityNAPI, IdentityPublicKeyInCreationNAPI, IdentityPublicKeyNAPI, IdentityTokenBalanceNAPI, IdentityTokenBalanceOptionalNAPI, IdentityTokenInfoNAPI, IdentityTopUpFromAddressesTransitionNAPI, IdentityTopUpTransitionNAPI, IdentityUpdateTransitionNAPI, IncomingViewingKeyNAPI, 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, ShieldedOutputNAPI, 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, VerifiedAddressesBranchStateNAPI, VerifiedAddressesTrunkStateNAPI, VerifiedBalanceTransferNAPI, VerifiedContractNAPI, VerifiedDocumentNAPI, VerifiedDocumentsNAPI, VerifiedEpochsInfoNAPI, VerifiedFinlizedEpochInfosNAPI, VerifiedIdentifierByNonUniquePublicKeyHashNAPI, VerifiedIdentityBalanceRootHashNAPI, VerifiedIdentityByIdentifierNAPI, VerifiedIdentityByUniqueKeyHashNAPI, VerifiedIdentityContractNonceNAPI, VerifiedIdentityFullWithAddressInfosNAPI, VerifiedIdentityKeysByIdentifierNAPI, VerifiedIdentityNonceNAPI, VerifiedIdentityTokenInfoNAPI, VerifiedIdentityWithAddressInfosNAPI, VerifiedMostRecentShieldedAnchorNAPI, VerifiedPlatformAddressesInfosNAPI, VerifiedPlatformAddressInfoNAPI, VerifiedRecentAddressBalanceChangesNAPI, VerifiedRecentCompactedAddressBalanceChangesNAPI, 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, ScopeNAPI, SecurityLevelNAPI, TokenDistributionTypeNAPI, TokenEmergencyActionNAPI, VoteStateResultTypeNAPI } = requireNodeAddon('./pshenmic-dpp--pshenmic_dpp');
|