def checked

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/blake/blake3.bend:277

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/blake/blake3.bend as Blake3
import Base

277def checked(valid: Bool, a: Array<U32>, +length: Nat) -> Maybe<&1,Array<U32>>:
278  match valid:
279    case False{}: None{}
280    case True{}: Some{digest(hash(a,length))}

Uses (7)

Used by (3)