xaya / libxayagame

MIT License
21 stars 19 forks source link

Add channel signer based on Ethereum addresses #119

Closed domob1812 closed 2 years ago

domob1812 commented 2 years ago

This adds an EthSignatureVerifier and EthSignatureSigner to channelcore. They implement signatures based on Ethereum addresses and Ethereum message signing, with a private key held locally in memory. As such, they provide a fully self-contained signature scheme without any external dependencies (like an RPC connection to Xaya Core). This is useful of course for channel games running on Ethereum, but also can be useful in general for that reason.

To provide this, we have to add eth-utils as a new dependency for libxayagame (as well as libsecp256k1 which it uses itself). Both of them are light-weight and without complex further dependencies, so this is not a big issue.