先来一段合约代码:
// MetaCoin.sol 用于账户转账的智能合约应用
contract MetaCoin {
mapping (address => uint) balances;
function MetaCoin() {
balances[tx.origin] = 10000;
}
function sendCoin(address receiver, uint amount) returns(bool sufficient) {
if (balances[msg.sender] < amount) return false;
balances[msg.sender] -= amount;
balances[receiver] += amount;
return true;
}
function getBalance(address addr) returns(uint) {
return balances[addr];
}
}

smart contracts相关推荐

  1. Reversing Ethereum Smart Contracts: Part 2

    In my previous tutorial, we began reversing engineering the Greeter.sol contract. Specifically, we l ...

  2. Part 2 — Making Sense of Smart Contracts

    The term "smart contract" has no clear and settled definition. The idea has long been hype ...

  3. Understanding Ethereum Smart Contracts

    You might have heard the term "smart contract," and you might even know that they are &quo ...

  4. How to Secure Your Smart Contracts: 6 Solidity Vulnerabilities and how to avoid them (Part 2)

    While Part 1 discussed some more high profile or obvious vulnerabilities, this post will be about vu ...

  5. How to Secure Your Smart Contracts: 6 Solidity Vulnerabilities and how to avoid them (Part 1)

    In a previous post we discussed the future of Ethereum's scalability by analyzing the concepts prese ...

  6. Plasma: Scalable Autonomous Smart Contracts 翻译

    Plasma 可扩容的智能合约 摘要 Plasma is a proposed framework for incentivized and enforced execution of smart c ...

  7. 阅读论文Formal verification of smart contracts based on users and blockchain behaviors models

    1 题目(Formal verification of smart contracts based on users and blockchain behaviors models) 1.1 作者.出 ...

  8. (ASE2018)ContractFuzzer: Fuzzing Smart Contracts for Vulnerability Detection 解析

    (ASE2018)ContractFuzzer: Fuzzing Smart Contracts for Vulnerability Detection 解析 前言 一 摘要及主要贡献 摘要 贡献 二 ...

  9. ETHBMC: A Bounded Model Checker for Smart Contracts

    ETHBMC: A Bounded Model Checker for Smart Contracts 论文链接:https://www.usenix.org/conference/usenixsec ...

  10. Formal Verification of Smart Contracts Short Paper

    Formal Verification of Smart Contracts: Short Paper ABSTRACT 提出将使用F*框架用于编写代码 1. INTRODUCTION 本文目的:通过 ...

最新文章

  1. vue下实现textarea类似密码框的功能之探索input输入框keyup,keydown,input事件的触发顺序...
  2. Linux man命令后的参数释义
  3. jcaptcha maven
  4. 墨天轮2022年新春发布会暨年度数据库颁奖盛典即将开启!
  5. Android 系统(186)---最易懂的Android屏幕适配解决方案--总结版
  6. ACM-尼姆博弈之取(m堆)石子游戏——hdu2176
  7. React Native布局
  8. Realsense安装使用过程问题汇总
  9. PHP拼接唯一索引,合并两个数组数据
  10. 集成Cortex-M0内核-- Integration and Implementation Manual手册学习
  11. Spring MVC 接口返回406错误
  12. yocto之相关class总结
  13. 实战 Mantle 解析界面app 科技频道
  14. Emulator: emulator: WARNING: EmulatorService.cpp:448: Cannot find certfile: C:\Users\zhuangqingze\.a
  15. Unity3D入门(三):游戏场景制作 3D 模型基础
  16. c语言10迷宫,C语言实现走迷宫
  17. 令人耳目一新的人类进化,读《人类简史》有感
  18. 王道数据结构3.2.5——1、循环队列中设置tag区分头指针front和队尾指针rear相等时队列的状态是空还是满
  19. java在线运行工具,终于搞明白了
  20. 单链表的头尾插法详解

热门文章

  1. Python基础入门—单分支结构
  2. vba九九乘法表代码_Excel中使用vba函数制作九九乘法表的操作方法
  3. 决斗学院游戏辅助玩法 决斗学院卡牌功能脚本介绍
  4. 微信小程序父子通讯、传值 triggerEvent
  5. 动态调整线程池参数实践
  6. 推荐一位武汉大学的小姐姐
  7. POJ 1673 EXOCENTER OF A TRIANGLE
  8. JSON对象与字符串之间的转换
  9. 小米平板5.0以上系统如何不root激活xposed框架的经验
  10. 2018年计算机基础知识题库,2018年计算机基础知识题库文献.doc