admissionGranted method
Whether a peer's presentation, answering the challenge whose nonce
this gate issued (admissionChallenge), admits for epoch at now.
Never throws.
Implementation
bool admissionGranted(
int epoch,
Uint8List nonce,
Uint8List presentation,
int now,
) => _scoped([nonce, presentation], (p) {
final f = _bc.lib
.fn<_AdmGrantC>('aviary_admission_granted')
.asFunction<_AdmGrantD>();
return f(_h, epoch, p[0], nonce.length, p[1], presentation.length, now) ==
1;
});