Skip to content
  • Michal Kucharczyk's avatar
    `keyring`: remove `lazy_static` public keys hash maps (#2387) · f6548aee
    Michal Kucharczyk authored
    
    
    The `lazy_static` package does not work well in `no-std`: it requires
    `spin_no_std` feature, which also will propagate into `std` if enabled.
    This is not what we want.
    
    This PR removes public/private key hash-maps and replaces them with
    simple static byte arrays.
    
    `&T` versions of `AsRef/Deref/From` traits implementation were removed.
    
    Little const helper for converting hex strings into array during compile
    time was also added. (somewhat similar to _hex_literal_).
    
    ---------
    
    Co-authored-by: command-bot <>
    Co-authored-by: default avatarKoute <[email protected]>
    f6548aee