bundle

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	MARSHALED_TRANSACTIONS_COUNT_START  = 0
	MARSHALED_HASH_START                = MARSHALED_TRANSACTIONS_COUNT_END
	MARSHALED_BUNDLE_ESSENCE_HASH_START = MARSHALED_HASH_END
	MARSHALED_FLAGS_START               = MARSHALED_BUNDLE_ESSENCE_HASH_END
	MARSHALED_APPROVERS_HASHES_START    = MARSHALED_FLAGS_END

	MARSHALED_TRANSACTIONS_COUNT_END  = MARSHALED_TRANSACTIONS_COUNT_START + MARSHALED_TRANSACTIONS_COUNT_SIZE
	MARSHALED_HASH_END                = MARSHALED_HASH_START + MARSHALED_TRANSACTION_HASH_SIZE
	MARSHALED_BUNDLE_ESSENCE_HASH_END = MARSHALED_BUNDLE_ESSENCE_HASH_START + MARSHALED_BUNDLE_ESSENCE_HASH_SIZE
	MARSHALED_FLAGS_END               = MARSHALED_FLAGS_START + MARSHALED_FLAGS_SIZE

	MARSHALED_TRANSACTIONS_COUNT_SIZE  = 8
	MARSHALED_TRANSACTION_HASH_SIZE    = 81
	MARSHALED_BUNDLE_ESSENCE_HASH_SIZE = 81
	MARSHALED_FLAGS_SIZE               = 1
	MARSHALED_MIN_SIZE                 = MARSHALED_TRANSACTIONS_COUNT_SIZE + MARSHALED_TRANSACTION_HASH_SIZE + MARSHALED_BUNDLE_ESSENCE_HASH_SIZE + MARSHALED_FLAGS_SIZE
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

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

func New

func New(headTransactionHash trinary.Trytes) (result *Bundle)

func (*Bundle) GetBundleEssenceHash

func (bundle *Bundle) GetBundleEssenceHash() (result trinary.Trytes)

func (*Bundle) GetHash

func (bundle *Bundle) GetHash() (result trinary.Trytes)

func (*Bundle) GetModified

func (bundle *Bundle) GetModified() (result bool)

func (*Bundle) GetTransactionHashes

func (bundle *Bundle) GetTransactionHashes() (result []trinary.Trytes)

func (*Bundle) IsValueBundle

func (bundle *Bundle) IsValueBundle() (result bool)

func (*Bundle) Marshal

func (bundle *Bundle) Marshal() (result []byte)

func (*Bundle) SetBundleEssenceHash

func (bundle *Bundle) SetBundleEssenceHash(bundleEssenceHash trinary.Trytes)

func (*Bundle) SetHash

func (bundle *Bundle) SetHash(hash trinary.Trytes)

func (*Bundle) SetModified

func (bundle *Bundle) SetModified(modified bool)

func (*Bundle) SetTransactionHashes

func (bundle *Bundle) SetTransactionHashes(transactionHashes []trinary.Trytes)

func (*Bundle) SetValueBundle

func (bundle *Bundle) SetValueBundle(valueBundle bool)

func (*Bundle) Unmarshal

func (bundle *Bundle) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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