Vendor the two local Rust crates that build the lite backend artifact into third_party/silentdragonxlite/ (the qtlib C-ABI wrapper + the silentdragonxlitelib core, with proto/res and all the lite-send fixes), and point build-lite-backend-artifact.sh's default --backend-dir there, so the lite wallet builds without the upstream SilentDragonXLite repo. External build inputs are now only the Rust toolchain + git.dragonx.is + crates.io: - the 6 librustzcash git deps point at the git.dragonx.is/DragonX/librustzcash mirror (pinned rev acff1444), not git.hush.is; - the Sapling params are gitignored (not committed, no Git LFS) - the build fetches them from the git.dragonx.is/DragonX/zcash-params 'sapling-v1' release and verifies their SHA-256 before rust-embed bakes them in (ensure_sapling_params). For fully offline builds, cargo vendor into lib/vendor/ and add a vendored-sources redirect (vendor/ is gitignored; the script symlinks it into the prepared dir). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
30 lines
1.2 KiB
C
30 lines
1.2 KiB
C
#ifndef _hush_PAPER_RUST_H
|
|
#define _hush_PAPER_RUST_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern bool litelib_wallet_exists (const char* chain_name);
|
|
extern char * litelib_initialize_new (bool dangerous, const char* server);
|
|
extern char * litelib_initialize_new_from_phrase
|
|
(bool dangerous, const char* server, const char* seed,
|
|
unsigned long long birthday, unsigned long long number,
|
|
bool overwrite);
|
|
extern char * litelib_initialize_existing (bool dangerous,const char* server);
|
|
extern char * litelib_execute (const char* s, const char* args);
|
|
extern void litelib_rust_free_string (char* s);
|
|
extern char * blake3_PW (char* pw);
|
|
extern bool litelib_check_server_online (const char* server);
|
|
extern void litelib_shutdown (void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
// This is a function implemented in connection.cpp that will process a string response from
|
|
// the litelib and turn into into a QString in a memory-safe way.
|
|
QString litelib_process_response(char* resp);
|
|
|
|
#endif
|