key

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAddress

func GenerateAddress(pubkey *ecdsa.PublicKey) []byte

GenerateAddress calculates the raw (not-encoded) address for a private key. Address is the raw, internally used identifier of an account In Aergo, the address is synonymous with the compressed public key (33 bytes).

func NewV1Strategy

func NewV1Strategy() *v1Strategy

Types

type KeyCryptoStrategy

type KeyCryptoStrategy interface {
	Encrypt(key *PrivateKey, passphrase string) ([]byte, error)
	Decrypt(encrypted []byte, passphrase string) (*PrivateKey, error)
}

type PrivateKey

type PrivateKey = btcec.PrivateKey

Jump to

Keyboard shortcuts

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