runtime

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Application

func Application() byte

Application returns the Application trigger type

func CheckWitness

func CheckWitness(hash []byte) bool

CheckWitness verifies if the given hash is the invoker of the contract.

func Deserialize

func Deserialize(b []byte) interface{}

Deserialize an item from a bytearray.

func GetTime

func GetTime() int

GetTime returns the timestamp of the most recent block.

func GetTrigger

func GetTrigger() byte

GetTrigger returns the smart contract invoke trigger which can be either verification or application.

func Log

func Log(message string)

Log instucts the VM to log the given message.

func Notify

func Notify(arg ...interface{}) int

Notify an event to the VM.

func Serialize

func Serialize(item interface{}) []byte

Serialize serializes and item into a bytearray.

func Verification

func Verification() byte

Verification returns the Verification trigger type

Types

This section is empty.

Jump to

Keyboard shortcuts

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