mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
Check signatures as "Compact" in statement distribution (#5071)
* allow converting payloads _up_ * convert to superpayload in statement-distribution * Update primitives/src/v2/signed.rs Co-authored-by: Andronik <write@reusable.software> Co-authored-by: Andronik <write@reusable.software>
This commit is contained in:
committed by
GitHub
parent
22a7fad75f
commit
8a17c614f0
@@ -357,6 +357,14 @@ pub mod v1 {
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the signature from the statement.
|
||||
pub fn get_signature(&self) -> ValidatorSignature {
|
||||
match self {
|
||||
Self::Statement(_, statement) => statement.unchecked_signature().clone(),
|
||||
Self::LargeStatement(metadata) => metadata.signature.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Get contained relay parent.
|
||||
pub fn get_relay_parent(&self) -> Hash {
|
||||
match self {
|
||||
|
||||
Reference in New Issue
Block a user