transaction

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	Signature signature.Signature
	From      string
	Seq       uint32
	Hash      hash.Hash
	Fee       uint64
	Type      uint8
	Data      []byte
}

Transaction .

func Deserialize

func Deserialize(arr []byte) *Transaction

Deserialize .

func New

func New(from string, seq uint32, hash hash.Hash, fee uint64, t uint8, data []byte) *Transaction

New new a transfer

func (*Transaction) Serialize

func (s *Transaction) Serialize() []byte

Serialize .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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