crypto

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicKey

type PublicKey struct {
	Path  string `json:"path"`
	Value string `json:"value"`
}

PublicKey is the decompressed BIP-32 public key used for encrypting and/or signing transactions in rooot™

func CompressedToPublicKey

func CompressedToPublicKey(path string, compressed string) (pk *PublicKey, err error)

CompressedToPublicKey ...

func ToPublicKey

func ToPublicKey(path string, decompressed string) *PublicKey

ToPublicKey ...

func (PublicKey) Compressed

func (pk PublicKey) Compressed() (comp []byte, err error)

Compressed ...

func (PublicKey) Decompressed

func (pk PublicKey) Decompressed() (dec []byte, err error)

Decompressed ...

Jump to

Keyboard shortcuts

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