In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "how to realize the multi-signing contract of the block chain". In the operation of the actual case, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!
Requirement description
One day, the boss put forward a demand to Brother Hui, hoping to achieve a secure multi-signature function of token expenditure to facilitate the governance and audit of the foundation.
In summary, the product requirements are described as follows:
(1) the governance committee is composed of four people, and an CLB token expenditure needs the consent of all four people before it can be transferred; (2) in order to avoid suspicion and turn the center into evil, the withdrawal of the governance committee can only be effectively operated by the members' own accounts; (3) when the governance committee cannot operate normally, the boss has the right to withdraw the remaining tokens managed by the governance committee.
Sign more wallet market research information
Brother Hui first completed the research work of commercial hardware wallets in the market.
Conclusion:
At present, there is no good multi-signature hard wallet in the world (August 24, 2018), but the update of the hardware wallet will support the multi-signature feature of ETH and ERC20 tokens in a month's time.
Specific information:
There is currently no cold wallet that supports ETH and ERC20 multi-signature. There are more wallets on the market that support the bitcoin multi-signature function. ImToken Wallet does not support multi-signature management of ETH and ERC20 tokens, but supports offline authorization management. Domestic Kushen hardware wallet does not support ETH multi-signature, the price is about 2000 yuan. The price of Trezor abroad is about 800RMB. Bitpay Wallet replied that a cold hardware wallet that supports ETH and ERC20 multi-signature will be released in September at a price of about 1299 yuan. Commodity links can be accessed by clicking.
The gnosis multi-signature wallet recommended by the lawyer is operated on the English web page. Gnosis multi-signature wallet contract code can be accessed by click.
Support ETH multi-contract PC version of the wallet and Mist wallet, PARITY wallet, is the English page operation.
At present, many foundations directly use multi-signature contract codes to support multi-signature management on the page after deployment.
Sign more intelligent contract codes and parsing
The core codes of multiple contracts are as follows:
Contract ColorbayMultiSign {using SafeMath for uint256; uint256 public MAX_OWNER_COUNT = 50; event Confirmation (address indexed sender, uint256 indexed transactionId); event Revocation (address indexed sender, uint256 indexed transactionId); event Submission (uint256 indexed transactionId); event Execution (uint256 indexed transactionId); event ExecutionSuccess (uint256 indexed transactionId); event ExecutionFailure (uint256 indexed transactionId); event OwnerAddition (address indexed owner); event OwnerRemoval (address indexed owner); event RequirementChange (uint256 required); mapping (uint256 = > Transaction) public transactions Mapping (uint256 = > mapping (address = > bool) public confirmations; mapping (address = > bool) public isOwner; address [] public owners; uint256 public required; uint256 public transactionCount; address public creator; ERC20 public token; struct Transaction {address destination; uint256 value; bool executed;} / * omit some modifier function*/ / * @ dev Contract constructor sets initial owners and required number of confirmations. * @ param _ owners List of initial owners. * @ param _ required Number of required confirmations. * / constructor (address _ token, address [] _ owners, uint256 _ required) public validRequirement (_ owners.length, _ required) {token = ERC20 (_ token); require (_ owners.length)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.