Documentation
¶
Overview ¶
Code generated by ndn tlv codegen DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T1 ¶
type T1 struct {
//+field:natural
H1 uint64 `tlv:"0x01"`
//+field:natural:optional
H2 optional.Optional[uint64] `tlv:"0x02"`
//+field:wire
C enc.Wire `tlv:"0x03"`
//+field:signature:sigCoverStart:sigCovered
Sig enc.Wire `tlv:"0x04"`
//+field:natural:optional
H3 optional.Optional[uint64] `tlv:"0x06"`
// contains filtered or unexported fields
}
+tlv-model:nocopy,private,ordered
func ReadT1 ¶
(AI GENERATED DESCRIPTION): Parses a T1 packet from the given WireView, returning the parsed T1 object and the signature‑covered portion of the packet.
type T1Encoder ¶
type T1ParsingContext ¶
type T1ParsingContext struct {
// contains filtered or unexported fields
}
func (*T1ParsingContext) Init ¶
func (context *T1ParsingContext) Init()
type T2 ¶
type T2 struct {
//+field:interestName:sigCovered
Name enc.Name `tlv:"0x01"`
//+field:wire
C enc.Wire `tlv:"0x03"`
//+field:signature:sigCoverStart:sigCovered
Sig enc.Wire `tlv:"0x04"`
// contains filtered or unexported fields
}
+tlv-model:nocopy,private,ordered
func ReadT2 ¶
(AI GENERATED DESCRIPTION): Parses a T2 packet from a wire view, optionally verifies that its last name component is the correct SHA‑256 digest of the signed data, and returns the parsed packet together with the signed portion of the packet.
type T2Encoder ¶
type T2ParsingContext ¶
type T2ParsingContext struct {
Name_wireIdx int
Name_pos uint
// contains filtered or unexported fields
}
func (*T2ParsingContext) Init ¶
func (context *T2ParsingContext) Init()
Click to show internal directories.
Click to hide internal directories.