Skip to content

void4/paymentchannel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethereum payment channels for Python

Example

This is an improved implementation of the https://github.com/obscuren/whisper-payment-channel contract.

Changelog:

  • renamed owner and beneficiary to sender and receiver, validUntil to expiry
  • to avoid sender using one channel for different receivers, added an address field to the payment channel data structure
  • included the channel contracts address in getHash, to prevent reuse of signatures in a new contract instance
  • only allow receiver to claim channel, to prevent attacks resulting in costs for opening and closing new channels

Open questions

Should the contract use the receiver address or channel id as event index? (except for NewChannel)
Is there a reason to use hash as channel id instead of incrementing integer?

About

Ethereum API payments with the hug framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages