lib

package
v0.0.0-...-10b9c98 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(assertion bool)

Assert that 'assertion' is true. If not exit program.

func ConvAddrStrToAddressType

func ConvAddrStrToAddressType(addrStr string) (addr addr.AddressType, err error)

func Exists

func Exists(name string) bool

Exists returns true if file exists. It will return true for directories also.

func Fopen

func Fopen(fn string, mode string) (file *os.File, err error)

Fopen opens the file name with mode having the same meaing as the C/C++ stdio.h Fopen.

func IsValidAddress

func IsValidAddress(addrStr string) bool

IsValidAddress returns true if the addresss is a validate looking address.

func RunSmartContract

func RunSmartContract()

RunSmartContract -- Implemented in Assignment 6

func SVarI

func SVarI(v interface{}) string

SVarI marshals and indents a data structure into JSON.

func ValidSignature

func ValidSignature(sig SignatureType, message string, from addr.AddressType) bool

Types

type SignatureType

type SignatureType string

Jump to

Keyboard shortcuts

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