Blockchain, Lightning Network, Tutorial, Programming, Technology.
Spend BR2b Alice can sign BR2b using disclosed Bob’s private key. And she receive Bob’s BTC immediately. const c2bHash = calculateTxHash(C2b); let BR2b = new Transaction( [ new TxIn( c2bHash, 1, { type: 'BR', sig: [ getPubKeyHash(AliceKeys[4]), getPubKeyHash(BobKeys[4]) ], } ) ], [ new TxOut(