GithubHelp home page GithubHelp logo

web3-social / hpke-framework Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 1.01 MB

a plugable hpke framework monorepo

JavaScript 0.56% TypeScript 95.73% Rust 3.72%
assymetric-encryption cipher crypto cryptography hpke

hpke-framework's Introduction

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: 0xd6e09Fa89AcCD3c2E22A57545764b8023Ff56d16
  • 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)

hpke-framework's People

Contributors

lightsing avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.