Questions tagged [state-channels]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
14
votes
3answers
3k views

What are State Channels and use case/code examples?

A previous Reddit post gave some indication: It's basically Lightning-network style payment channels but for arbitrary state updates. Participants in the Dapp send messages with transactions to ...
5
votes
2answers
311 views

Offchain vs Sidechain vs StateChannel

What are the main differences between off-chain, sidechain and state channel? And what are the use-cases of all of these?
4
votes
1answer
101 views

Which state channel state is honest?

If Alice and Bob open a state channel with each other, for example a payment channel, and the state is as follows: Alice initial balance: 1ETH Bob initial balance: 1ETH Bob sends Alice 0.20ETH Alice ...
4
votes
1answer
66 views

Do state-channels only work for transactions that affect the sender negatively?

Mind the payment-channel case: Parties A and B lock the state of their balances, S0, on the blockchain. A makes a transaction by updating the state to S1, signing it and sending to B. B makes a ...
4
votes
1answer
436 views

Is there any architectural difference between Lightning and Raiden?

Lightning and Raiden are payment channel networks for Bitcoin and Ethereum respectively. Is there any difference between these projects in terms of architecture, or is Raiden simply an Ethereum ...
1
vote
2answers
261 views

Are Ethereum State Channels unidirectional or bidirectional? [duplicate]

Could anyone please tell me if the state channels are unidirectional or bidirectional? Also, if a node goes off-line with an open channel, is it still able to receive transactions? I mean, not to sign ...
1
vote
2answers
325 views

Are there any projects/applications using raiden network (or state channels in general) on ethereum?

http://raiden.network/ - This is a promising project leveraging off-chain state networks. Are there any early adopters for this technology ? I couldn't find any examples or sample applications on ...
1
vote
2answers
159 views

Nonce in Layer 2 State Channels

In Layer 2 Solution of Ethereum (State Channels), what I don't get is what about nonces? If we signed a state channel Tx with 13 nonce and don't put it on the chain for now, then if I make another Tx ...
1
vote
2answers
731 views

Sign and Verify transaction offchain

I want to sign and verify a transaction offchain, but I can't really find a proper example/documentation online from start to finish that explains the whole process. Can somebody point to some ...
1
vote
1answer
59 views

Implementing a state channel

I am trying to build a platform to play TicTacToe using DApps. The players invite others by placing a stake and then opponents accept it. The first turn is recorded on chain by calling a function in ...
1
vote
1answer
26 views

ELI5 the differences between sprites and traditional payment channels

There has been interest[1][2] lately in sprites-style payment channels. Could someone provide a quick comparison?
1
vote
2answers
413 views

“Micro-payment Channel” on Ethereum?

Is there any payment channel on Ethereum blockchain to support ex. Micro-payments ? Similar to the payment channels listed here : https://en.bitcoin.it/wiki/Payment_channels Such that we are able to ...
1
vote
1answer
54 views

How signed messages are sent when using Ethereum Payment Channels

So I've read Ethereum Payment Channel in 50 Lines of Code and have the general gist of how the contract works. But I don't understand how the signed messages are transmitted between Alice and Bob. ...
1
vote
1answer
44 views

How, precisely, a payment can be routed through N hops in a lightning network?

The question Alice <--50--> Bob <--50--> Steve <--50--> Anna Here, each arrow denotes a payment channel with capacity N eth. What is, step by step, the algorithm used to route a 10 ...
1
vote
0answers
81 views

What is missing to make a successful payment between payer and recipient?

I tested both signing payment and signature verification that is implemented by JavaScript and EthereumJS here: And both of them (signing and verification) properly work, meaning that I am sure the ...
1
vote
0answers
366 views

What's the difference between a side chain and a state channel? [duplicate]

I hear them almost used interchangeably, and I was wondering what the technical difference is so that I can use the terms correctly. From my understanding, a sidechain is a subset of a state ...
0
votes
1answer
199 views

“state channel” v.s “micro-payment channel” : are they the same?

We use "micro-payment channels" such as "Bitcoin Lightning Network" or "Duplex Micro-Payment Channels" for saving transaction fee, accelerating payments, supporting better micro-payment and scaling ...
0
votes
1answer
27 views

If a malicious party attempts to close a Raiden payment channel with incorrect balances, can they steal the deposit?

If a malicious party attempts to close a Raiden payment channel with incorrect balances, can they steal the deposit if the other party doesn't respond? If they close the channel and transmit that ...
0
votes
0answers
33 views

which is a better method to use for signing messages between two parties in web3?

I have been searching for a while for the most secure and supported way for off-chain channel messaging.....so i was using web3.eth.sign(address, keccak256(msg)) for singing messages ....but then used ...
0
votes
1answer
994 views

“UPDATED : ” “VM Exception while processing transaction: revert”

I tested signature verification of the code presented HERE as follows: running testRPC : root@ubuntu:/home/s# testrpc EthereumJS TestRPC v6.0.3 (ganache-core: 2.0.2) Available Accounts =============...
-2
votes
1answer
32 views

TypeError: No matching declaration found after argument-dependent lookup

ERROR:TypeError: No matching declaration found after argument-dependent lookup.require (positionIsInBounds(xpos,ypos)); ^-----^ pragma solidity ^0.5.1; contract TicTacToe { //addresses of ...