mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-11 15:30:07 +00:00
cee1836183
Contract can have Hash160, Hash256, Signature etc. types which all map to a `[]byte` in Go. Having synonyms helps us to generate proper manifest file.
17 lines
435 B
Go
17 lines
435 B
Go
package interop
|
|
|
|
// Signature represents 64-byte signature.
|
|
type Signature []byte
|
|
|
|
// Hash160 represents 20-byte hash.
|
|
type Hash160 []byte
|
|
|
|
// Hash256 represents 32-byte hash.
|
|
type Hash256 []byte
|
|
|
|
// PublicKey represents marshalled ecdsa public key.
|
|
type PublicKey []byte
|
|
|
|
// Interface represents interop interface type which is needed for
|
|
// transparent handling of VM-internal types (e.g. storage.Context)
|
|
type Interface interface{}
|