Messages
At its core, the Aleph Cloud network is a messaging system. All the data that transits on the network is represented by Aleph Cloud messages that represent all the possible operations on the network.
With Aleph Cloud messages, you can, for example:
- store files
- pin content on IPFS
- create decentralized programs
- set up key/value databases.
Users create, sign and transmit messages on the Aleph Cloud network. This can be achieved in a variety of ways:
- by posting a message to a Core Channel Node
- by broadcasting the message on the Aleph Cloud peer-to-peer network
- by using the Aleph Cloud smart contracts deployed on supported chains.
Message types
Actual content sent by regular users can currently be of five types:
- AGGREGATE: provide a decentralized key/value storage.
- FORGET: delete other messages (see below).
- POST: provide JSON documents (unique data points, events).
- PROGRAM: create and update programs running in VMs (ex: lambda functions).
- STORE
Using Messages
Messages can be created and sent using:
Example Message Flow
- A user creates a message using one of the SDKs or tools
- The message is signed with the user's private key
- The signed message is sent to a Core Channel Node (CCN)
- The CCN validates the message and broadcasts it to the network
- Other CCNs receive and process the message
- If the message requires computation, it is assigned to a Compute Resource Node (CRN)
- The result of the computation is made available through the network API
For more detailed information about using messages in your applications, see the Developer Hub section of the documentation.