devp2p / org.apache.tuweni.devp2p.v5.topic / Ticket

Ticket

data class Ticket (source)

Constructors

<init>

Ticket(topic: Bytes, srcNodeId: Bytes, srcIp: InetAddress, requestTime: Long, waitTime: Long, cumTime: Long)

Properties

cumTime

val cumTime: Long

requestTime

val requestTime: Long

srcIp

val srcIp: InetAddress

srcNodeId

val srcNodeId: Bytes

topic

val topic: Bytes

waitTime

val waitTime: Long

Functions

encode

fun encode(): Bytes

encrypt

fun encrypt(key: Bytes): Bytes

validate

fun validate(srcNodeId: Bytes, srcIp: InetAddress, now: Long, topic: Bytes): Unit

Companion Object Functions

create

fun create(content: Bytes): Ticket

decrypt

fun decrypt(encrypted: Bytes, key: Bytes): Ticket