poanetwork / hbbft

An implementation of the paper "Honey Badger of BFT Protocols" in Rust. This is a modular library of consensus.
Other
357 stars 96 forks source link

Is there any solution to do some customized verification #412

Closed LuminousXLB closed 5 years ago

LuminousXLB commented 5 years ago

We want to verify the transaction proposed during the process of consensus. Is there anywhere that we can define customized logic for verification in hbbft?

Thanks

vkomenda commented 5 years ago

Can you clarify when you need transactions to be verified and by whom?

Transactions are input as Input::User and output in the contributions field of a Batch. So the time when you can verify transactions are before you input them or after HoneyBadger outputs them. In the latter case you would process the Batch in your application.

LuminousXLB commented 5 years ago

@vkomenda Thanks for your reply. I had thought that the verification should complete in the process of Binary Agreement. I'm going to do the verification before input it to HoneBadger.

Thanks