|
17 | 17 | //! figure out how best to make networking happen/timers fire/things get written to disk/keys get
|
18 | 18 | //! generated/etc. This makes it a good candidate for tight integration into an existing wallet
|
19 | 19 | //! instead of having a rather-separate lightning appendage to a wallet.
|
| 20 | +//! |
| 21 | +//! Some of the features include: |
| 22 | +//! |
| 23 | +//! 1. Internal test utilities exposed to other repo crates: |
| 24 | +//! ```rust |
| 25 | +//! _test_utils = ["hex", "regex", "bitcoin/bitcoinconsensus"] |
| 26 | +//! ``` |
| 27 | +//! |
| 28 | +//! 2. Unlog messages superior at targeted level: |
| 29 | +//! ```rust |
| 30 | +//! max_level_off = [] |
| 31 | +//! max_level_error = [] |
| 32 | +//! max_level_warn = [] |
| 33 | +//! max_level_info = [] |
| 34 | +//! max_level_debug = [] |
| 35 | +//! max_level_trace = [] |
| 36 | +//! ``` |
| 37 | +//! |
| 38 | +//! 3. Allow signing of local transactions that may have been revoked or will be revoked, for functional testing (e.g. justice tx handling). This is unsafe to use in production because it may result in the counterparty publishing taking our funds. |
| 39 | +//! ```rust |
| 40 | +//! unsafe_revoked_tx_signing = [] |
| 41 | +//! _bench_unstable = [] |
| 42 | +//! |
| 43 | +//! no-std = ["hashbrown", "bitcoin/no-std", "core2/alloc"] |
| 44 | +//! std = ["bitcoin/std"] |
| 45 | +//! ``` |
| 46 | +//! |
| 47 | +//! 4. Generate low-r bitcoin signatures, which saves 1 byte in 50% of the cases: |
| 48 | +//! ```rust |
| 49 | +//! grind_signatures = [] |
| 50 | +//! |
| 51 | +//! default = ["std", "grind_signatures"] |
| 52 | +//! ``` |
| 53 | +
|
20 | 54 |
|
21 | 55 | #![cfg_attr(not(any(test, fuzzing, feature = "_test_utils")), deny(missing_docs))]
|
22 | 56 | #![cfg_attr(not(any(test, fuzzing, feature = "_test_utils")), forbid(unsafe_code))]
|
|
0 commit comments