fiber-json-types 0.9.0-rc4

RPC JSON request/response types for the Fiber Network
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::serde_utils::Privkey;

#[test]
fn privkey_debug_is_redacted() {
    let raw = [7u8; 32];
    let raw_hex = hex::encode(raw);
    let debug = format!("{:?}", Privkey(raw));

    assert_eq!(debug, "Privkey(<redacted>)");
    assert!(!debug.contains(&raw_hex));
}