做完上面的事情之后,近一个月,我都在为 ckb on wasm 计划努力实现中,到现在,第一阶段的事情基本做完了,ckb-lightclient 已经可以彻底单独跑在浏览器网页中了,并且支持 indexdb 作为后端存储,目前实现在这个分支里,目前项目状态并没达到 production ready,想要玩的朋友,可以自己切到该分支,进入 light-client-wasm 目录进行调试,默认是实现是 dev 链,需要一些操作:
Hi Driftluo, can I just make a suggestion to you and also the Nervos devs in general.
I think it would be great if when posting these types of things that the first paragraph be devoted to explaining how this ultra technical stuff is going to benefit CKB and CKB holders.
I always read these things from start to finish, not because I understand it, but just because it usually reinforces my belief that the cryptape devs are most likely among the most talented devs in the crypto industry, but I still usually come away not knowing what the hell I’ve just read.
That whole 3 pages gave me absolutely no insight into why you are even spending the last month or so doing this work.
“After finishing the above tasks, I have been working hard on the ckb on wasm plan for nearly a month.”
I follow CKB pretty closely and didn’t even know there was a “ckb on wasm plan”. This has probably been discussed already and I’ve probably even read about it and just forgot, but I still think that it would be very beneficial to have at least a small part at the start of these updates aimed at the general CKB community, just so we can understand the general concept and how this is hopefully going to benefit CKB holders in the longrun.
Thanks for the suggestion, my article did not explain why we are trying to wasm-ify lightclient. Let me briefly talk about what we will get after this project is production-ready.
If we make ckb light client working on wasm, any web page can directly run a ckb light client node(Yes, this is a fully functional light node), making it more convenient to quickly query and track the required script dynamics on the web page. At the same time, the architecture of fiber is almost the same as that of light client, which means that fiber only needs to be simply adapted to achieve the same capabilities as light client, that is, any web page can run a fiber node. This will be more convenient for front-end developers to develop the web page functions they want.
Thanks for the reply mate, that’s made things a bit clearer as far as what the general purpose of this is, but I have to admit I’m still a bit lost as far as what it all means at the end of the day.
I think there is a big gap between what people on the technical side of crypto think is just ‘basic’ knowledge and what the vast majority of CKB holders and just crypto holders in general actually understand.
I get it though, because it’s the same for nearly every type of job or sport or whatever, that when you get really good at something, it’s very easy to forget that everyone else is still in the beginner stage.
I don’t even think I’m after an explanation of the technical side so much, I just want an explanation of ‘how’ and ‘when’ this will eventually benefit me as an end-user of crypto.
But I can totally understand how painful it must be to try and dumb things like this down to a really basic level, but I just think it would be something that would be very much appreciated by the general community if the devs could keep this in mind when releasing this type of info.