Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Magic is a magic File header constant. Magic uint32 = 0x3346454E // MaxScriptLength is the maximum allowed contract script length. MaxScriptLength = 512 * 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
File represents compiled contract file structure according to the NEF3 standard.
func FileFromBytes ¶
FileFromBytes returns NEF File deserialized from given bytes.
func (*File) CalculateChecksum ¶ added in v0.92.0
CalculateChecksum returns first 4 bytes of double-SHA256(Header) converted to uint32.
func (*File) DecodeBinary ¶
DecodeBinary implements io.Serializable interface.
func (*File) EncodeBinary ¶
EncodeBinary implements io.Serializable interface.
type Header ¶
Header represents File header.
func (*Header) DecodeBinary ¶
DecodeBinary implements io.Serializable interface.
func (*Header) EncodeBinary ¶
EncodeBinary implements io.Serializable interface.
Click to show internal directories.
Click to hide internal directories.