open class ZcashSdkCommon
Wrapper for all the constant values in the SDK. It is important that these values stay fixed for all users of the SDK. Otherwise, if individual wallet makers are using different values, it becomes easier to reduce privacy by segmenting the anonymity set of users, particularly as it relates to network requests.
<init> |
Wrapper for all the constant values in the SDK. It is important that these values stay fixed for all users of the SDK. Otherwise, if individual wallet makers are using different values, it becomes easier to reduce privacy by segmenting the anonymity set of users, particularly as it relates to network requests. ZcashSdkCommon() |
CLOUD_PARAM_DIR_URL |
The Url that is used by default in zcashd. We'll want to make this externally configurable, rather than baking it into the SDK but this will do for now, since we're using a cloudfront URL that already redirects. val CLOUD_PARAM_DIR_URL: String |
DB_CACHE_NAME |
val DB_CACHE_NAME: String |
DB_DATA_NAME |
val DB_DATA_NAME: String |
DEFAULT_DB_NAME_PREFIX |
open val DEFAULT_DB_NAME_PREFIX: String |
DEFAULT_LIGHTWALLETD_HOST |
The default host to use for lightwalletd. open val DEFAULT_LIGHTWALLETD_HOST: String |
DEFAULT_LIGHTWALLETD_PORT |
The default port to use for connecting to lightwalletd instances. open val DEFAULT_LIGHTWALLETD_PORT: Int |
DOWNLOAD_BATCH_SIZE |
Default size of batches of blocks to request from the compact block service. val DOWNLOAD_BATCH_SIZE: Int |
EXPIRY_OFFSET |
The amount of blocks ahead of the current height where new transactions are set to expire. This value is controlled by the rust backend but it is helpful to know what it is set to and should be kept in sync. val EXPIRY_OFFSET: Int |
MAX_BACKOFF_INTERVAL |
The default maximum amount of time to wait during retry backoff intervals. Failed loops will never wait longer than this before retyring. val MAX_BACKOFF_INTERVAL: Long |
MAX_MEMO_SIZE |
The maximum length of a memo. val MAX_MEMO_SIZE: Int |
MAX_REORG_SIZE |
The theoretical maximum number of blocks in a reorg, due to other bottlenecks in the protocol design. val MAX_REORG_SIZE: Int |
MINERS_FEE_ZATOSHI |
Miner's fee in zatoshi. val MINERS_FEE_ZATOSHI: Long |
OUTPUT_PARAM_FILE_NAME |
File name for the sapling output params val OUTPUT_PARAM_FILE_NAME: String |
POLL_INTERVAL |
Default amount of time, in milliseconds, to poll for new blocks. Typically, this should be about half the average block time. val POLL_INTERVAL: Long |
RETRIES |
Default attempts at retrying. val RETRIES: Int |
REWIND_DISTANCE |
Default number of blocks to rewind when a chain reorg is detected. This should be large enough to recover from the reorg but smaller than the theoretical max reorg size of 100. val REWIND_DISTANCE: Int |
SAPLING_ACTIVATION_HEIGHT |
The height of the first sapling block. When it comes to shielded transactions, we do not need to consider any blocks prior to this height, at all. open val SAPLING_ACTIVATION_HEIGHT: Int |
SCAN_BATCH_SIZE |
Default size of batches of blocks to scan via librustzcash. The smaller this number the more granular information can be provided about scan state. Unfortunately, it may also lead to a lot of overhead during scanning. val SCAN_BATCH_SIZE: Int |
SPEND_PARAM_FILE_NAME |
File name for the sappling spend params val SPEND_PARAM_FILE_NAME: String |
ZATOSHI_PER_ZEC |
The number of zatoshi that equal 1 ZEC. val ZATOSHI_PER_ZEC: Long |
ZcashSdk |
Wrapper for all the constant values in the SDK. It is important that these values stay fixed for all users of the SDK. Otherwise, if individual wallet makers are using different values, it becomes easier to reduce privacy by segmenting the anonymity set of users, particularly as it relates to network requests. object ZcashSdk : ZcashSdkCommon |