tuweni / org.apache.tuweni.devp2p / EthereumNodeRecord / fromRLP

fromRLP

@JvmStatic fun fromRLP(rlp: Bytes): EthereumNodeRecord (source)

Creates an ENR from its serialized form as a RLP list

Parameters

rlp - the serialized form of the ENR

Exceptions

IllegalArgumentException - if the rlp bytes length is longer than 300 bytes

Return
the ENR

@JvmStatic fun fromRLP(reader: RLPReader): EthereumNodeRecord (source)
@JvmStatic fun fromRLP(reader: RLPReader, rlp: Bytes): EthereumNodeRecord (source)

Creates an ENR from its serialized form as a RLP list

Parameters

reader - the RLP reader

Exceptions

IllegalArgumentException - if the rlp bytes length is longer than 300 bytes

Return
the ENR