Skip to main content

VocabularyCheck

Type Alias VocabularyCheck 

Source
pub type VocabularyCheck = Box<dyn Fn(&Vocabulary) -> Result<(), String> + Send>;
Expand description

A test a vocabulary must pass before it is taken from the other side. It is given the vocabulary after its digest has been recomputed and matched; an Err is the reason it is refused. The protocol does no cryptography of its own: a caller that wants signatures checks them here.

Aliased Typeยง

pub struct VocabularyCheck(/* private fields */);