def sri
import ezx@1.11.0.0/src/sha/nar.bend as Narimport Base
import ezx@1.11.0.0/src/share/sha.bend as Sha
202# the SRI of some bytes: `sha256-` and the base64 of their digest
203def sri(+bytes: String) -> String:
204 sri.hex(Sha.raw(bytes))
import ezx@1.11.0.0/src/sha/nar.bend as Narimport Base
import ezx@1.11.0.0/src/share/sha.bend as Sha
202# the SRI of some bytes: `sha256-` and the base64 of their digest
203def sri(+bytes: String) -> String:
204 sri.hex(Sha.raw(bytes))