分布式树洞的交互协议(草案) #14
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
由于原计划的activitypub协议较为复杂不适合树洞场景,现自行设计协议如下:
当有新洞及新评论时,向所有远端树洞的
/inbox发送POST请求通知该请求的body如下:
暂不考虑支持跨站投票,可预留poll字段
该请求header中应包含Signature头如下:
Signature: key="https://<host>/.well-known/rsa.pub",algorithm="rsa-sha256",signature="<签名结果>"其中algorithm目前可只支持rsa-sha256
user-agent应包含
HoleBot; +https://<host>/是预先在配置文件写好可连接的host与公钥,还是支持一切签名有效的请求,由实现自行决定。