crypto

package
v0.2202.12 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package crypto implements 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.PubKey) signature.PublicKey

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

func PublicKeyToTendermint

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

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