crypto

package
v0.2400.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Overview

Package crypto implements CometBFT specific cryptography.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadOrGeneratePrivVal

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

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

func PublicKeyFromCometBFT

func PublicKeyFromCometBFT(tk *cmted25519.PubKey) signature.PublicKey

PublicKeyFromCometBFT converts a CometBFT public key to a signature.PublicKey.

func PublicKeyToCometBFT

func PublicKeyToCometBFT(k *signature.PublicKey) cmted25519.PubKey

PublicKeyToCometBFT converts a signature.PublicKey to the CometBFT equivalent.

func SignerToCometBFT

func SignerToCometBFT(signer signature.Signer) crypto.PrivKey

SignerToCometBFT converts a signature.Signer to the CometBFT equivalent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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