tuweni / org.apache.tuweni.ssz / SSZ / encodeAddress

encodeAddress

static fun encodeAddress(address: Bytes!): Bytes! (source)

Encode a 20-byte address to a Bytes value.

Parameters

address - Bytes!: the address (must be exactly 20 bytes)

Exceptions

IllegalArgumentException - if address.size != 20

Return
Bytes!: the SSZ encoding in a Bytes value