Bitcoin Forum
May 23, 2024, 01:04:06 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: newbie question regarding contract  (Read 289 times)
danielgold20 (OP)
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
May 31, 2017, 02:49:36 PM
 #1

hello!

Can some one explain me what is contract/smart contract?

I didn't understand what this is and how people using it what is hes benefit?
franky1
Legendary
*
Online Online

Activity: 4228
Merit: 4492



View Profile
May 31, 2017, 02:59:30 PM
 #2

a normal tx is one that has to be signed by 1 person.

a 'contract' is a tx with extra conditions.
for instance
1. a tx required to be signed by more than one person to be deemed valid, where the value being sent to the destinations gets agreed on by all required signers.
2. a tx where the value is only spendable at a certain event.

an example of (2) is the blockreward can only be spent after 100 block confirmations.
an example of (1) is the multisig can only be spent if signed by more than one person.

Lightning network for instance utilises a few of these contract conditions.

a channel is in simple terms just a multisig. a tx which 2 people need to agree on who deserves what amount and both sign. it also has other conditions in that contract that the funds can only be spent after X date/blockheight. and a further condition that 1 party can revoke the other party in certain circumstance.

I DO NOT TRADE OR ACT AS ESCROW ON THIS FORUM EVER.
Please do your own research & respect what is written here as both opinion & information gleaned from experience. many people replying with insults but no on-topic content substance, automatically are 'facepalmed' and yawned at
markjamrobin
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile
May 31, 2017, 03:05:07 PM
 #3

a normal tx is one that has to be signed by 1 person.

a 'contract' is a tx with extra conditions.
for instance
1. a tx required to be signed by more than one person to be deemed valid, where the value being sent to the destinations gets agreed on by all required signers.
2. a tx where the value is only spendable at a certain event.

an example of (2) is the blockreward can only be spent after 100 block confirmations.
an example of (1) is the multisig can only be spent if signed by more than one person.

Lightning network for instance utilises a few of these contract conditions.

a channel is in simple terms just a multisig. a tx which 2 people need to agree on who deserves what amount and both sign. it also has other conditions in that contract that the funds can only be spent after X date/blockheight. and a further condition that 1 party can revoke the other party in certain circumstance.

Your answer is very useful, I never thought I could explain to anyone about it, even though I had a certain amount of knowledge about it, but I still can not explain it. This article not only helped him, you also helped me.

farharhadi
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
May 31, 2017, 03:32:26 PM
 #4

If there is a contract in every us is on this bitcoin site, as far as I know its contract even with newbie.
danielgold20 (OP)
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
June 04, 2017, 02:22:03 PM
 #5

a normal tx is one that has to be signed by 1 person.

a 'contract' is a tx with extra conditions.
for instance
1. a tx required to be signed by more than one person to be deemed valid, where the value being sent to the destinations gets agreed on by all required signers.
2. a tx where the value is only spendable at a certain event.

an example of (2) is the blockreward can only be spent after 100 block confirmations.
an example of (1) is the multisig can only be spent if signed by more than one person.

Lightning network for instance utilises a few of these contract conditions.

a channel is in simple terms just a multisig. a tx which 2 people need to agree on who deserves what amount and both sign. it also has other conditions in that contract that the funds can only be spent after X date/blockheight. and a further condition that 1 party can revoke the other party in certain circumstance.

Thank you very much for your response!

Can a contract be created for example : You receive the coins a week after the transaction ( just an example )
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!