token

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MagicString = "tk"
	Magic       = slice.Bytes(MagicString)
	MinLen      = magicbytes.Len + sha256.Len
)

Functions

This section is empty.

Types

type OnionSkin

type OnionSkin sha256.Hash

A OnionSkin is a 32 byte value.

func NewOnionSkin

func NewOnionSkin() *OnionSkin

func (*OnionSkin) Decode

func (x *OnionSkin) Decode(b slice.Bytes, c *slice.Cursor) (e error)

func (*OnionSkin) Encode

func (x *OnionSkin) Encode(b slice.Bytes, c *slice.Cursor)

func (*OnionSkin) Inner

func (x *OnionSkin) Inner() types.Onion

func (*OnionSkin) Insert

func (x *OnionSkin) Insert(_ types.Onion)

func (*OnionSkin) Len

func (x *OnionSkin) Len() int

Jump to

Keyboard shortcuts

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