def matches

ezx@1.11.0.0 · src/hub/hub.bend:28

import ezx@1.11.0.0/src/hub/hub.bend as Hub
import 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)

Uses (4)

Used by (3)