Giter Site home page Giter Site logo

meka-identity's Introduction

meka-identity

meka identity is a solution for cross-chain identity based on bip-44. It's to create binding relationship between user's bip44 addresses.

for example, the default polkadot's derive path is m/44'/359'/0'/0/0 and the default bitcoin derive path is m/44'/0'/0'/0/0.

the user can derive many polkadot's addresses and bitcoin's addresses from the same seed. so there is no need to prove if they belongs to the same owner.

  • if the seed is A
  • the xpub key of bitcoin which is derived from the seed accroding to the path m/44'/0' is B
  • the xpub key of polkadot which is derived from the seed accroding to the path m/44'/359' is C
  • on substrate-based blockchain, send a meesage from C address and includes a signed data from B to set up the binding relationship.
  • bind relationship setup

notice, it uses xpub (after hardended) rather than private keys, it means it can means it can bind many bitcoin address at the same time. it's just like hd wallet.

further usages

the binding relationship can be used in many ways

  • build bridges
  • calc cross-chain reputation
  • trace cross-chain portfolio
  • etc...

for the bridge, different from chainx, the meka identity based bridge does not need you to add extre data on btc chain.

api

  • bind(accountId, chain, xpub, startDate)
  • unbind(accountId, chain, xpub, endDate)
  • setAdmin(accountId)
  • adminBind(accountId, chain, xpub)
  • adminUnbind(accountId, chain, xpub)

storage

  • binded(accountId, chain, xpub)[]
  • adminAccountId

pending problems

  • is it secure enough to expose the xpub key
  • how to strikly prove it's derived from the same seed and if it's necessary
  • handle gap easily

meka-identity's People

Contributors

joshorndorff avatar shawntabrizi avatar starit avatar

Watchers

 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.