MCPcopy Create free account
hub / github.com/blobcache/blobcache / handleKey

Function handleKey

src/bccore/handles.go:132–134  ·  view source on GitHub ↗

handleKey computes a map key from a handle.

(h blobcache.Handle)

Source from the content-addressed store, hash-verified

130
131// handleKey computes a map key from a handle.
132func handleKey(h blobcache.Handle) [32]byte {
133 return blake3.Sum256(slices.Concat(h.OID[:], h.Secret[:]))
134}

Callers 5

CreateMethod · 0.85
DropMethod · 0.85
ResolveMethod · 0.85
KeepAliveMethod · 0.85
InspectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected