def spec.hash
import ezx@1.11.0.0/src/lock/lock.bend as Lockimport Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K
44# the `0x` name an import carries, which is everything before its first `/`
45def spec.hash(spec: String) -> String:
46 K.word(String.split(spec, '/'), 0n)