perun-network / perun-fabric

go-perun Hyperledger Fabric chaincode and backend
Apache License 2.0
3 stars 0 forks source link

Channel: Implement channel.Funder interface #1

Closed RmbRT closed 2 years ago

RmbRT commented 2 years ago

This should mainly consist of using https://github.com/perun-network/perun-eth-backend/tree/main/channel as a reference and writing some glue code, as all internal functionality seems to already exist.

RmbRT commented 2 years ago

@leandro-ro

matthiasgeihs commented 2 years ago

The main interface to look at here is: https://github.com/hyperledger-labs/go-perun/blob/1ef7ed51db7842d425016cc8dc915cc31ac5ee5d/channel/funder.go#L27

The Eth implementation is quite involved. Looking at https://github.com/perun-network/perun-polkadot-backend/blob/main/channel/pallet/funder.go and https://github.com/hyperledger-labs/perun-cosmwasm-backend/blob/main/channel/funder.go might be helpful too.