privatekey

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateKey

type PrivateKey struct {
	// contains filtered or unexported fields
}

PrivateKey represents a loaded ECDSA private key.

func FromBytes

func FromBytes(data []byte) (*PrivateKey, error)

FromBytes loads an ECDSA private key from PEM data.

func (*PrivateKey) Bytes

func (p *PrivateKey) Bytes() []byte

Bytes returns the bytes of the ECDSA private key.

func (*PrivateKey) PrivateKey

func (p *PrivateKey) PrivateKey() *ecdsa.PrivateKey

PrivateKey returns the ECDSA private key.

func (*PrivateKey) PublicKey

func (p *PrivateKey) PublicKey() *ecdsa.PublicKey

PublicKey returns the ECDSA public key.

Jump to

Keyboard shortcuts

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