Masques documentation wiki

Masques is an open source, distributed, encrypted social network

User Tools

Site Tools


how_shares_work

How shares work

Each share has a content type. The share is inside of the i2p request map, which is passed to the action.

The content types included in v1 of Masques are:

  • Friend Request
  • Message
  • Chat
  • File
  • Album

Request Map

{ :destination ”###” :service service :data { :action :profile } :from { :destination ”###” } }

When a share is sent

  • id is not transmitted
  • created-at is not transmitted
  • message-id is optional and not transmitted (though there might be :message)
  • group-id is optional and not transmitted
  • content-id and content-type are optional and not transmitted (though there might be :content)
  • profile-to-id and profile-from-id are not transmitted (though there will be a :destination-to, :identity-to, and :identity-from)
  • shown-in-stream-at is not transmitted
  • transferred-at is transmitted
  • uuid is transmitted

Content Types

Friend request

:data { :action "share" :share {
  :uuid ###
  :type "friend_request"
  :identity-to ###
  :identity-from ###
  :content {
            :request-status "pending"
            :requested-at ###
            :message {
                      :subject "Let's be friends on Masques!"
                      :body "I met you at the party. I had on the blue hat."
                     }
            :profile {
                      :alias "Ted"
                      :avatar { :file ### }
                     }
            }
}

Message

{

:uuid ###
:type "message" 
:content {
          :subject "Booty call?"
          :body "Available tonight? I miss you..."
          }

}

how_shares_work.txt · Last modified: 2014/11/03 17:00 (external edit)