Documentation
¶
Index ¶
Constants ¶
const EventName = "AppEvent"
EventName is a common event name required by each application
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
Application ...
type LightClientProof ¶
type LightClientProof struct {
Message
}
LightClientProof is a wrapper around messages containing light client proof verification data
func NewLightClientProof ¶
func NewLightClientProof(message Message) LightClientProof
NewLightClientProof initializes a new instance of LightClientProof
type Message ¶
type Message struct { Contents []byte // RLP-encoded transaction data VerificationData interface{} // Data used to verify the transaction by the verification module }
Message contains RLP-encoded transaction data and transaction verification data
func NewMessage ¶
NewMessage initializes a new instance of Message
type Packet ¶
type Packet struct { AppID [32]byte Message interface{} }
Packet contains an application's unique identifier and a substrate-compatible message
type ThresholdSignature ¶
type ThresholdSignature struct {
Message
}
ThresholdSignature is a wrapper around messages containing threshold signature verification data
func NewThresholdSignature ¶
func NewThresholdSignature(message Message) ThresholdSignature
NewThresholdSignature initializes a new instance of ThresholdSignature
type Unverified ¶
type Unverified struct {
Message
}
Unverified is a wrapper around messages without verification data
func NewUnverified ¶
func NewUnverified(message Message) Unverified
NewUnverified initializes a new instance of Unverified