Class: ProofPacket

net/packets~ProofPacket(root, key, proof)

Proof Packet

Constructor

new ProofPacket(root, key, proof)

Create a proof packet.

Parameters:
Name Type Description
root Buffer
key Buffer
proof UrkelProof
Properties:
Name Type Description
hash Hash
Source:

Extends

  • Packet

Methods

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

(private) read(br)

Inject properties from buffer reader.

Parameters:
Name Type Description
br BufferReader
Source:

write(bw)

Serialize proof packet to writer.

Parameters:
Name Type Description
bw BufferWriter
Source: