initialization

package
v0.0.0-...-b9de96a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestNet = NetworkInitialParams{
	Validators: []Validators{
		{
			PublicKey:  "a205dca2be8eee4c203777b95f96f3f9575ccab774048fa210e01ee6d8e54caf19a5755f6bb18e725dfb21bba4ac505d",
			PrivateKey: "3141207a29b1afb56e909c36be94df9f8089620f7036c4a0f276098d0c4ec091",
		},
		{
			PublicKey:  "99e439c6a52549e819d14adfe519f8c1b1e396da2db43315767350d5d5dd4ebdc9111c33a5180e508a0068b5edabdb20",
			PrivateKey: "51778ee47c769f4e90c7861f05eabc5375e0663c39dcac7744c1903debceebdd",
		},
		{
			PublicKey:  "94dacc7d766a1bc5e4b71cce8aa6b0525ac657bdc2adfd6afb45e0cacd5486222db12454ea91256cad4ba601eb4dd71d",
			PrivateKey: "186288f3a5bbf4364f3af57f12ec5b52c3e8edb03b189be1bae72d426043a023",
		},
		{
			PublicKey:  "b885d2d9ac8e6ca75d75c5f6c4e7f4b1ce0e81927c19906d9b1150cc4adfa98384558a59132b26ec5f1266c792ce84bb",
			PrivateKey: "450341f95d6a8bd84c9a4663979344a728c929f9be8400ec862a25e5858cc61e",
		},
		{
			PublicKey:  "a79b719b4caa5ff459ca139721d32ed949179b69e87d7ea511c790943ffd3dbaaacb0e834c0719025d8b9f2d157d9bf2",
			PrivateKey: "6ce8bf860bee54a9aa31802aaa29642a11bde5311a1abd5f434a543f136a05ee",
		},
		{
			PublicKey:  "8867730d514b07f736a860f2368c48d8150a2ee12f3d17a1966c90d36f38c9121d40d0fc1b1a677fe96cde50a5a23e84",
			PrivateKey: "6489957d69bc3071fe02984dda5d91a7a86922d35ecbd3651044ebfcbc328a3d",
		},
		{
			PublicKey:  "a7d8e29d79dd9ac6960d562fe0c015802e5f099a1ecf43927847b3c771f85a3230680ed6f91ba88f5b41f1715e49dbe6",
			PrivateKey: "6e6b0951872e75d9fd9377dcf83527789ffb411ad648a17b3f7285714d1064d7",
		},
		{
			PublicKey:  "af277ce68113105d4d3bf3154ec8abf77997bca74b8e2a2191d612412c1ab39d44838614b9ace15b7ac9d155c7308d47",
			PrivateKey: "0152b6ce68e4d28e6d2f598b5b4c83f94a54459f4d154a9c695807d3b985b4e1",
		},
	},
	PremineAddress:  "tlpub1wa3kk77yd96tzr3j93fjn4ecudjpz0p6r9vqkp",
	PremineMnemonic: "industry genius february annual leg autumn reveal unlock pluck rather sustain umbrella fever pattern steel bone dolphin strike water obtain equal bubble perfect claw",
	GenesisTime:     1610588600,
}

Functions

This section is empty.

Types

type InitializationParameters

type InitializationParameters struct {
	InitialValidators []ValidatorInitialization
	PremineAddress    string
	GenesisTime       time.Time
}

InitializationParameters are used in conjunction with ChainParams to generate the new genesis state.

type NetworkInitialParams

type NetworkInitialParams struct {
	Validators      []Validators `json:"validators"`
	PremineAddress  string       `json:"premine_address"`
	PremineMnemonic string       `json:"premine_mnemonic"`
	GenesisTime     int64        `json:"genesis_time"`
}

func LoadParams

func LoadParams(network string) (NetworkInitialParams, error)

LoadParams returns the initialization params required for the network specified.

type ValidatorInitialization

type ValidatorInitialization struct {
	PubKey       string `json:"pubkey"`
	PayeeAddress string `json:"withdraw_address"`
}

ValidatorInitialization is the parameters needed to initialize validators.

type Validators

type Validators struct {
	PublicKey  string `json:"public_key"`
	PrivateKey string `json:"private_key"`
}

Jump to

Keyboard shortcuts

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