walletconnect-client 0.2.0

WASM library for walletconnect dApp connections
Documentation
1
2
3
4
5
6
7
8
9
10
use sha2::{Digest, Sha256};

pub trait MsgId {
    fn msg_id(&self) -> String;
}

pub fn get_message_id(message: &str) -> String {
    let msg_id = Sha256::new().chain_update(message.as_bytes()).finalize();
    format!("{msg_id:x}")
}