GithubHelp home page GithubHelp logo

fangyi326 / eth-multi-signature Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wupeaking/eth-multi-signature

0.0 0.0 0.0 364 KB

Multi-signature with Ethereum Smart Contract

License: MIT License

JavaScript 100.00%

eth-multi-signature's Introduction

eth-Multi-signature

English

此项目展示了如何使用智能合约实现以太坊的多签转账功能。

整个转账的流程如下:

token ---transfer---> 智能合约账户 -----------transfer-----------> 指定的账户
                         /|\        |                            /|\
                          |         |                             |
                          |        \|/  校验发起交易的签名是否正确    |
合约调用者-----------------|

核心**

  1. Token放在智能合约账户名下
  2. 设置合约可以进行转账的M个地址
  3. 设置发起一笔转账的最少签名数量N
  4. 转账时对签名进行ecrecoverDecode恢复出签名的地址
  5. 根据恢复的地址确认是否是合约设置的N of M中地址
  6. 满足条件则控制智能合约账户转移token到指定的账户

详细的调试和分析流程可以查看我的blog

问题

如果有疑问, 想法可以直接issue或者email[email protected]

eth-multi-signature's People

Contributors

wupeaking 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.