You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define & implement the HeaderChain interface to cover current and future bridge pallets. Implement HeaderChain for PoA bridge pallet. Proposed interface:
fnimport_header_unsigned(Self::Header,Self::Extra);fnimport_headers_signed((Self::Header,Self::Extra)[]);fnbest_block() -> Self::Header;fnfinalized_block() -> Self::Header;fnearliest_block() -> Self::Header;// earliest useful for proofsfnby_number(Self::BlockNumber) -> Self::Header;fnby_hash(Self::BlockHash) -> Self::Header;fnverify_proof(Self::Proof) -> bool;// I imagine Proof to be an enum in case multiple things can be proven// (Transaction, Event, MultipleBlocks, ValidatorSet, etc)
Proof for each implementation will most likely be an enum containing different things that can be proven (think Transaction or Event, etc). For that reason it will probably be required to have traits that allow proof creation, like so:
So that for instance CurrencyExchange (see #205) can specify someting like this:
/// Blockchain is a trait that is required by CurrencyExchange currently.impl<T:HeaderChain>BlockchainforTwhereT::Proof:TransactionProof<T>,{
...
}
```
The text was updated successfully, but these errors were encountered:
Define & implement the
HeaderChain
interface to cover current and future bridge pallets. ImplementHeaderChain
for PoA bridge pallet. Proposed interface:Triggered hooks:
Proof
for each implementation will most likely be an enum containing different things that can be proven (thinkTransaction
orEvent
, etc). For that reason it will probably be required to have traits that allow proof creation, like so:So that for instance
CurrencyExchange
(see #205) can specify someting like this:The text was updated successfully, but these errors were encountered: