Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Export ¶
type Export struct {
// ChainID provides cross chain replay protection
ChainID ids.ID `json:"chainID"`
// Nonce provides internal chain replay protection
Nonce uint64 `json:"nonce"`
MaxFee uint64 `json:"maxFee"`
PeerChainID ids.ID `json:"peerChainID"`
IsReturn bool `json:"isReturn"`
Amount uint64 `json:"amount"`
To ids.ShortID `json:"to"`
}
type Import ¶
type Import struct {
// Nonce provides internal chain replay protection
Nonce uint64 `json:"nonce"`
MaxFee uint64 `json:"maxFee"`
// Message includes the chainIDs to provide cross chain replay protection
Message []byte `json:"message"`
}
type Payload ¶
type Payload struct {
// Sender + Nonce provides replay protection
Sender ids.ShortID `json:"sender"`
Nonce uint64 `json:"nonce"`
IsReturn bool `json:"isReturn"`
Amount uint64 `json:"amount"`
To ids.ShortID `json:"to"`
// contains filtered or unexported fields
}
func NewPayload ¶
func ParsePayload ¶
type Transfer ¶
type Transfer struct {
// ChainID provides cross chain replay protection
ChainID ids.ID `json:"chainID"`
// Nonce provides internal chain replay protection
Nonce uint64 `json:"nonce"`
MaxFee uint64 `json:"maxFee"`
AssetID ids.ID `json:"assetID"`
Amount uint64 `json:"amount"`
To ids.ShortID `json:"to"`
}
type Tx ¶
type Tx struct {
Unsigned `json:"unsigned"`
Signature [secp256k1.SignatureLen]byte `json:"signature"`
}
Click to show internal directories.
Click to hide internal directories.