SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
Les contrats (ethereum)
Conférence « Droit et Blockchain »
Un Contrat = engagement entre parties
X €
Un « Smart » Contrat = contrat programmé / automatisé
Exécute X €
Bitcoin: déjà très smart
P2SH
1/5 1/5
1/52/5
Pay to script hash
Multi-signature
Bitcoin: langage Script
P2SH
Pay to script hash
Bitcoin : langage voulu limité
For () do …
While () do …
…
Ethereum : « Turing complete »
Ethereum : « Gas powered »
http://gavwood.com/paper.pdf
Ethereum : Coût transaction / appel contrat
120 000 gas
Ethereum : EVM
Call
120 000 gas
1 gas = 000000022769355411 Eth
Moy Réseau : PrixGm
Prix Gas ?
PrixGuser
Ethereum : EVM
Not Ok
Prix gas Utilisateur insuffisant || Gas transmis insuffisant
Ethereum : EVM
X gas en trop
Gas Ok
Exécute
Ethereum = !!! Coût exécution contrat
???
10 eth / call
Ethereum : langage programmation
Solidity « »
Serpent
LLL
https://solidity.readthedocs.io/
Ethereum : The DAO
- Levée de fonds
- Création de tokens
- Envoi de tokens
- Gestion des propales
- Votes des propales
- …
Ethereum : The DAO
https://live.ether.camp/account/bb9bc244d798123fde783fcc1c72d3bb8c189413
Let’s Contract !
#AtelierEthereum

Contenu connexe

En vedette

ÐDaM and Equally presentation at the EDCon conference
ÐDaM and Equally presentation at the EDCon conferenceÐDaM and Equally presentation at the EDCon conference
ÐDaM and Equally presentation at the EDCon conferenceQuentin de Beauchesne
 
Configuracion de router sara muñoz
Configuracion de router  sara muñozConfiguracion de router  sara muñoz
Configuracion de router sara muñozOnce Redes
 
Ethereum VM and DSLs for Smart Contracts (updated on May 12th 2015)
Ethereum VM and DSLs for Smart Contracts (updated on May 12th 2015)Ethereum VM and DSLs for Smart Contracts (updated on May 12th 2015)
Ethereum VM and DSLs for Smart Contracts (updated on May 12th 2015)Zvi Avraham
 
Ingredients for creating dapps
Ingredients for creating dappsIngredients for creating dapps
Ingredients for creating dappsStefaan Ponnet
 
September Ethereum Berlin Workshop
September Ethereum Berlin WorkshopSeptember Ethereum Berlin Workshop
September Ethereum Berlin Workshopaeronbuchanan
 
Ethereum under the Hood, intro for developers as preparation for Blockchain H...
Ethereum under the Hood, intro for developers as preparation for Blockchain H...Ethereum under the Hood, intro for developers as preparation for Blockchain H...
Ethereum under the Hood, intro for developers as preparation for Blockchain H...Pascal Van Hecke
 
深読みビットコイン (2) コンセンサスの行方
深読みビットコイン (2) コンセンサスの行方深読みビットコイン (2) コンセンサスの行方
深読みビットコイン (2) コンセンサスの行方Kenji Saito
 
[213] ethereum
[213] ethereum[213] ethereum
[213] ethereumNAVER D2
 
Unidades de medida en informática
Unidades de medida en informáticaUnidades de medida en informática
Unidades de medida en informáticaGuillermo De León
 
The Distributed Ledger Landscape
The Distributed Ledger LandscapeThe Distributed Ledger Landscape
The Distributed Ledger LandscapeTim Swanson
 
Les Alternatives à la Blockchain
Les Alternatives à la BlockchainLes Alternatives à la Blockchain
Les Alternatives à la BlockchainCyril Grunspan
 

En vedette (13)

ÐDaM and Equally presentation at the EDCon conference
ÐDaM and Equally presentation at the EDCon conferenceÐDaM and Equally presentation at the EDCon conference
ÐDaM and Equally presentation at the EDCon conference
 
Configuracion de router sara muñoz
Configuracion de router  sara muñozConfiguracion de router  sara muñoz
Configuracion de router sara muñoz
 
Ethereum VM and DSLs for Smart Contracts (updated on May 12th 2015)
Ethereum VM and DSLs for Smart Contracts (updated on May 12th 2015)Ethereum VM and DSLs for Smart Contracts (updated on May 12th 2015)
Ethereum VM and DSLs for Smart Contracts (updated on May 12th 2015)
 
Ethereum : le concept de comptes
Ethereum : le concept de comptesEthereum : le concept de comptes
Ethereum : le concept de comptes
 
Ingredients for creating dapps
Ingredients for creating dappsIngredients for creating dapps
Ingredients for creating dapps
 
September Ethereum Berlin Workshop
September Ethereum Berlin WorkshopSeptember Ethereum Berlin Workshop
September Ethereum Berlin Workshop
 
Plan de accion
Plan de accionPlan de accion
Plan de accion
 
Ethereum under the Hood, intro for developers as preparation for Blockchain H...
Ethereum under the Hood, intro for developers as preparation for Blockchain H...Ethereum under the Hood, intro for developers as preparation for Blockchain H...
Ethereum under the Hood, intro for developers as preparation for Blockchain H...
 
深読みビットコイン (2) コンセンサスの行方
深読みビットコイン (2) コンセンサスの行方深読みビットコイン (2) コンセンサスの行方
深読みビットコイン (2) コンセンサスの行方
 
[213] ethereum
[213] ethereum[213] ethereum
[213] ethereum
 
Unidades de medida en informática
Unidades de medida en informáticaUnidades de medida en informática
Unidades de medida en informática
 
The Distributed Ledger Landscape
The Distributed Ledger LandscapeThe Distributed Ledger Landscape
The Distributed Ledger Landscape
 
Les Alternatives à la Blockchain
Les Alternatives à la BlockchainLes Alternatives à la Blockchain
Les Alternatives à la Blockchain
 

Presentation des contrats