generate

package
v0.75.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 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,
) (*secrets.BinaryWallets, error)

func GenerateAvatarURL

func GenerateAvatarURL() (string, error)

func GenerateCountryCode

func GenerateCountryCode() (string, error)

func GenerateDeHistoryIdentity

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

func GenerateEthereumWallet

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

func GenerateName

func GenerateName() (string, error)

func GenerateNewEthereumWallet

func GenerateNewEthereumWallet() (*secrets.EthereumWalletPrivate, error)

func GeneratePassword

func GeneratePassword() (string, error)

func GenerateRandomWikiURL

func GenerateRandomWikiURL() (string, error)

func GenerateVegaNodeSecrets

func GenerateVegaNodeSecrets() (*secrets.VegaNodePrivate, error)

func GenerateVegaWallet

func GenerateVegaWallet() (*secrets.VegaWalletPrivate, error)

func ValidateEthereumAddressWithPrivateKey

func ValidateEthereumAddressWithPrivateKey(hexAddress string, hexPrivateKey string) error

func ValidateTendermintPublicKeyAndAddressWithPrivateKey

func ValidateTendermintPublicKeyAndAddressWithPrivateKey(publicKey string, address string, privateKey string) error

func ValidateVegawalletIdAndPubKeyAndPrivKeyWithRecoveryPhrase

func ValidateVegawalletIdAndPubKeyAndPrivKeyWithRecoveryPhrase(
	id string, publicKey string, privateKey string, recoveryPhrase string,
) error

Types

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)

Jump to

Keyboard shortcuts

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