def key.cmp
bend-kit-webhooks@0.11.0.1 · webhooks.bend:198
import bend-kit-webhooks@0.11.0.1/webhooks.bend as Webhooks
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
198def key.cmp(r: Result<&1, &1, Err, Bytes.Bytes>, +hex: Bool, +sigs: List<&2, String>) -> IO(Result<&1, &1, Err, Bool>):
199 match r:
200 case Fail{e}:
201 IO.pure(Result<&1, &1, Err, Bool>, Fail{e})
202 case Done{m}:
203 do IO<Result<&1, &1, Err, Bool>>:
204 ok : Bool <- any.sig(sigs, hex, Bytes.slice(m, 0, 4294967295))
205 return Done{ok}