crypto

package
v0.0.0-...-9865f5a Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package crypto implementes tendermint specific cryptography.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadOrGeneratePrivVal

func LoadOrGeneratePrivVal(baseDir string, signer signature.Signer) (tmtypes.PrivValidator, error)

LoadOrGeneratePrivVal loads or generates a tendermint PrivValidator for an Oasis node signature signer.

func PublicKeyFromTendermint

func PublicKeyFromTendermint(tk *tmed.PubKeyEd25519) signature.PublicKey

PublicKeyFromTendermint converts a tendermint public key to a signature.PublicKey.

func PublicKeyToTendermint

func PublicKeyToTendermint(k *signature.PublicKey) tmed.PubKeyEd25519

PublicKeyToTendermint converts a signature.PublicKey to the tendermint equivalent.

func SignerToTendermint

func SignerToTendermint(signer signature.Signer) crypto.PrivKey

SignerToTendermint converts a signature.Signer to the tendermint equivalent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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