account

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: GPL-3.0, GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Address    common.Address
	PrivateKey *ecdsa.PrivateKey
}

Account represents a atlas Account

func LoadAccount

func LoadAccount(path string, password string) (*Account, error)

func (*Account) BLSG1PublicKey added in v0.5.0

func (a *Account) BLSG1PublicKey() (bls.SerializedG1PublicKey, error)

BLSG1PublicKey returns the bls G1 public key

func (*Account) BLSProofOfPossession

func (a *Account) BLSProofOfPossession() ([]byte, error)

BLSProofOfPossession generates bls proof of possession

func (*Account) BLSPublicKey

func (a *Account) BLSPublicKey() (bls.SerializedPublicKey, error)

BLSPublicKey returns the bls public key

func (*Account) MustBLSProofOfPossession

func (a *Account) MustBLSProofOfPossession() []byte

MustBLSProofOfPossession variant of BLSProofOfPossession that panics on error

func (*Account) PrivateKeyHex

func (a *Account) PrivateKeyHex() string

PrivateKeyHex hex representation of the private key

func (*Account) PublicKey

func (a *Account) PublicKey() []byte

PublicKeyHex hex representation of the public key

func (*Account) String

func (a *Account) String() string

Jump to

Keyboard shortcuts

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