Properties

Link copied to clipboard
open override val id: Int = 0

the id of the challenge, used by the client to identify what challenge solver to use.

Functions

Link copied to clipboard
open override fun encode(buffer: JagByteBuf)

A function to encode the given challenge into the byte buffer that the client expects. The role of encoding is moved over to the implementation as the server can provide its own implementations, should the client support any.

Link copied to clipboard
open override fun estimateMessageSize(): Int

Estimates the size of the message, allowing Netty to accurately track the number of bytes writing it would require.