Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢昇
test
Commits
fdeb4f1c
Commit
fdeb4f1c
authored
May 15, 2019
by
谢昇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update chain33.md
parent
37183798
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
chain33.md
chain33.md
+9
-0
No files found.
chain33.md
View file @
fdeb4f1c
...
...
@@ -13,3 +13,11 @@ Chain33创造性的支持分层的架构,主链负责交易清算,智能合
# chain33系统中的合约
chain33系统中的合约,也可以称为执行器(executor),是chain33架构纵向扩展的核心。
功能上类似于微服务架构,合约相互之间耦合度低,单个合约不依赖于其他合约的功能。
## chain33合约的一些基础概念
从外部看,一个合约需要包含以下要素,这里用挖矿合约(ticket执行器)举例说明:
1.
合约名(执行器名称): ticket
2.
合约地址:16htvcBNSEA7fZhAdLJphDwQRQJaHpyHTp
每个合约拥有一个唯一的合约地址,这个合约地址不存在私钥;对于任何一个已知的合约名,都可以在chain33中查询该合约的合约地址。

\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment