header

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ByteCount int = 82

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	PrecedingBlockDigest []byte
	IssuerFingerprint    []byte
	CreationTime         time.Time
	BlockType            uint16
	ContentLength        uint32
	SignatureLength      uint32
}

func FromBytes

func FromBytes(data []byte) (*Header, error)

func New

func New(precedingBlockId []byte, blockType uint16, contentLength int, issuer any) *Header

func (*Header) ToBytes

func (header *Header) ToBytes() []byte

Jump to

Keyboard shortcuts

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