df-hyperliquid-core 0.2.7

Hyperliquid SDK for Rust with full API parity: info, exchange, websockets, HIP-3, HIP-4, HyperEVM and CoreWriter. Exact decimals, the fastest websocket parsing of the SDKs benchmarked, the fastest signing with the optional secp256k1 feature, a pure-Rust default level with the fastest other Rust SDK, native and wasm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Which signatures the client recovers before posting, in either kind of build.

use super::*;

#[test]
fn a_wallet_is_always_recovered_and_a_local_key_only_in_a_debug_build() {
    for debug_build in [false, true] {
        assert!(recovers(false, debug_build), "a signer that does not vouch, debug {debug_build}");
    }
    assert!(recovers(true, true), "a local key in a debug build");
    assert!(!recovers(true, false), "a local key in a release build");
}