client

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: Apache-2.0, BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateBundleHash

func CalculateBundleHash(transactions []*value_transaction.ValueTransaction) trinary.Trytes

Types

type Address

type Address struct {
	// contains filtered or unexported fields
}

func NewAddress

func NewAddress(trytes trinary.Trytes) *Address

func (*Address) GetPrivateKey

func (address *Address) GetPrivateKey() trinary.Trits

func (*Address) GetSecurityLevel

func (address *Address) GetSecurityLevel() consts.SecurityLevel

func (*Address) GetTrytes

func (address *Address) GetTrytes() trinary.Trytes

type Bundle

type Bundle struct {
	// contains filtered or unexported fields
}

func (*Bundle) GetEssenceHash

func (bundle *Bundle) GetEssenceHash() trinary.Trytes

func (*Bundle) GetTransactions

func (bundle *Bundle) GetTransactions() []*value_transaction.ValueTransaction

type BundleFactory

type BundleFactory struct {
	// contains filtered or unexported fields
}

func NewBundleFactory

func NewBundleFactory() *BundleFactory

func (*BundleFactory) AddInput

func (bundleFactory *BundleFactory) AddInput(address *Address, value int64)

func (*BundleFactory) AddOutput

func (bundleFactory *BundleFactory) AddOutput(address *Address, value int64, message ...string)

func (*BundleFactory) GenerateBundle

func (bundleFactory *BundleFactory) GenerateBundle(branchTransactionHash trinary.Trytes, trunkTransactionHash trinary.Trytes) *Bundle

type Seed

type Seed struct {
	// contains filtered or unexported fields
}

func NewSeed

func NewSeed(trytes trinary.Trytes, securityLevel consts.SecurityLevel) *Seed

func (*Seed) GetAddress

func (seed *Seed) GetAddress(index uint64) *Address

func (*Seed) GetSubSeed

func (seed *Seed) GetSubSeed(index uint64) trinary.Trits

Jump to

Keyboard shortcuts

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