Closed sebastianst closed 2 years ago
@cryptphil The App
can actually be encoded. In perunio
encoding, we do it using the AppDef() wallet.Address
as wire value and then channel.Resolve
to resolve the Address
back into an App
. But I spoke to @matthiasgeihs last week about this PR and we're probably not gonna merge it anyways and I'll instead use this json implementation in the perun-fabric repository, where I don't need apps. So I won't spend time implementing this last bit unless we decide to put it into go-perun
.
@cryptphil The App can actually be encoded. In perunio encoding, we do it using the AppDef() wallet.Address as wire value and then channel.Resolve to resolve the Address back into an App. But I spoke to @matthiasgeihs last week about this PR and we're probably not gonna merge it anyways and I'll instead use this json implementation in the perun-fabric repository, where I don't need apps. So I won't spend time implementing this last bit unless we decide to put it into go-perun.
Oh okay, I understand.
Still, good to know that it would even be possible to (un)marshal the remaining fields App
and thus also Data
.
As we discussed, will implement JSON marshaling directly in perun-fabric. So closing this PR as obsolete.
For now, only
States
andParams
withoutApp
andData
are supported.While using any particular backend, the implementations of
Asset
andAddress
must be JSON marshalable.