- TG: @wonderlib
- @true_wondertan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ProposalData is arbitrary data that Proposers agree on. | |
// | |
// Alternative names: consensus.Data, Contract, or can remove alias altogether. | |
type ProposalData = []byte | |
// ValidatorFunc validates the ProposalData and reports back to the Concord | |
// Q: Verify vs Validate? Quick googling suggests that Validate suits better, but might be wrong. | |
type ValidatorFunc func(context.Context, ProposalData) (bool, error) | |
// ProposeFunc builds ProposalData. |
OlderNewer