bytes32
bytes32(
value):Bytes32Value
Defined in: src/attr/values.ts:365
32 opaque bytes — a hash, a digest, an identifier from another system — indexed for equality.
Use key instead when the bytes are an Arkiv entity key: same wire width, but the distinct type makes the reference visible to readers and to the query language.
Parameters
Section titled “Parameters”32 bytes, as 0x hex or raw bytes.
`0x${string}` | Uint8Array<ArrayBufferLike>
Returns
Section titled “Returns”Throws
Section titled “Throws”If the value is not exactly 32 bytes.
Example
Section titled “Example”bytes32(keccak256(toBytes("hello")))