util

package
v0.0.0-...-d447769 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Uint160

type Uint160 [uint160Size]uint8

Uint160 is a 20 byte long unsigned integer.

func Uint160DecodeBytes

func Uint160DecodeBytes(b []byte) (u Uint160, err error)

Uint160DecodeBytes attempts to decode the given bytes into an Uint160.

func Uint160DecodeString

func Uint160DecodeString(s string) (u Uint160, err error)

Uint160DecodeString attempts to decode the given string into an Uint160.

func Uint160FromScript

func Uint160FromScript(script []byte) (u Uint160, err error)

Uint160FromScript returns a Uint160 type from a raw script.

func (Uint160) Bytes

func (u Uint160) Bytes() []byte

Bytes returns the byte slice representation of u.

func (Uint160) BytesReverse

func (u Uint160) BytesReverse() []byte

BytesReverse return a reversed byte representation of u.

func (Uint160) Equals

func (u Uint160) Equals(other Uint160) bool

Equals returns true if both Uint256 values are the same.

func (Uint160) MarshalJSON

func (u Uint160) MarshalJSON() ([]byte, error)

MarshalJSON implements the json marshaller interface.

func (Uint160) String

func (u Uint160) String() string

String implements the stringer interface.

func (*Uint160) UnmarshalJSON

func (u *Uint160) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON implements the json unmarshaller interface.

Jump to

Keyboard shortcuts

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