mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
derive MaxEncodedLen for MultiSignature (#10765)
This commit is contained in:
committed by
GitHub
parent
0bfbf5a89f
commit
ba3255376e
@@ -187,7 +187,7 @@ impl<'de> Deserialize<'de> for Public {
|
||||
|
||||
/// A signature (a 512-bit value, plus 8 bits for recovery ID).
|
||||
#[cfg_attr(feature = "full_crypto", derive(Hash))]
|
||||
#[derive(Encode, Decode, PassByInner, TypeInfo, PartialEq, Eq)]
|
||||
#[derive(Encode, Decode, MaxEncodedLen, PassByInner, TypeInfo, PartialEq, Eq)]
|
||||
pub struct Signature(pub [u8; 65]);
|
||||
|
||||
impl sp_std::convert::TryFrom<&[u8]> for Signature {
|
||||
|
||||
@@ -212,7 +212,7 @@ impl<'de> Deserialize<'de> for Public {
|
||||
|
||||
/// A signature (a 512-bit value).
|
||||
#[cfg_attr(feature = "full_crypto", derive(Hash))]
|
||||
#[derive(Encode, Decode, PassByInner, TypeInfo, PartialEq, Eq)]
|
||||
#[derive(Encode, Decode, MaxEncodedLen, PassByInner, TypeInfo, PartialEq, Eq)]
|
||||
pub struct Signature(pub [u8; 64]);
|
||||
|
||||
impl sp_std::convert::TryFrom<&[u8]> for Signature {
|
||||
|
||||
@@ -212,7 +212,7 @@ impl<'de> Deserialize<'de> for Public {
|
||||
///
|
||||
/// Instead of importing it for the local module, alias it to be available as a public type
|
||||
#[cfg_attr(feature = "full_crypto", derive(Hash))]
|
||||
#[derive(Encode, Decode, PassByInner, TypeInfo, PartialEq, Eq)]
|
||||
#[derive(Encode, Decode, MaxEncodedLen, PassByInner, TypeInfo, PartialEq, Eq)]
|
||||
pub struct Signature(pub [u8; 64]);
|
||||
|
||||
impl sp_std::convert::TryFrom<&[u8]> for Signature {
|
||||
|
||||
Reference in New Issue
Block a user