Browser-compatible BLOB codec using typed arrays.
Encodes number[] vectors as Float32Array binary BLOBs and computes SHA-256 hashes via crypto.subtle (with a Node.js fallback for test environments where SubtleCrypto may not be available).
crypto.subtle
Encode a number[] vector to a binary BLOB value (Float32 little-endian).
Decode a BLOB column value back to number[].
SHA-256 hex digest. Async to support crypto.subtle in browsers.
Browser-compatible BLOB codec using typed arrays.
Encodes number[] vectors as Float32Array binary BLOBs and computes SHA-256 hashes via
crypto.subtle(with a Node.js fallback for test environments where SubtleCrypto may not be available).