snapdogg 互关 (@snapdogg) • Hey
snapdogg
Publications
- 1
- Introduction to lens
- It looks like Magic Eden and Ordinals Market have removed Bitcoin BAYC from their exchanges, likely due to legal pressure from Yuga.
- Interesting, normal people cannot draw it.
- free
- 喜欢你的一百步,就都交给我吧
- still raining
- flos sophorae
又是一年槐花时...
- Good morning, have you participated in the IEO of $SUI?
- Lenster's GitHub Sponsors profile is live 🎉
You can sponsor us to support @lensterxyz's open-source work 💖 and the team behind us
[Sponsor @lensterxyz on GitHub Sponsors](https://github.com/sponsors/lensterxyz)
Lenster is a decentralized and permissionless social media app built with Lens Protocol 🌿
- 哈哈,笑抽筋了!
- My colleague invited me to a drink, but it was too much to finish. #Life
- 世间所有的遇见,都是久别重逢!
- Facing the sea, getting richer every day!
面朝大海,日富一日!
- #Solidity学习笔记-默克尔树 Merkle Tree
基本概念
`Merkle Tree`,也叫默克尔树或哈希树,是区块链的底层加密技术,被比特币和以太坊区块链广泛采用。`Merkle Tree`是一种自下而上构建的加密树,每个叶子是对应数据的哈希,而每个非叶子为它的`2`个子节点的哈希。
`Merkle Tree`允许对大型数据结构的内容进行有效和安全的验证(`Merkle Proof`)。对于有`N`个叶子结点的`Merkle Tree`,在已知`root`根值的情况下,验证某个数据是否有效(属于`Merkle Tree`叶子结点)只需要`log(N)`个数据(也叫`proof`),非常高效。如果数据有误,或者给的`proof`错误,则无法还原出`root`根植。下面的例子中,叶子`L1`的`Merkle proof`为`Hash 0-1`和`Hash 1`:知道这两个值,就能验证`L1`的值是不是在`Merkle Tree`的叶子中。为什么呢? 因为通过叶子`L1`我们就可以算出`Hash 0-0`,我们又知道了`Hash 0-1`,那么`Hash 0-0`和`Hash 0-1`就可以联合算出`Hash 0`,然后我们又知道`Hash 1`,`Hash 0`和`Hash 1`就可以联合算出`Top Hash`,也就是root节点的hash。
我们可以利用网页或者Javascript库merkletreejs来生成`Merkle Tree`。
操作流程:
1)生成`Merkle Tree`
2)`Merkle Proof`验证
3)编写`MerkleProof`库:有三个函数,`verify()`函数——利用`proof`数来验证`leaf`是否属于根为`root`的`Merkle Tree`中,如果是,则返回`true,`它调用了`processProof()`函数;`processProof()`函数——利用`proof`和`leaf`依次计算出`Merkle Tree`的`root`。它调用了`_hashPair()`函数;`_hashPair()`函数:用`keccak256()`函数计算非根节点对应的两个子节点的哈希(排序后)。
4)编写`MerkleTree`合约。
5)部署`MerkleTree`合约。
6)验证测试。
总结:
在实际使用中,复杂的`Merkle Tree`可以利用`javascript`库`merkletreejs`来生成和管理,链上只需要存储一个根值,非常节省`gas`。很多项目方都选择利用`Merkle Tree`来发放白名单。
- Happy New Month guys!!!! Welcome to my birth month
- GM
- Gnosis launches Hashi bridge aggregator
https://twitter.com/Cointelegraph/status/1641509859555438597
- zkSync Era network experienced downtime
https://twitter.com/zksync/status/1642078325404467202
- dYdX V4 private testnet launched
https://twitter.com/AntonioMJuliano/status/1641872682592395280
- I'm saying my piece in the #futureofsocial by signing the @t2world.lens manifesto. Which values do you support?
https://manifesto-app.t2.world/share/clfyr31q011814431fmcei98uli6
- :zkevm的原理是将许多交易进行批量处理,然后发布到以太坊,主网验证费用在所有用户中进行分摊,所以,被越多人采用,交易成本反而越低
- cool
- When you begin to enjoy the falling leaves of a tree, the singing among the crowds in the subway, the great joy which food brings to you, yes, when you begin to love life and live in the moment, the spark of your life will be ignited.
Enjoy the moment❤️❤️
- 大毛就撸起来
- 持续关注zkSync生态发展,定期交互,绝对的大毛
- **Gm** family Enjoy your weekend
- 🙏✨
- Lens can cause greater effects
- 每日一问:你最爱女生什么部位?
- This is Lenny
- Lens收集:https://lenster.xyz/posts/0xa34d-0x43
- Rely on each other Strive to break through 1000 fans
一起互关互赞 争取突破1000
- Good luck to anyone who sees this tweet!
- **The Rise Of UGC 2.0: User Generated Collects**
Everyone has seen the power of User-Generated Content 'UGC' in the age of social media. Here's why UGC 2.0 or 'User-Generated Collects' will be the next evolution of this format unlocked by the blockchain.
I have been posting snippets here on Lenster the last few weeks about these themes as I framed out my article.
Here is the final piece: **https://mirror.xyz/chrissyb.eth/r0SyE9QdvQribykjXvdMqYElGQT8ZFnthV_rUlyNqNk**
#LMCC
Inspired by the following people: @ladidaix, @ryanfox, @bellosights (@levychain), @stani and @azeem.
**Cliff notes:**
In today's one-directional social media interactions, "likes'' are abundant & meaningless when it comes to generating authentic connections or content discovery. Instead of simply liking something, we would rather participate.
UGC 2.0 is not just a new format, it will revolutionize social media by unlocking far-reaching effects on content consumption than its predecessor. Collectable social content will enrich our experiences and create new forms of digital engagement between creators and users alike.
By giving creators and users ownership & control of their content without the impediments of gatekeepers they can leverage it into new opportunities across fandom, community connectivity, curation, data and monetization.
Creators aren’t defined by one platform or medium anymore. The creators, curators and communities of tomorrow will be empowered by data transparency aggregated across the entire social ecosystem without the gatekeepers and centralized databases of today. A more sustainable environment for the long tail and micro-creator to flourish as a result. Indexing less on numbers such as reach and likes, instead providing the tools to focus on quality and depth of relationship and content.
It will also mark the future of brand creation. Changing how brands interact with consumers as active participants in their own social consumption.
This is what @lensprotocol strives for. I hope this piece helps scratch the surface and inspires creators, users and builders to explore the possibilities.
- GM!
- GM!
- How far can we make my party degen #520 go? Mirror this for some spiked $TEA 🤑
Now.. what if $TEA was streaming to your wallet (up to a cap) each second that my degen was allowed to live on your feed? 👀
- Looking to grow my Lens following!
Everyone that collects this post and follows will get whitelisted for the Exodia.io free mint tomorrow.
This mint is the second of a set of five. It's for the Exodia Thunder Emblem. Holding the Thunder Emblem gives you free access to the Exodia wallet analysis page.
If this mint goes anything like the first mint you can expect 3000 unique holders and a value of around $50 for the NFT.