![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include "utiltest.h"#include "key_io.h"#include "consensus/upgrades.h"#include "sapling/transaction_builder.h"#include <array>Go to the source code of this file.
Functions | |
| libzcash::SaplingExtendedSpendingKey | GetTestMasterSaplingSpendingKey () |
| CKey | CreateCkey (bool genNewKey) |
| CKey | AddTestCKeyToKeyStore (CBasicKeyStore &keyStore, bool genNewKey) |
| CKey | AddTestCKeyToWallet (CWallet &wallet, bool genNewKey) |
| TestSaplingNote | GetTestSaplingNote (const libzcash::SaplingPaymentAddress &pa, CAmount value) |
| Generate a dummy SaplingNote and a SaplingMerkleTree with that note's commitment. More... | |
| CWalletTx | GetValidSaplingReceive (const Consensus::Params &consensusParams, CBasicKeyStore &keyStoreFrom, std::vector< TransparentInput > vIn, std::vector< ShieldedDestination > vDest, const CWallet *pwalletIn) |
| One or many inputs from keyStoreFrom, one or many shielded outputs to pwalletIn (if not nullptr). More... | |
| CWalletTx | GetValidSaplingReceive (const Consensus::Params &consensusParams, CWallet &keyStoreFrom, CAmount inputAmount, std::vector< ShieldedDestination > vDest, bool genNewKey, const CWallet *pwalletIn) |
| Single dummy input, one or many shielded outputs. More... | |
| CWalletTx | GetValidSaplingReceive (const Consensus::Params &consensusParams, CWallet &keyStore, const libzcash::SaplingExtendedSpendingKey &sk, CAmount value, bool genNewKey, const CWallet *pwalletIn) |
| Single dummy input, single shielded output to sk default address. More... | |
| CScript | CreateDummyDestinationScript () |
| Generates a dummy destination script. More... | |
| CKey AddTestCKeyToKeyStore | ( | CBasicKeyStore & | keyStore, |
| bool | genNewKey | ||
| ) |
Definition at line 30 of file utiltest.cpp.
Definition at line 36 of file utiltest.cpp.
| CKey CreateCkey | ( | bool | genNewKey | ) |
Definition at line 22 of file utiltest.cpp.
| CScript CreateDummyDestinationScript | ( | ) |
Generates a dummy destination script.
Definition at line 112 of file utiltest.cpp.
| libzcash::SaplingExtendedSpendingKey GetTestMasterSaplingSpendingKey | ( | ) |
Definition at line 16 of file utiltest.cpp.
| TestSaplingNote GetTestSaplingNote | ( | const libzcash::SaplingPaymentAddress & | pa, |
| CAmount | value | ||
| ) |
Generate a dummy SaplingNote and a SaplingMerkleTree with that note's commitment.
Definition at line 41 of file utiltest.cpp.
| CWalletTx GetValidSaplingReceive | ( | const Consensus::Params & | consensusParams, |
| CBasicKeyStore & | keyStoreFrom, | ||
| std::vector< TransparentInput > | vIn, | ||
| std::vector< ShieldedDestination > | vDest, | ||
| const CWallet * | pwalletIn | ||
| ) |
One or many inputs from keyStoreFrom, one or many shielded outputs to pwalletIn (if not nullptr).
Definition at line 50 of file utiltest.cpp.
| CWalletTx GetValidSaplingReceive | ( | const Consensus::Params & | consensusParams, |
| CWallet & | keyStore, | ||
| const libzcash::SaplingExtendedSpendingKey & | sk, | ||
| CAmount | value, | ||
| bool | genNewKey, | ||
| const CWallet * | pwalletIn | ||
| ) |
Single dummy input, single shielded output to sk default address.
Definition at line 94 of file utiltest.cpp.
| CWalletTx GetValidSaplingReceive | ( | const Consensus::Params & | consensusParams, |
| CWallet & | keyStoreFrom, | ||
| CAmount | inputAmount, | ||
| std::vector< ShieldedDestination > | vDest, | ||
| bool | genNewKey, | ||
| const CWallet * | pwalletIn | ||
| ) |
Single dummy input, one or many shielded outputs.
Definition at line 77 of file utiltest.cpp.