apilib

package
v0.4.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 17 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(authToken string, 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, error)

func DeployChainWithDKG added in v0.2.0

func DeployChainWithDKG(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(authToken string, 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

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

Jump to

Keyboard shortcuts

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