e4c80a001c
Imported from CityOfZion/neo-storm (5065465e39fd2b308c487f49f75f517620139660).
30 lines
660 B
Go
30 lines
660 B
Go
package runtime
|
|
|
|
// CheckWitness verifies if the given hash is the invoker of the contract
|
|
func CheckWitness(hash []byte) bool {
|
|
return true
|
|
}
|
|
|
|
// Notify passes data to the VM
|
|
func Notify(arg interface{}) int {
|
|
return 0
|
|
}
|
|
|
|
// Log passes a message to the VM
|
|
func Log(message string) {}
|
|
|
|
// Application returns the Application trigger type
|
|
func Application() byte {
|
|
return 0x10
|
|
}
|
|
|
|
// Verification returns the Verification trigger type
|
|
func Verification() byte {
|
|
return 0x00
|
|
}
|
|
|
|
// GetTrigger return the current trigger type. The return in this function
|
|
// Doesn't really matter, this is just an interop placeholder
|
|
func GetTrigger() interface{} {
|
|
return 0
|
|
}
|