Type Alias: Bytes
Bytes:
Uint8Array&object
Defined in: src/types/atproto.ts:208
Binary data wrapper.
Type declaration
__brand
readonly__brand:"Bytes"
Remarks
Bytes represent arbitrary binary data (e.g., cryptographic signatures, encrypted payloads, raw file contents).
Uses Uint8Array for efficient binary operations and compatibility with Web Crypto API, file I/O, and network protocols.
Example
const signature: Bytes = new Uint8Array([0x48, 0x65, 0x6c, 0x6c, 0x6f]) as Bytes;