ethereum payment channels

A project aiming to scale ethereum via off-blockchain payment channels could enter production this year.Speaking at Construct 2017, CoinDesk's developer conference this week, Ameen Soleimani, a software engineer at ethereum startup ConsenSys, gave a presentation on Raiden's current status in which he described this as a 2017 goal.The Raiden network, an open-source developer effort being spearheaded by developer Heiko Hees, was first discussed as a way to bring micropayments to the platform in 2015.Soleimani said work on the protocol implementation is "largely finished", adding that a minimum viable product is likely to be completed as soon as the end of the first quarter.The news comes amid broader work on payment channels within the blockchain space, particularly in relation to bitcoin.Raiden bears similarities to the Lightning Network, a payments channel concept for bitcoin that a number of developers are working on.(San Francisco-based startup Lightning Labs published its first implementation release of the concept earlier this month).
As previously reported by CoinDesk, proponents of the Raiden initiative see it as a way to encourage machine-to-machine payments, using the ethereum blockchain as a settlement layer.Ethereum Sign up or log in to customize your list._ Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top up vote 8 down vote favorite 1 I've read bits and pieces on payment channels and the benefits it would provide for micro-transactions.bitcoin in escrowFor example, under the current fee structure, it's not wise to send micro transactions below the mining fee since it would cost you more to send the value.bitcoin kritikAre there any mechanism to open payment channels where micro-transactions can be lumped to reduce mining fees?fichas bitcoin
Either now, or within a future version of Ethereum (i.e.transactions lightning up vote 9 down vote Absolutely.In fact, there's a project currently underway to implement an Ethereum Lightning Network, which uses micropayment transaction channels, called Raiden.ryan charles bitcoinFor those who aren't already familiar with microtransaction channels, here's a primer.black arrow bitcoin minerFeel free to skip the next two paragraphs if you're already familiar with the mechanism: In the Bitcoin version, participants lock funds in a multisig "smart contract" (i.e., one or more Bitcoin transactions) and partially sign a pair of commitment transactions which are spent from by four timelocked multisig "commitment" transactions.bitcoin online ledger
The spending transactions are set up such that either party can send what's owed the other party immediately at the cost of having to wait some number of blocks for their funds to be released.Each time the state of the channel is updated, previous states are invalidated by participants exchanging the keys their commitment transactions spend to, thus allowing the counterparty to steal all the funds in the multisig only if a participant broadcasts an old commitment transaction.dinero electronico bitcoinIf you want to understand all of that better, then read the first 29 pages of the Lightning Network paper.bitcoin angel investorsIt's not important that you do in the context of this answer though.bitcoin etf australiaSuffice it to say, a microtransaction channel requires two parties to be able to update the channel's state off-chain, settle to the blockchain at any time, and take all the funds in the channel if the counterparty attempts to write an old channel state to the blockchain.
In Ethereum, this can be simplified quite a bit.One implementation might consist of a smart contract which accepts and verifies a signed transaction command and a nonce.(We can't just use native transactions for signing and verification like Bitcoin does because Ethereum transactions use an incrementing nonce to prevent playback attacks.)Participants would then send ether to the smart contract after creating and exchanging signed spending transaction commands similar to the ones in the Bitcoin channels.In particular, Alice would sign a transaction command sending funds immediately to Bob and locking funds for herself to be released after some amount of time, and vice versa.The smart contract would contain the logic that any funds timelocked for the counterparty can be claimed by producing a transaction command signed by the counterparty with a higher nonce than the one which the counterparty broadcast.This requires quite a bit less signing and private key juggling than the Bitcoin implementation does, and is (IMO) quite a bit easier to understand as well.
Raiden does something similar, except instead of using nested signatures it uses hashes and "preimages" (i.e., the inputs to the hashes).up vote 6 down vote A payment channel is certainly possible to build in the current version of ethereum.The details can vary, and for an extensive explanation, I suggest reading this paper about universal payment channels, but here is the general idea: Both parties send a deposit to a smart contract to ensure that they won't spend the money elsewhere in the meantime.If A want to send a message to B over the payment channel, A signs a message that contains the state of the channel, (i.e.the balances of the participants) but does not send it to the network.Instead, A sends it directly to B (over whisper or email or whatever).Now, B can of course do the same thing, and when they want to send more ether to each other, they keep signing update states.When a party wants to "cash out" they send the state message to the contract, that checks its signature, and the delivers the funds of the contract according to the state.