encoding

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PubKeyToProto

func PubKeyToProto(k crypto.PubKey) (pc.PublicKey, error)

PubKeyToProto takes crypto.PubKey and transforms it to a protobuf Pubkey

Types

type PubKeyType added in v1.6.4

type PubKeyType uint8
const (
	Unknown PubKeyType = iota
	Ed25519
	Secp256k1
)

func PubKeyFromProto

func PubKeyFromProto(k *pc.PublicKey) (crypto.PubKey, PubKeyType, error)

PubKeyFromProto takes a protobuf Pubkey and transforms it to a crypto.Pubkey Return one more parameter to prevent of slowing down the whole procedure

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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