Created
July 7, 2010 15:22
-
-
Save Upliner/466828 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Catalog sharing protocol V 0.00000001a | |
(Distributed messaging protocol?) | |
============ | |
board_descriptor: | |
parameters(board_pubkey,board_name) | |
returns: | |
board_descriptor | |
============ | |
get_users: | |
parameters(board_pubkey,board_name,min_status) | |
returns: | |
user descriptors(each(some of them) is signed with smb's pubkey(self-sign is allowed?)) | |
mandatory attributes: | |
name=(user name) | |
pubkey=(user pubkey) | |
status=(admin, moderator, user) | |
admins must be signed with board_pubkey. | |
moderators most be signed with board_pubkey or admins | |
optional attributes: | |
singature=(signature of admin or moderator) | |
============ | |
get_objs: | |
parameters(board_pubkey,obj_id,subdir_depth,history_depth) | |
obj_id: sha1? better to be sha256 | |
============ | |
put_objs: | |
parameters(board_pubkey,obj_list) | |
obj_list: | |
(parent,data)[] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment