put

fun put(bytes: ByteArray): BobbinHash

Hashes bytes with SHA-256, stores them under the resulting BobbinHash, and returns the hash. Idempotent: if the same bytes are put again the store is unchanged and the same hash is returned.

The caller's bytes array is copied on entry; external mutation of the original does not affect stored content.