TheDotflow / dotflow-ink

The repository containing the code of the Doflow ink! contracts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Limit the Address size

Szegoo opened this issue · comments

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;