deso 0.1.0

DeSo (BitClout) Transaction Signing, and Other Helpful Utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub trait ToPublicKey {
    fn to_pub_string(&self) -> String;
    fn to_pub_bytes(&self) -> Vec<u8>;
}
  
impl ToPublicKey for SeedHex {
    fn to_pub_string(&self) -> String {    
        hex::encode(self.public_key.serialize())
    }

    fn to_pub_bytes(&self) -> Vec<u8> {
        self.public_key.serialize().to_vec()
    }
}