Trait ark_scale::ArkScaleMaxEncodedLen
source · pub trait ArkScaleMaxEncodedLen {
// Required method
fn max_encoded_len() -> usize;
}Expand description
An orphan rules helper which provides
impl scale::MaxEncodedLen for ArkScale<T,WIRE>
We suggest wrapper types in preference to this trait becuase on-chain verifier code becomes substrate aware anyways whenever you choose curves, via a conditional ark-substrate dependence. Also wrappers can improve documentation and errors.
Required Methods§
sourcefn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.