devp2p / org.apache.tuweni.devp2p / ENRResponsePacket

ENRResponsePacket

class ENRResponsePacket : Packet (source)

Properties

enr

val enr: Bytes

requestHash

val requestHash: Bytes

Functions

encodeTo

fun encodeTo(dst: ByteBuffer): ByteBuffer

Companion Object Functions

create

fun create(keyPair: KeyPair, now: Long, requestHash: Bytes, enr: Bytes): ENRResponsePacket

decode

fun decode(payload: Bytes, hash: Bytes32, publicKey: PublicKey, signature: Signature): ENRResponsePacket