Documentation ¶
Index ¶
Constants ¶
View Source
const TYPESCRIPT_ADDRESS_OF = "scale_address_of" //nolint:revive
TYPESCRIPT_ADDRESS_OF is the name of the address_of function in the typescript guest runtime
View Source
const TYPESCRIPT_NEXT = "scale_next" //nolint:revive
TYPESCRIPT_NEXT is the name of the next function in the typescript guest runtime
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signature ¶
type Signature interface { Read(b []byte) error // Read reads the signature from the given byte slice Write() []byte // Write writes the signature into a byte slice and returns it Error(err error) []byte // Error writes the error into a byte slice and returns it Hash() string // Hash returns the SHA256 hash of the Signature }
Signature is an interface that must be implemented by all Scale Signatures for use with the Host. Guest implementations do not use this interface.
Click to show internal directories.
Click to hide internal directories.