Smart Contracts are small computer programs stored inside the Blockchain that can update themselves, store their own state, and own digital assets.
Questions tagged [smartcontracts]
72 questions
13
votes
2 answers
Why did the lightning network implement a gossip protocol?
As pointed out by many lightning developers in the past (e.g. Rusty's 1 million channel challenge) the gossip protocol is quite noisy and a part of the BOLTs causing many engineering challenges.
Today, I learned that Ethereum's Raiden network does…
Rene Pickhardt
- 11,670
- 8
- 35
9
votes
3 answers
Bitcoin and Smart Contracts
I have recently come across the features of ethereum and the idea of smart contracts.
I like the concept of smart contracts however as a currency, I much prefer the bitcoin to the ether.
Is there any way smart contracts could ever be utilised by…
Kenshin
- 506
- 1
- 6
- 13
7
votes
3 answers
Is there a way to access Ethereum Smart Contract's variables by name in JavaScript?
Say I have a simple smart contract:
contract Simple {
string32 message;
function Simple() {
message = "Hello world!";
}
}
How can I easily access the message variable by name in JavaScript? It looks like there is some way to…
ThePiachu
- 42,931
- 25
- 138
- 347
5
votes
1 answer
When does Ardor smart contracts come into effect and how does it work compared to Ethereum, EOS, and Lisk?
Ardor announced they are launching smart contracts on their system and how does it work compared to the other platforms like Ethereum, EOS, and Lisk?
Patoshi パトシ
- 10,956
- 18
- 80
- 151
5
votes
2 answers
How do I program smart contracts?
Is there a guide to learn how to program smart contracts for the Bitcoin blockchain?
Blackybecks
- 51
- 2
4
votes
3 answers
What are some interesting applications of Taproot "smart contracts"?
From a strictly technical perspective, MAST makes a lot of sense. However, understanding it in the context of Taproot/Tapscript does require prior knowledge in Merkle Trees and hash functions.
What are some toy use cases that could be used to…
metahash
- 43
- 4
4
votes
1 answer
Aborting a three-way swap
Suppose Alice has 1 BTC, Bob has 1 LTC, and Carol has 1 NMC. Alice wants NMC for BTC, Bob wants BTC for LTC, and Carol wants LTC for NMC. Assume each cryptocurrency has the same value and can be 1-to-1 transferred. They need to make a three-way…
Mariana salama
- 41
- 1
4
votes
3 answers
How to store private data in blockchain and smart contract
Following my previous question on this topic Is there a way to store and share a private key through blockchain?, I might have a solution but I would like to improve the process.
Image that A is the owner of some private data, and want to give the…
tomsoft
- 141
- 1
- 4
4
votes
3 answers
bitcoin smartcontract feature
I am a noob, so please bear with me.
I'm wondering whether the Bitcoin Core team plans to integrate a smart contract feature evolving the Bitcoin scripting language in a more sophisticated one in the near for far future.
Afaik, the only work…
Arslan Smal
- 153
- 4
4
votes
1 answer
Does bitcoin have the potential to be subject to a hard fork where miners are forced to choose which fork they will accept, like Etherum?
Some background (Taken from Quartz):
Ethereum is similar to bitcoin, but it also supports smart contracts,
agreements written in computer code that execute automatically when
conditions are met.
Distributed Autonomous Organization (DAO) sought…
user2716556
- 464
- 3
- 14
4
votes
2 answers
Can an Ethereum contract be updated without having to be re-submitted?
I am wondering - can an Ethereum contract be updated without having to be re-submitted? Say, if I find a bug in my contract, can I fix it without having to create a new contract and making my potential users have to update their references? As I…
ThePiachu
- 42,931
- 25
- 138
- 347
4
votes
5 answers
Is it possible to schedule function calls to an Ethereum smart contract?
I am wondering - is it possible to schedule or somehow trigger function calls to an Ethereum smart contract based on the current block height or timestamp? This would involve some pre-payment of gas for execution understandably, but it might be…
ThePiachu
- 42,931
- 25
- 138
- 347
3
votes
1 answer
Ardor Lightweight Contracts: (Almost) trustless way with new Phased Transaction type?
I asked that question on Bitcointalk, but got no response so far. As Lior has proposed to make Stackexchange the main medium of exchange about Ardor I'm asking here.
As I read in the FAQ, the main drawback of Lightweight Contracts is that they are…
d5000
- 53
- 4
3
votes
1 answer
What is the status of smart contracts in bitcoin?
Are contracts described here already available for use? This source claims that "Ethereum style contracts" will be available in June. Is this correct? How are Ethereum style contracts different from contracts described in the first source?
user49976
- 31
- 2
3
votes
1 answer
Storing scripts (smart contracts) outside the blockchain
I'm following "Mastering Bitcoin" from Andreas Antonopoulos in order to understande the Bitcoin implementation.
In the chapter about transactions, he points some advantages of P2SH transactions:
Complex scripts are replaced by shorter fingerprints…
Henrique Barcelos
- 431
- 3
- 12