generation

package
v0.76.8 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBinaryWallets

func CreateBinaryWallets(
	tendermintValidatorPubKey string,
	vegaWalletRecoveryPhrase string,
	ethereumPrivateKey string,
	walletBinaryPassphrase string,
) (*config.BinaryWallets, error)

func GenerateAvatarURL

func GenerateAvatarURL() (string, error)

func GenerateCountryCode

func GenerateCountryCode() (string, error)

func GenerateDeHistoryIdentity

func GenerateDeHistoryIdentity(seed string) (config.Identity, error)

func GenerateName

func GenerateName() (string, error)

func GenerateRandomWikiURL

func GenerateRandomWikiURL() (string, error)

func GenerateVegaNodeSecrets

func GenerateVegaNodeSecrets() (config.Node, error)

func Password

func Password() (string, error)

Types

type EthereumWalletPrivate

type EthereumWalletPrivate struct {
	Address    string `json:"address"`
	Mnemonic   string `json:"mnemonic"`
	Seed       string `json:"seed"`
	PrivateKey string `json:"private_key"`
}

func GenerateEthereumWallet

func GenerateEthereumWallet(
	mnemonic string,
	seed string,
	password string,
) (*EthereumWalletPrivate, error)

func GenerateNewEthereumWallet

func GenerateNewEthereumWallet() (*EthereumWalletPrivate, error)

type TendermintKeys

type TendermintKeys struct {
	Address    string `json:"address"`
	PublicKey  string `json:"public_key"`
	PrivateKey string `json:"private_key"`
}

func GenerateTendermintKeys

func GenerateTendermintKeys() TendermintKeys

type VegaNodeMetadata

type VegaNodeMetadata struct {
	Name      string `json:"name"`
	Country   string `json:"country"`
	InfoURL   string `json:"info_url"`
	AvatarURL string `json:"avatar_url"`
}

func GenerateNodeMetadata

func GenerateNodeMetadata() (*VegaNodeMetadata, error)

type VegaWalletPrivate

type VegaWalletPrivate struct {
	Id             string `json:"id"`
	PublicKey      string `json:"public_key"`
	PrivateKey     string `json:"private_key"`
	RecoveryPhrase string `json:"recovery_phrase"`
}

func GenerateVegaWallet

func GenerateVegaWallet() (*VegaWalletPrivate, error)

Jump to

Keyboard shortcuts

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