wumbo

package module
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: 7 Imported by: 0

README

WUMBO: Warrant & Update Management Block Object Format

WUMBO is designed with security in mind. The authenticity, integrity, and origin of each WUMBO'd packet is cryptographically guaranteed, and that guarantee can be verified by any node in a G-Net network. Additionally, a WUMBO'd packet will fail verification if it's processed out of sequence, which protects against accidental misconfiguration.

WUMBO formatting prevents unauthorized modification of a G-Net network's configuration by linking the integrity of each control packet to the integrity of control packet before it. Additionally, the process of WUMBO-ing a packet requires the packet to be signed by an authorized network administrator. This creates a fully transparent change management process by creating a public, irrevocable link between a network administrator and the configuration changes that they implement.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalContent

func MarshalContent(blockContent any) ([]byte, error)

func UnmarshalContent

func UnmarshalContent(blockContent []byte, v any) error

Types

type Block

type Block struct {
	Header    *header.Header
	Content   []byte
	Signature []byte
}

func New

func New(precedingBlockId []byte, contentType uint16, data any, issuer any) (*Block, error)

func NewFromBytes

func NewFromBytes(blockData []byte) (*Block, error)

func (*Block) Digest

func (block *Block) Digest() []byte

func (*Block) ToBytes

func (block *Block) ToBytes() []byte

func (*Block) Validate

func (block *Block) Validate(issuer any) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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