Class: ProofPacket

net/packets~ProofPacket(rootopt, keyopt, proofopt)

Proof Packet

Constructor

new ProofPacket(rootopt, keyopt, proofopt)

Create a proof packet.

Parameters:
Name Type Attributes Description
root Buffer <optional>
key Buffer <optional>
proof UrkelProof <optional>
Properties:
Name Type Description
hash Hash
Source:

Extends

  • Packet

Methods

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

read(br)

Inject properties from buffer reader.

Parameters:
Name Type Description
br bio.BufferReader
Source:

write(bw)

Serialize proof packet to writer.

Parameters:
Name Type Description
bw BufioWriter
Source: