def matches
import ezx@1.11.0.0/src/hub/hub.bend as Hubimport Base
import ezx@1.11.0.0/src/share/sha.bend as Sha
28# a body is the one that was asked for when its digest starts with the hash
29def matches(want: String, +body: String) -> Bool:
30 String.starts_with(Sha.hex(body), want)