apilib

package
v0.5.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

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(par CreateChainParams, stateControllerAddr, govControllerAddr iotago.Address) (isc.ChainID, *iotago.Transaction, error)

func RunDKG added in v0.2.0

func RunDKG(client *apiclient.APIClient, peerPubKeys []string, threshold 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

type CreateChainParams struct {
	Layer1Client         l1connection.Client
	CommitteeAPIHosts    []string
	N                    uint16
	T                    uint16
	OriginatorKeyPair    *cryptolib.KeyPair
	Description          string
	Textout              io.Writer
	Prefix               string
	InitParams           dict.Dict
	GovernanceController iotago.Address
}

Jump to

Keyboard shortcuts

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