Bitcoin Forum
June 07, 2024, 09:00:21 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Lightning Network on the main chain question  (Read 119 times)
martylin (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
March 09, 2018, 06:36:56 AM
 #1

A want to buy a pizza from B

step1
A take his pk-A and B's pk-B create a multisig address "3xxx" or "bc1xxxx"

step2
A send 1Btc to the address, but don't need broadcast to Bitcoin chain.

step3
Whatever how A-B make transactions on the LN, A will never get any BTC, because he is a Payer.

step4
end transcation, A-B make a transcation broadcast to Bitcoin chain.
input sciprt: signatureA,B(preTranStep2) redeemscript
output script: pay to A (never over than 1 Btc)
               pay to B

step1: we call it "open channel", right?
step2: we call it "Funding Transcation", righ? should it broadcast to Bitcoin chain?
step3: --
step4: I just follow the setp2, if that is correct!

I am not sure I am right, hopefully someone can tell me.
franky1
Legendary
*
Offline Offline

Activity: 4242
Merit: 4511



View Profile
March 09, 2018, 07:01:42 AM
 #2

step two.. you do broadcast it

then off chain.

step three
you and the other party agree on who owns what share of that 1btc and they both sign a TX of where the funds goto
EG
if A wants to pay B 0.1btc

the withdrawal addresses would be
A's prefered withdrawal address 0.9btc
B's prefered withdrawal address 0.1btc
its signed by both. but this one is not broadcast until they both agree to broadcast it when they want to close the channel


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
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!