account

package
v0.0.0-...-7ece11e Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommitteePubkey

func BuildCommitteePubkey(minerPrivateKey string, stakerAddr string) (*incognitokey.CommitteePublicKey, error)

func GetShardIDFromPubkey

func GetShardIDFromPubkey(pk string, args ...interface{}) (int, error)

func IncPubkeyFromPaymentAddr

func IncPubkeyFromPaymentAddr(paymentAddr string) string

func ParseCommitteePubkey

func ParseCommitteePubkey(committeeKey string) (*incognitokey.CommitteePublicKey, error)

Types

type Account

type Account struct {
	Name                string
	PublicKey           string
	PrivateKey          string
	MiningKey           string
	MiningPubkey        string
	PaymentAddress      string
	Keyset              *incognitokey.KeySet
	SelfCommitteePubkey string
	MiningKeySet        *signatureschemes.MiningKey
}

func GenerateAccountByShard

func GenerateAccountByShard(shardID int, keyID int, seed string) (acc Account, err error)

func NewAccountFromCommitteePublicKey

func NewAccountFromCommitteePublicKey(committeePK string) (*Account, error)

func NewAccountFromPrivatekey

func NewAccountFromPrivatekey(privateKey string) (Account, error)

func (*Account) SetName

func (acc *Account) SetName(n string)

func (*Account) ShardID

func (acc *Account) ShardID(_numShard ...interface{}) int

Jump to

Keyboard shortcuts

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