def sri

ezx@1.11.0.0 · src/sha/nar.bend:202

import ezx@1.11.0.0/src/sha/nar.bend as Nar
import 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))

Uses (3)

Used by (1)