Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContractParameterTypeToByte ¶
func ContractParameterTypeToByte(c []ContractParameterType) []byte
Types ¶
type Contract ¶
type Contract struct { //the contract program code,which will be run on VM or specific envrionment Code []byte //the Contract Parameter type list // describe the number of contract program parameters and the parameter type Parameters []ContractParameterType //The program hash as contract address ProgramHash Uint168 //owner's pubkey hash indicate the owner of contract OwnerPubkeyHash Uint168 }
Contract include the program codes with parameters which can be executed on specific evnrioment
type ContractParameterType ¶
type ContractParameterType byte
parameter defined type.
const ( Signature ContractParameterType = iota Boolean Integer Hash160 Hash256 ByteArray )
func ByteToContractParameterType ¶
func ByteToContractParameterType(b []byte) []ContractParameterType
Click to show internal directories.
Click to hide internal directories.