ssz / org.apache.tuweni.ssz / SSZ / encode

encode

static fun encode(fn: Consumer<SSZWriter>): Bytes (source)

Encode values to a Bytes value.

Parameters

fn - A consumer that will be provided with a SSZWriter that can consume values.

Return
The SSZ encoding in a Bytes value.