keys

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ECDSA_SECP256K1_PUBLIC_KEY_SIZE_BYTES  = 64
	ECDSA_SECP256K1_PRIVATE_KEY_SIZE_BYTES = 32
)
View Source
const (
	ED25519_PUBLIC_KEY_SIZE_BYTES  = 32
	ED25519_PRIVATE_KEY_SIZE_BYTES = 64
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EcdsaSecp256K1KeyPair added in v0.7.1

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

func GenerateEcdsaSecp256K1Key added in v0.7.1

func GenerateEcdsaSecp256K1Key() (*EcdsaSecp256K1KeyPair, error)

func NewEcdsaSecp256K1KeyPair added in v0.7.1

func NewEcdsaSecp256K1KeyPair(publicKey primitives.EcdsaSecp256K1PublicKey, privateKey primitives.EcdsaSecp256K1PrivateKey) *EcdsaSecp256K1KeyPair

func (*EcdsaSecp256K1KeyPair) PrivateKey added in v0.7.1

func (*EcdsaSecp256K1KeyPair) PrivateKeyHex added in v0.7.1

func (k *EcdsaSecp256K1KeyPair) PrivateKeyHex() string

func (*EcdsaSecp256K1KeyPair) PublicKey added in v0.7.1

func (*EcdsaSecp256K1KeyPair) PublicKeyHex added in v0.7.1

func (k *EcdsaSecp256K1KeyPair) PublicKeyHex() string

type Ed25519KeyPair

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

func GenerateEd25519Key

func GenerateEd25519Key() (*Ed25519KeyPair, error)

func NewEd25519KeyPair

func NewEd25519KeyPair(publicKey primitives.Ed25519PublicKey, privateKey primitives.Ed25519PrivateKey) *Ed25519KeyPair

func (*Ed25519KeyPair) PrivateKey

func (*Ed25519KeyPair) PrivateKeyHex

func (k *Ed25519KeyPair) PrivateKeyHex() string

func (*Ed25519KeyPair) PublicKey

func (*Ed25519KeyPair) PublicKeyHex

func (k *Ed25519KeyPair) PublicKeyHex() string

Jump to

Keyboard shortcuts

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