synaptic

package
v0.0.0-...-ee306bc Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// OpBytes - Synaptic byte array cells.
	OpBytes = OpOffset + 1
	// OpInt64 - Synaptic uint64 cells.
	OpInt64 = OpOffset + 2
	// OpUint64 - Synaptic uint64 cells.
	OpUint64 = OpOffset + 3
	// OpBigInt - Synaptic big int cells.
	OpBigInt = OpOffset + 4
	// OpString - Synaptic string cells.
	// Different from bytes only in debug situations.
	OpString = OpOffset + 5
)
View Source
const OpOffset cells.ID = 0x1c

OpOffset - Synaptic cells offset (28).

Variables

This section is empty.

Functions

func BigInt

func BigInt(num *big.Int) *cells.BinaryCell

BigInt - Creates new big int cell.

func Bytes

func Bytes(bytes []byte) *cells.BinaryCell

Bytes - Creates new bytes cell.

func MustParseBigInt

func MustParseBigInt(str string) *cells.BinaryCell

MustParseBigInt - Creates new big int cell from string.

func ParseBigInt

func ParseBigInt(str string) (_ *cells.BinaryCell, err error)

ParseBigInt - Creates new big int cell from hex string.

func String

func String(bytes string) *cells.BinaryCell

String - Creates new bytes cell.

func Uint64

func Uint64(num uint64) *cells.BinaryCell

Uint64 - Creates new uint64 cell.

Types

This section is empty.

Jump to

Keyboard shortcuts

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