pubkey

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Len = 8

Variables

This section is empty.

Functions

func New

func New(pk ...B) (p *T, err E)

New creates a new pubkey prefix, if parameter is omitted, new one is allocated (for read) if more than one is given, only the first is used, and if the first one is not the correct hexadecimal length of 64, return error.

Types

type B

type B = []byte

type Ctx

type Ctx = context.T

type E

type E = error

type N

type N = int

type S

type S = string

type T

type T struct {
	Val []byte
}

func NewFromBytes

func NewFromBytes(pkb []byte) (p *T, err error)

func (*T) Len

func (p *T) Len() int

func (*T) Read

func (p *T) Read(buf *bytes.Buffer) (el keys.Element)

func (*T) Write

func (p *T) Write(buf *bytes.Buffer)

Jump to

Keyboard shortcuts

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