Return to the Liebi College
Liebi PoolSmart ContractMulti-sign
多签合约是如何保障矿池资产安全的?

1

中文版

猎币矿池是一个去中心化的多链 PoS 矿池,目前已正式开放 IOST 币种挖矿;

为保证用户的资产安全,降低用户的信任成本,猎币矿池联合 DappReview IOSTABC SSSMinex TokenPocket 四大节点(按字母排名,排名不分先后),成功完成对猎币矿池智能合约的多签升级。 2

多签意味着我的资产更安全吗?

是的,完成多签意味着完全祛除了单点作恶的隐患,意味着猎币矿池合约的更改需要多方节点同意(大于 的节点进行签名)才能完成,同时,猎币矿池合约的升级过程将受到多方节点的共同约束。

如果其中有签名节点对本次合约更改产生质疑,则可以拒绝签名,如果签名数量无法达到 ,则合约就无法进行更改或升级。

猎币矿池的优势是什么?

猎币矿池作为去中心化矿池,矿池所有数据在链上透明可查,用户资产均存放在链上的多签智能合约当中,是一种安全透明、无需信任的挖矿方式。 同时猎币矿池拥有矿权概念,可以实现无需锁仓、自动复利、边玩游戏边挖矿(目前 IOST Play 已全面支持)等功能,通过流动性降低准备金率,给用户提供较高的收益率。

如何在链上进行验证多签?

猎币矿池智能合约均已在链上开源,猎币矿池合约地址: ContractDoxaCK13QrprfJ3HvBWcGbZ1nr6WNKmPp68Rc8D1CTo1

can_update(data) {
    _IOSTInstruction_counter.incr(16);this._requireAuth(blockchain.contractOwner(), activePermission);
    _IOSTInstruction_counter.incr(20.3);const producers = [
        'iostliebibp',
        'sss_minex',
        'dappreview',
        'iostabc',
        'tokenpocket' // 执行签名的 5 个节点账号
    ];
    _IOSTInstruction_counter.incr(3);let count = 0;
    _IOSTInstruction_counter.incr(3);for (let i = 0; _IOSTInstruction_counter.incr(10.1),_IOSTBinaryOp(i, producers.length, '<'); _IOSTInstruction_counter.incr(3),i++) {_IOSTInstruction_counter.incr(1);
        if (_IOSTInstruction_counter.incr(12),blockchain.requireAuth(producers[i], activePermission)) {
            _IOSTInstruction_counter.incr(3);count++;
        }
    }
    if (_IOSTInstruction_counter.incr(6.2),_IOSTBinaryOp(count, 3, '>=')) // 完成 UPDATE 操作需要大于等于 3 个以上节点签名
        {return true;}
}

查看链上完整代码 https://www.iostabc.com/contract/ContractDoxaCK13QrprfJ3HvBWcGbZ1nr6WNKmPp68Rc8D1CTo1

English Version

The Liebi Pool is a decentralized multi-chain PoS mine that has officially opened IOST mining;

In order to ensure the security of users’ assets and reduce the trust cost of users, the Liebi Pool combined with the four major nodes DappReview IOSTABC SSSMinex and TokenPocket (ranking in no particular order), successfully completed the multi-sign upgrade of the Liebi Pool smart contract.

Does multi-signing mean that my assets are safer?

Yes, completing the multi-signing means completely eliminating the hidden danger of a single point of evil, which means that the change of the Liebi Pool contract requires the consent of the multi-party node (the node greater than 3⁄5 is signed) to complete, and at the same time, the upgrade of the Liebi Pool contract The process will be subject to the common constraints of multiple nodes.

If there is a signature node that challenges this contract change, the signature can be rejected, and if the number of signatures cannot reach 3⁄5, the contract cannot be changed or upgraded.

What are the advantages of the Liebi Pool?

As a decentralized mining pool, all the data in the mining pool are transparent in the chain, and the user assets are stored in the multi-signed smart contract on the chain. It is a safe and transparent mining method without trust.

At the same time, the Liebi Pool has the concept of Stake Token, which can realize functions such as no lock-in, automatic compounding, and mining while playing games (currently IOST Play is fully supported), which reduces the reserve ratio through liquidity and provides users with higher rate of return.

How to verify multi-sign on the chain?

The smart contract of the Liebi Pool have been open sourced in the chain, the contract address of the Liebi Pool:

ContractDoxaCK13QrprfJ3HvBWcGbZ1nr6WNKmPp68Rc8D1CTo1

can_update(data) {
    _IOSTInstruction_counter.incr(16);this._requireAuth(blockchain.contractOwner(), activePermission);
    _IOSTInstruction_counter.incr(20.3);const producers = [
        'iostliebibp',
        'sss_minex',
        'dappreview',
        'iostabc',
        'tokenpocket' // Execute the signed 5 node account
    ];
    _IOSTInstruction_counter.incr(3);let count = 0;
    _IOSTInstruction_counter.incr(3);for (let i = 0; _IOSTInstruction_counter.incr(10.1),_IOSTBinaryOp(i, producers.length, '<'); _IOSTInstruction_counter.incr(3),i++) {_IOSTInstruction_counter.incr(1);
        if (_IOSTInstruction_counter.incr(12),blockchain.requireAuth(producers[i], activePermission)) {
            _IOSTInstruction_counter.incr(3);count++;
        }
    }
    if (_IOSTInstruction_counter.incr(6.2),_IOSTBinaryOp(count, 3, '>=')) // More than 3 node signatures are required to complete an UPDATE operation
        {return true;}
}

View the complete code on the chain: https://www.iostabc.com/contract/ContractDoxaCK13QrprfJ3HvBWcGbZ1nr6WNKmPp68Rc8D1CTo1

Copyright © 2024 Liebi. All rights reserved.