Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Aura: Custom Verification logic #1124

Closed
rphmeier opened this issue Nov 16, 2018 · 0 comments
Closed

Aura: Custom Verification logic #1124

rphmeier opened this issue Nov 16, 2018 · 0 comments
Milestone

Comments

@rphmeier
Copy link
Contributor

The AuraVerifier should be generic over some trait CustomVerifier (name subject to change).

Something similar to

trait CustomVerifier {
     // future that resolves when a block is verified or rejected. error type does not have to be `()`.
     type Verified: IntoFuture<Item=(),Error=()>;

     // verify a block under custom rules.
     fn verify(&self, block: &Block) -> Self::Verified;
}

The verification queue instance for now should just .wait() on the future returned.
A NullVerifier or other no-op implementation would be helpful.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant