hooks_rs::api

Function util_raddr

Source
pub fn util_raddr(accid: &[u8; 20]) -> Result<[u8; 35]>
Expand description

Convert a 20 byte Account ID to an r-address of 25 and 35 characters in length.

The resulting buffer might not be fully populated because size of an r-address varies. The rest of the buffer will be filled with zeroes.