Documentation ¶
Index ¶
- func ActivateChainOnNodes(clientResolver multiclient.ClientResolver, apiHosts []string, ...) error
- func CreateChainOrigin(layer1Client l1connection.Client, originator *cryptolib.KeyPair, ...) (isc.ChainID, *iotago.Transaction, error)
- func DeployChain(clientResolver multiclient.ClientResolver, par CreateChainParams, ...) (isc.ChainID, error)
- func DeployChainWithDKG(clientResolver multiclient.ClientResolver, par CreateChainParams) (isc.ChainID, iotago.Address, error)
- func RunDKG(clientResolver multiclient.ClientResolver, apiHosts, peerPubKeys []string, ...) (iotago.Address, error)
- type CreateChainParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivateChainOnNodes ¶ added in v1.0.3
func ActivateChainOnNodes(clientResolver multiclient.ClientResolver, apiHosts []string, chainID isc.ChainID) error
ActivateChainOnNodes puts chain records into nodes and activates its
func CreateChainOrigin ¶ added in v0.2.0
func CreateChainOrigin( layer1Client l1connection.Client, originator *cryptolib.KeyPair, stateController iotago.Address, governanceController iotago.Address, dscr string, initParams dict.Dict, ) (isc.ChainID, *iotago.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(clientResolver multiclient.ClientResolver, par CreateChainParams, stateControllerAddr, govControllerAddr iotago.Address) (isc.ChainID, error)
func DeployChainWithDKG ¶ added in v0.2.0
func DeployChainWithDKG(clientResolver multiclient.ClientResolver, par CreateChainParams) (isc.ChainID, iotago.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(clientResolver multiclient.ClientResolver, apiHosts, peerPubKeys []string, threshold, initiatorIndex uint16, timeout ...time.Duration) (iotago.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.