origin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0, BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOriginTransaction

func NewOriginTransaction(par NewOriginTransactionParams) (*sctransaction.Transaction, error)

NewOriginTransaction - creates new origin transaction for the chain - origin tx approves empty state - origin tx mints chain token to the origin address. The address must be owned by the initial committee

func NewRootInitRequestTransaction added in v0.1.0

func NewRootInitRequestTransaction(par NewRootInitRequestTransactionParams) (*sctransaction.Transaction, error)

NewRootInitRequestTransaction is a first request to be sent to the uninitialized chain. At this moment it only is able to process this specific request the request contains minimum data needed to bootstrap the chain Transaction must be signed by the same address which created origin transaction

Types

type NewOriginTransactionParams

type NewOriginTransactionParams struct {
	OriginAddress             address.Address
	OriginatorSignatureScheme signaturescheme.SignatureScheme
	AllInputs                 map[valuetransaction.OutputID][]*balance.Balance
}

type NewRootInitRequestTransactionParams added in v0.1.0

type NewRootInitRequestTransactionParams struct {
	ChainID              coretypes.ChainID
	ChainColor           balance.Color
	ChainAddress         address.Address
	Description          string
	OwnerSignatureScheme signaturescheme.SignatureScheme
	AllInputs            map[valuetransaction.OutputID][]*balance.Balance
}

Jump to

Keyboard shortcuts

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