ブロックチェーン専門企業、コンセンサス・ベイス株式会社の代表取締役。ソフトバンク、大和証券グループ、日本証券取引所など業界大手のブロックチェーン実証実験を数多く実施。NECとの共著のビットコイン、イーサリアム本の出版など数多くのブロックチェーン技術の本、雑誌、記事を執筆。経済産業省「ブロックチェーン検討会」委員を務める。日本ブロックチェーンユーザ会の代表としてブロックチェーン技術の最前線に立ち続け、当技術の普及、啓蒙の為に積極的な活動をしている。
I have a simple smart contract with a variable color which stores a string. If I unterstand correctly, each transaction can change the state of this variable and is stored permanently into the blockchain. Let's say tx#1 changes it to red, tx#1 changes it to blue, and tx#2 to red, tx#3 to green. I want to have red, blue and green, and not just the last state of this variable color. How can I achiev
Trustless, decentralised, smart contracts for Ethereum.
Publish Gist Publish all open files to an anonymous github gist. Copy files Copy all files to another instance of browser-solidity. You can also load a gist by adding the following #gist=GIST_ID to your url, where GIST_ID is the id of the gist to load. JavaScript VM Execution environment does not connect to any node, everything is local and in memory only. Web3 Provider Execution environment conne
(注)変更点: 2018.10.18 記事内容が古かったため、イベント発火の記法について現在のバージョン(solidity v0.4.16)に対応しました。 イベント発火には emit EventName(...)のようにemitを明示的につけることが推奨されているようです。 本文中で使用しているCosmo Editorは、現在では使われてないようですので、 Remixなどを使うことをオススメします。 Solidityによるスマートコントラクトの監視 今回はSolidityのコードを書いてメソッドを実行、そして実行の監視をしてみます。 Solidityの詳細解説ページ http://solidity.readthedocs.org/en/latest/contracts.html#events Ethereum JavaScript API document(eventメソッド) http
I was following the Greeter tutorial on Go Ethereum wiki and got stuck on the "var greeterContract = web3.eth.contract(greeterCompiled.greeter.info.abiDefinition)" phase returning TypeError: Cannot access member 'info' of undefined. I have solC installed and linked - (eth.getCompilers() returns ["Solidity"]) and source code compiled. The only difference I spotted against the tutorial and other pos
【本文】 Ethereumを使用するメリットの一つはSmart Contract(※以下、コントラクト)をブロックチェーン上で共有し様々な契約を自動実行する点にあります。 今回は、コントラクトを作成後、デプロイしブロックチェーン上に組み込む処理をBrowser-Solidityを使って実施する方法について概観します。 また、デプロイ後のコントラクトを、Browser-SolidityのRemix画面上に表示された情報を利用して、gethコンソール上で実行させる方法を説明します。 (※Browser-Solidityとgethを連携させたコントラクト開発についての説明がweb上で意外と見つからないので、敢えて投稿しました。) 【前提条件】 go-ethereum/gethがOS上にインストール済みであることを前提にしています。 (※Solidity自体はインストールしていなくても問題ありませ
How do I fund Solidity contracts with Ether? The example in the Solidity FAQ, http://solidity.readthedocs.io/en/develop/frequently-asked-questions.html#store-ether-in-a-contract, funds a contract via the contract's constructor. Can you do the same outside of the constructor? Some background; I want a contract to be able to send Ether to someone's address via something like recipient.send(169000000
$ geth version Geth Version: 1.7.1-stable Git Commit: 05101641455a754936acc5ddff92f35f5e33181c Architecture: amd64 Protocol Versions: [63 62] Network Id: 1 Go Version: go1.9.1 Operating System: darwin GOPATH=/Users/arosh/go GOROOT=/usr/local/Cellar/go/1.9.1/libexec MetaMask 3.10.9 browser-solidity e6f4dc2 MetaMaskについて MetaMask は Chrome や Firefox のブラウザ拡張として使うことができるウォレットアプリです。このウォレットの大きな特徴は,Mist のよう
Basics Introduction to Smart Contracts Solidity by Example Installing the Solidity Compiler Language Description Layout of a Solidity Source File Structure of a Contract Types Units and Globally Available Variables Expressions and Control Structures Contracts Inline Assembly Cheatsheet Language Grammar Compiler Using the Compiler Analysing the Compiler Output Solidity IR-based Codegen Changes Inte
Solidity is an object-oriented, high-level language for implementing smart contracts. Smart contracts are programs which govern the behaviour of accounts within the Ethereum state. Solidity was influenced by C++, Python and JavaScript and is designed to target the Ethereum Virtual Machine (EVM). Solidity is statically typed, supports inheritance, libraries and complex user-defined types among othe
Control Structures¶ Most of the control structures known from curly-braces languages are available in Solidity: There is: if, else, while, do, for, break, continue, return, with the usual semantics known from C or JavaScript. Parentheses can not be omitted for conditionals, but curly brances can be omitted around single-statement bodies. Note that there is no type conversion from non-boolean to bo
Solidity is an object-oriented, high-level language for implementing smart contracts. Smart contracts are programs which govern the behaviour of accounts within the Ethereum state. Solidity was influenced by C++, Python and JavaScript and is designed to target the Ethereum Virtual Machine (EVM). Solidity is statically typed, supports inheritance, libraries and complex user-defined types among othe
A Simple Smart Contract¶ Let us begin with a basic example that sets the value of a variable and exposes it for other contracts to access. It is fine if you do not understand everything right now, we will go into more detail later. pragma solidity >=0.4.0 <0.7.0; contract SimpleStorage { uint storedData; function set(uint x) public { storedData = x; } function get() public view returns (uint) { re
A Simple Smart Contract¶ Let us begin with a basic example that sets the value of a variable and exposes it for other contracts to access. It is fine if you do not understand everything right now, we will go into more detail later. pragma solidity >=0.4.0 <0.7.0; contract SimpleStorage { uint storedData; function set(uint x) public { storedData = x; } function get() public view returns (uint) { re
Layout of State Variables in Storage¶ Statically-sized variables (everything except mapping and dynamically-sized array types) are laid out contiguously in storage starting from position 0. Multiple, contiguous items that need less than 32 bytes are packed into a single storage slot if possible, according to the following rules: The first item in a storage slot is stored lower-order aligned. Eleme
Introduction¶ This guide is intended to provide coding conventions for writing solidity code. This guide should be thought of as an evolving document that will change over time as useful conventions are found and old conventions are rendered obsolete. Many projects will implement their own style guides. In the event of conflicts, project specific style guides take precedence. The structure and man
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く