blockchain

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageItem

type StorageItem struct {
	Value []byte
}

StorageItem value to store on blockchain

func (*StorageItem) Deserialize

func (si *StorageItem) Deserialize(reader *io.BinaryReader)

Deserialize deserializes from byte array

func (*StorageItem) Serialize

func (si *StorageItem) Serialize(writer *io.BinaryWriter)

Serialize serializes to byte array

type StorageKey

type StorageKey struct {
	Id  int
	Key []byte
}

StorageKey used to store StorageItem on blockchain

func (*StorageKey) Deserialize

func (sk *StorageKey) Deserialize(br *io.BinaryReader)

Deserialize deserializes from byte array

func (*StorageKey) Serialize

func (sk *StorageKey) Serialize(writer *io.BinaryWriter)

Serialize serializes to byte array

Jump to

Keyboard shortcuts

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