Giter Site home page Giter Site logo

Comments (2)

artemis-my avatar artemis-my commented on May 5, 2024

个人理解,上帝账号是部署的时候就配置的,用上帝账号的意图是保证脚本运行成功,因为上帝账号拥有所有权限,源码里在权限检查时会先判断是否是god,是的话检查直接通过。

from fisco-bcos.

chaychen2005 avatar chaychen2005 commented on May 5, 2024

@LevenSton,在脚本最后的环节是启动权限控制,在权限控制启动之前,任何账号(包括非上帝账号)都可以发交易的,但启动权限控制后需要有特定权限的账号(上帝账号及授权过的账号)才能进行操作。
当配置的account不是上帝账号或授权过的账号(当时account只有Group4的权限,Group4没有响应的部署及调用系统合约的授权),执行脚本完毕后就不能进行相关操作。
如果使用上帝账号来运行ARPI_Model.js脚本,就相当于您描述的对生成的Group2 3 4分配对应的权限,注意这个脚本只是为了说明对Group分配权限的例子及管理模型,而不是给账号绑定对应权限。

from fisco-bcos.

Related Issues (20)

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.