Author

Topic: newbie question regarding contract (Read 289 times)

full member
Activity: 126
Merit: 100
June 04, 2017, 09:22:03 AM
#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 )
newbie
Activity: 56
Merit: 0
May 31, 2017, 10:32:26 AM
#4
If there is a contract in every us is on this bitcoin site, as far as I know its contract even with newbie.
sr. member
Activity: 462
Merit: 250
May 31, 2017, 10:05:07 AM
#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.
legendary
Activity: 4410
Merit: 4766
May 31, 2017, 09:59:30 AM
#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.
full member
Activity: 126
Merit: 100
May 31, 2017, 09:49:36 AM
#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?
Jump to: