graffiti

package
v4.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHexGraffiti

func ParseHexGraffiti(rawGraffiti string) string

ParseHexGraffiti checks if a graffiti input is being represented in hex and converts it to ASCII if so

Types

type Graffiti

type Graffiti struct {
	Hash     [32]byte
	Default  string                               `yaml:"default,omitempty"`
	Ordered  []string                             `yaml:"ordered,omitempty"`
	Random   []string                             `yaml:"random,omitempty"`
	Specific map[primitives.ValidatorIndex]string `yaml:"specific,omitempty"`
}

Graffiti is a graffiti container.

func ParseGraffitiFile

func ParseGraffitiFile(f string) (*Graffiti, error)

ParseGraffitiFile parses the graffiti file and returns the graffiti struct.

Jump to

Keyboard shortcuts

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