Limit the Address size
Szegoo opened this issue · comments
Sergej Sakac commented
Currently Address
is a vector of bytes without a size limit:
pub type Address = Vec<u8>;
We should limit the size of data the Address
type can store. We should introduce a constant that will be used to limit the size:
/// Encrypted addresses should never exceed this size limit.
const ADDRESS_SIZE_LIMIT: u8 = 128;