staking

package
v1.10.8-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: BSD-3-Clause Imports: 13 Imported by: 38

Documentation

Index

Constants

View Source
const MaxRSAKeyBitLen = 8192

MaxRSAKeyBitLen is the maximum RSA key size in bits that we are willing to parse.

Variables

View Source
var ErrInvalidPublicKey = errors.New("invalid public key")

Functions

func CheckSignature added in v1.10.6

func CheckSignature(cert *x509.Certificate, message []byte, signature []byte) error

func InitNodeStakingKeyPair added in v1.4.5

func InitNodeStakingKeyPair(keyPath, certPath string) error

InitNodeStakingKeyPair generates a self-signed TLS key/cert pair to use in staking. The key and files will be placed at [keyPath] and [certPath], respectively. If there is already a file at [keyPath], returns nil.

func LoadTLSCertFromBytes added in v1.7.2

func LoadTLSCertFromBytes(keyBytes, certBytes []byte) (*tls.Certificate, error)

func LoadTLSCertFromFiles added in v1.7.2

func LoadTLSCertFromFiles(keyPath, certPath string) (*tls.Certificate, error)

func NewCertAndKeyBytes added in v1.5.3

func NewCertAndKeyBytes() ([]byte, []byte, error)

Creates a new staking private key / staking certificate pair. Returns the PEM byte representations of both.

func NewTLSCert added in v1.4.0

func NewTLSCert() (*tls.Certificate, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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