Skip to main content
Version: 2.4.0

Bytes

function Bytes(size: number): typeof Bytes

Defined in: lib/provable/wrapped-classes.ts:16

A provable type representing an array of bytes.

class Bytes32 extends Bytes(32) {}

let bytes = Bytes32.fromHex('deadbeef');

Parameters

size

number

Returns

typeof Bytes