signed wrapper (#1283)
* add signed wrapper, typedef SignedStatement * typedef SignedAvailabilityBitfield * implement Signed wrapper This is strictly an addition as of this commit; nothing is yet changed in existing behavior. * inline getters, remove review comment * move EncodeAs, Signed from node::primitives to primitives::parachain * Refactor SignedAvailabilityBitfield to use Signed * don't double-encode real payload This isn't an ideal solution, because it depends on the implementation details of how SCALE encodes tuples, but OTOH that behavior seems unlikely to change anytime soon. * fix build errors * cause the runtime to build properly with the new changes Not sure why cargo check didn't catch this earlier; oh well. * fix runtime tests and separate SignedStatement from SignedFullStatement * better explain why CompactStatement exists Co-authored-by:Robert Habermeier <rphmeier@gmail.com> Co-authored-by:
Robert Habermeier <rphmeier@gmail.com>
Showing
- polkadot/node/messages/src/lib.rs 3 additions, 3 deletionspolkadot/node/messages/src/lib.rs
- polkadot/node/primitives/src/lib.rs 21 additions, 49 deletionspolkadot/node/primitives/src/lib.rs
- polkadot/primitives/src/parachain.rs 115 additions, 74 deletionspolkadot/primitives/src/parachain.rs
- polkadot/roadmap/implementors-guide/src/node/backing/statement-distribution.md 3 additions, 3 deletions...ementors-guide/src/node/backing/statement-distribution.md
- polkadot/roadmap/implementors-guide/src/types/availability.md 2 additions, 8 deletions...adot/roadmap/implementors-guide/src/types/availability.md
- polkadot/roadmap/implementors-guide/src/types/backing.md 53 additions, 14 deletionspolkadot/roadmap/implementors-guide/src/types/backing.md
- polkadot/roadmap/implementors-guide/src/types/overseer-protocol.md 5 additions, 5 deletions...roadmap/implementors-guide/src/types/overseer-protocol.md
- polkadot/runtime/common/src/parachains.rs 1 addition, 1 deletionpolkadot/runtime/common/src/parachains.rs
- polkadot/runtime/common/src/registrar.rs 1 addition, 1 deletionpolkadot/runtime/common/src/registrar.rs
- polkadot/runtime/parachains/src/inclusion.rs 27 additions, 31 deletionspolkadot/runtime/parachains/src/inclusion.rs
- polkadot/statement-table/src/lib.rs 1 addition, 1 deletionpolkadot/statement-table/src/lib.rs
- polkadot/validation/src/lib.rs 1 addition, 1 deletionpolkadot/validation/src/lib.rs
Please register or sign in to comment