tx

package
v0.0.0-...-8e17a21 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-2.0 Imports: 6 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTransaction

func CreateTransaction(data, hash []byte, keyID int64) error

CreateTransaction creates transaction

func NewInternalTransaction

func NewInternalTransaction(smartTx SmartContract, privateKey []byte) (data, hash []byte, err error)

func NewTransaction

func NewTransaction(smartTx SmartContract, privateKey []byte) (data, hash []byte, err error)

Types

type Header struct {
	ID          int
	Time        int64
	EcosystemID int64
	KeyID       int64
	NetworkID   int64
	PublicKey   []byte
}

Header is contain header data

type SmartContract

type SmartContract struct {
	Header
	TokenEcosystem int64
	MaxSum         string
	PayOver        string
	SignedBy       int64
	Params         map[string]interface{}
}

SmartContract is storing smart contract data

Jump to

Keyboard shortcuts

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