gen_signature

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Generated by the generator, DO NOT modify manually

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 *uint64 `tlv:"0x02"`
	//+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 ReadT1

func ReadT1(reader enc.ParseReader) (*T1, enc.Wire, error)

func (*T1) Encode

func (v *T1) Encode(estLen uint, value []byte) (enc.Wire, enc.Wire)

type T1Encoder

type T1Encoder struct {
	C_length    uint
	Sig_wireIdx int
	Sig_estLen  uint
	// contains filtered or unexported fields
}

func (*T1Encoder) Encode

func (encoder *T1Encoder) Encode(value *T1) enc.Wire

func (*T1Encoder) EncodeInto

func (encoder *T1Encoder) EncodeInto(value *T1, wire enc.Wire)

func (*T1Encoder) Init

func (encoder *T1Encoder) Init(value *T1)

type T1ParsingContext

type T1ParsingContext struct {
	// contains filtered or unexported fields
}

func (*T1ParsingContext) Init

func (context *T1ParsingContext) Init()

func (*T1ParsingContext) Parse

func (context *T1ParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*T1, error)

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

func ReadT2

func ReadT2(reader enc.ParseReader, digestRequired bool) (*T2, enc.Wire, error)

func (*T2) Encode

func (v *T2) Encode(estLen uint, value []byte, needDigest bool) (enc.Wire, enc.Wire)

type T2Encoder

type T2Encoder struct {
	Name_length     uint
	Name_needDigest bool
	Name_wireIdx    int
	Name_pos        uint

	C_length    uint
	Sig_wireIdx int
	Sig_estLen  uint
	// contains filtered or unexported fields
}

func (*T2Encoder) Encode

func (encoder *T2Encoder) Encode(value *T2) enc.Wire

func (*T2Encoder) EncodeInto

func (encoder *T2Encoder) EncodeInto(value *T2, wire enc.Wire)

func (*T2Encoder) Init

func (encoder *T2Encoder) Init(value *T2)

type T2ParsingContext

type T2ParsingContext struct {
	Name_wireIdx int
	Name_pos     uint
	// contains filtered or unexported fields
}

func (*T2ParsingContext) Init

func (context *T2ParsingContext) Init()

func (*T2ParsingContext) Parse

func (context *T2ParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*T2, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL