pubkey

package
v0.0.0-...-2db57a3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PUBLIC_KEY_SIZE            = 65
	COMPRESSED_PUBLIC_KEY_SIZE = 33
	SIGNATURE_SIZE             = 72
	COMPACT_SIGNATURE_SIZE     = 65
)

Variables

This section is empty.

Functions

func GetLen

func GetLen(c byte) int

func ValidSize

func ValidSize(pubKeyData []byte) bool

Types

type PubKey

type PubKey struct {
	// contains filtered or unexported fields
}

func GetCompressPubKey

func GetCompressPubKey(pubKeyBytes []byte) (*PubKey, error)

func GetUnCompressPubKey

func GetUnCompressPubKey(pubKeyBytes []byte) (*PubKey, error)

func (*PubKey) CalcKeyIDBytes

func (p *PubKey) CalcKeyIDBytes() ([]byte, error)

func (PubKey) GetPubKeyData

func (p PubKey) GetPubKeyData() ([]byte, error)

func (PubKey) Pack

func (p PubKey) Pack(writer io.Writer) error

func (*PubKey) SetPubKeyData

func (p *PubKey) SetPubKeyData(pubKeyBytes []byte) error

func (*PubKey) UnPack

func (p *PubKey) UnPack(reader io.Reader) error

Jump to

Keyboard shortcuts

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