- Authors: Sam Curren
- Status: ACCEPTED
- Since: 2019-08-06
- Status Note:
- Supersedes: Indy 0033
- Start Date: 2019-01-16
- Tags: feature, protocol, test-anomaly
The BasicMessage protocol describes a stateless, easy to support user message protocol. It has a single message type used to communicate.
It is a useful feature to be able to communicate human written messages. BasicMessage is the most basic form of this written message communication, explicitly excluding advanced features to make implementation easier.
There are two roles in this protocol: sender and receiver. It is anticipated that both roles are supported by agents that provide an interface for humans, but it is possible for an agent to only act as a sender (do not process received messages) or a receiver (will never send messages).
There are not really states in this protocol, as sending a message leaves both parties in the same state they were before.
There are many useful features of user messaging systems that we will not be adding to this protocol. We anticipate the development of more advanced and full-featured message protocols to fill these needs. Features that are considered out of scope for this protocol include:
- read receipts
- emojii responses
- typing indicators
- message replies (threading)
- multi-party (group) messages
- attachments
Protocol: did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/basicmessage/1.0/
message
- sent_time - timestamp in ISO 8601 UTC
- content - content of the user intended message as a string.
- The
~l10n
block SHOULD be used, but only thelocale
presented.
Example:
{
"@id": "123456780",
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/basicmessage/1.0/message",
"~l10n": { "locale": "en" },
"sent_time": "2019-01-15 18:42:01Z",
"content": "Your hovercraft is full of eels."
}
- Creating this basicmessage may inhibit the creation of more advanced user messaging protocols.
- After more advanced user messaging protocols are created, the need to support this protocol may be annoying.
- Basic user messaging creates an easy useful feature in the early days of agent messaging.
- Even in the presence of better protocols, it can still be useful for basic devices or service messaging.
BasicMessage has parallels to SMS, which led to the later creation of MMS and even the still-under-development RCS.
- Receive receipts (NOT read receipts) may be implicitly supported by an ack decorator with pre-processing support.
The following lists the implementations (if any) of this RFC. Please do a pull request to add your implementation. If the implementation is open source, include a link to the repo or to the implementation within the repo. Please be consistent in the "Name" field so that a mechanical processing of the RFCs can generate a list of all RFCs supported by an Aries implementation.
Name / Link | Implementation Notes |
---|---|
Indy Cloud Agent - Python | Reference agent implementation contributed by Sovrin Foundation and Community; MISSING test results |
Aries Framework - .NET | .NET framework for building agents of all types; MISSING test results |
Streetcred.id | Commercial mobile and web app built using Aries Framework - .NET; MISSING test results |
Aries Cloud Agent - Python | Contributed by the government of British Columbia.; MISSING test results |
Aries Static Agent - Python | Useful for cron jobs and other simple, automated use cases.; MISSING test results |
Aries Protocol Test Suite | ; MISSING test results |