Documentation
¶
Index ¶
- func ActivateChainOnAccessNodes(apiHosts, peers []string, chainID *iscp.ChainID) error
- func CreateChainOrigin(node *goshimmer.Client, originator *ed25519.KeyPair, ...) (*iscp.ChainID, *ledgerstate.Transaction, error)
- func DeployChain(par CreateChainParams, stateControllerAddr ledgerstate.Address) (*iscp.ChainID, error)
- func DeployChainWithDKG(par CreateChainParams) (*iscp.ChainID, ledgerstate.Address, error)
- func RunDKG(apiHosts, peeringHosts []string, threshold, initiatorIndex uint16, ...) (ledgerstate.Address, error)
- type CreateChainParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivateChainOnAccessNodes ¶ added in v0.2.0
ActivateChainOnAccessNodes puts chain records into nodes and activates its TODO needs refactoring and optimization
func CreateChainOrigin ¶ added in v0.2.0
func CreateChainOrigin(node *goshimmer.Client, originator *ed25519.KeyPair, stateController ledgerstate.Address, dscr string) (*iscp.ChainID, *ledgerstate.Transaction, error)
CreateChainOrigin creates and confirms origin transaction of the chain and init request transaction to initialize state of it
func DeployChain ¶ added in v0.1.0
func DeployChain(par CreateChainParams, stateControllerAddr ledgerstate.Address) (*iscp.ChainID, error)
func DeployChainWithDKG ¶ added in v0.2.0
func DeployChainWithDKG(par CreateChainParams) (*iscp.ChainID, ledgerstate.Address, error)
DeployChainWithDKG performs all actions needed to deploy the chain TODO: [KP] Shouldn't that be in the client packages?
func RunDKG ¶ added in v0.2.0
func RunDKG(apiHosts, peeringHosts []string, threshold, initiatorIndex uint16, timeout ...time.Duration) (ledgerstate.Address, error)
RunDKG runs DKG procedure on specific Wasp hosts: generates new keys and puts corresponding committee records into nodes. In case of success, generated address is returned
Types ¶
type CreateChainParams ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.