web3-social

所属分类:以太坊
开发工具:Solidity
文件大小:135KB
下载次数:0
上传日期:2022-12-19 16:41:34
上 传 者sh-1993
说明:  一种去中心化的社交网络协议标准
(A decentralized social network protocol standard)

文件列表:
contract (0, 2022-12-20)
contract\.prettierrc.js (241, 2022-12-20)
contract\contracts (0, 2022-12-20)
contract\contracts\bridge (0, 2022-12-20)
contract\contracts\bridge\IResolver.sol (658, 2022-12-20)
contract\contracts\bridge\Resolver.sol (2234, 2022-12-20)
contract\contracts\core (0, 2022-12-20)
contract\contracts\core\IProfileV1.sol (3890, 2022-12-20)
contract\contracts\core\Profile.sol (11613, 2022-12-20)
contract\contracts\test (0, 2022-12-20)
contract\contracts\test\TestProfile.sol (191, 2022-12-20)
contract\contracts\test\TestSign.sol (847, 2022-12-20)
contract\contracts\util (0, 2022-12-20)
contract\contracts\util\Compat.sol (2329, 2022-12-20)
contract\contracts\util\Signature.sol (2678, 2022-12-20)
contract\hardhat.config.ts (550, 2022-12-20)
contract\package.json (1235, 2022-12-20)
contract\scripts (0, 2022-12-20)
contract\scripts\encrypt.ts (1448, 2022-12-20)
contract\scripts\sign.ts (1182, 2022-12-20)
contract\test (0, 2022-12-20)
contract\test\test.ts (3628, 2022-12-20)
contract\tsconfig.json (201, 2022-12-20)
contract\yarn.lock (286653, 2022-12-20)
design-book (0, 2022-12-20)
design-book\book.toml (114, 2022-12-20)
design-book\src (0, 2022-12-20)
design-book\src\SUMMARY.md (254, 2022-12-20)
design-book\src\crypto (0, 2022-12-20)
design-book\src\crypto\encryption.md (511, 2022-12-20)
design-book\src\crypto\signature.md (715, 2022-12-20)
design-book\src\cryptography-design.md (459, 2022-12-20)
design-book\src\introduction.md (3215, 2022-12-20)
... ...

# web3 social This project is aimed for web3 social protocol standard. ## Design `Profile` is a social identity instance that anyone can deploy for themself. Interacting between people is mapped to interacting of `Profile` contracts. To seperate the wallet and social identity. Each social identity is represented by an address which can be different to the wallet address. Thus, you can recover your `Profile` instance as long as you keep the identity secrets. Example: - Wallet Address: `0xd6e09Fa89AcCD3c2E22A575457***b8023Ff56d16` - Profile Address (social identity): `0x62E09eA82347a12a1466D7716EbB712823297a0F` - Contract Address (Profile instance): `0xA933F04755872A62503f3168C41596922c840095` Others can verify the signature via `function signature() returns (bytes memory)` to ensure the contract is owned by a social identity. `Resolver` is like a registry. Anyone can link their social identity to a contract. Using the `Resolver` you can lookup the latest contract of a social identity. Thus, yes, you can upgrade the `Profile` contract. Before the `Resolver` updates records, it will verify the contract and recursive verify the chain if you made several `Profile` ugrades before updating the `Resolver` records. Example: Contract A (current record) -> Contract B -> Contract C (current used)

近期下载者

相关文件


收藏者