validatorpk

package
v1.1.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

View Source
const (
	FakePassword = "fakepassword"
)

Variables

View Source
var Types = struct {
	Secp256k1 uint8
}{
	Secp256k1: 0xc0,
}

Functions

This section is empty.

Types

type PubKey

type PubKey struct {
	Type uint8
	Raw  []byte
}

func FromBytes

func FromBytes(b []byte) (PubKey, error)

func FromString

func FromString(str string) (PubKey, error)

func (PubKey) Bytes

func (pk PubKey) Bytes() []byte

func (PubKey) Copy

func (pk PubKey) Copy() PubKey

func (PubKey) Empty

func (pk PubKey) Empty() bool

func (*PubKey) MarshalText

func (pk *PubKey) MarshalText() ([]byte, error)

MarshalText returns the hex representation of a.

func (PubKey) String

func (pk PubKey) String() string

func (*PubKey) UnmarshalText

func (pk *PubKey) UnmarshalText(input []byte) error

UnmarshalText parses a hash in hex syntax.

Jump to

Keyboard shortcuts

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