devp2p / 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