Bytes16 is a branded Uint8Array type representing exactly 16 bytes (128 bits). It provides strict size validation and type safety for fixed-size byte values.
import * as Bytes16 from 'tevm/primitives/Bytes/Bytes16';// Create from hexconst bytes = Bytes16('0x' + '12'.repeat(16));console.log(bytes.length); // 16// Create zero-filledconst zeros = Bytes16.zero();console.log(Bytes16.isZero(zeros)); // true// Size is strictly enforcedBytes16(new Uint8Array(15)); // Error: must be 16 bytes