hyperledger-labs / go-perun

🌔 Perun's Blockchain-Agnostic State Channels Framework in Go.
https://perun.network/
Apache License 2.0
55 stars 18 forks source link

Separate wire address #350

Closed matthiasgeihs closed 2 years ago

matthiasgeihs commented 2 years ago

Closes #234.

In general, this PR will ensure that wire.Address and wallet.Address are distinct. Before, wire.Address was a synonym for wallet.Address, which caused some problems, in particular, mixing up wire.Address and wallet.Address and adding functionality to wallet.Address which was specific to the use case of wire.Address (concretely, the Cmp function).

In this PR we assign both their own type.