approvers

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MARSHALED_APPROVERS_HASHES_COUNT_START = 0
	MARSHALED_APPROVERS_HASH_START         = MARSHALED_APPROVERS_HASHES_COUNT_END
	MARSHALED_APPROVERS_HASHES_START       = MARSHALED_APPROVERS_HASH_END

	MARSHALED_APPROVERS_HASHES_COUNT_END = MARSHALED_APPROVERS_HASHES_COUNT_START + MARSHALED_APPROVERS_HASHES_COUNT_SIZE
	MARSHALED_APPROVERS_HASH_END         = MARSHALED_APPROVERS_HASH_START + MARSHALED_APPROVERS_HASH_SIZE

	MARSHALED_APPROVERS_HASHES_COUNT_SIZE = 8
	MARSHALED_APPROVERS_HASH_SIZE         = 81
	MARSHALED_APPROVERS_MIN_SIZE          = MARSHALED_APPROVERS_HASHES_COUNT_SIZE + MARSHALED_APPROVERS_HASH_SIZE
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Approvers

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

func New

func New(hash trinary.Trytes) *Approvers

func (*Approvers) Add

func (approvers *Approvers) Add(transactionHash trinary.Trytes)

func (*Approvers) GetHash

func (approvers *Approvers) GetHash() (result trinary.Trytes)

func (*Approvers) GetHashes

func (approvers *Approvers) GetHashes() (result []trinary.Trytes)

func (*Approvers) GetModified

func (approvers *Approvers) GetModified() bool

func (*Approvers) Marshal

func (approvers *Approvers) Marshal() (result []byte)

func (*Approvers) Remove

func (approvers *Approvers) Remove(approverHash trinary.Trytes)

func (*Approvers) SetModified

func (approvers *Approvers) SetModified(modified bool)

func (*Approvers) Unmarshal

func (approvers *Approvers) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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