Two questions: co-signed off-chain and channel.update with metadata

Hello!

I was trying to check availability of API required for features which didn’t made it for the payment app v1, and wasn’t able to found:

  • Channel.update() function which could include some metadata

  • A way to include - add a co-signed tx into a channel.

Was that made available? Links?

Thanks!!

1 Like
  • Channel.update() function which could include some metadata

This is not implemented yet but should be included soon.

  • A way to include - add a co-signed tx into a channel.

Do you mean backchannel update? If so you can check can post backchannel update test case for example usage.

1 Like

Great!

Good to know, Thanks!!!

(When I’ve tried to do this, I made:

const result = await responderCh.update(
      await initiator.address(),
      await responder.address(),
      100,
      async (tx) => responder.signTransaction(
                              await initiator.signTransaction(tx)
      )

unsuccessfully).

thanks again!

@mpowaga and @dave whenever you figured out stuff, even simple things, please let us all know. Also short videos or a little how-to guide can help people to get started with channels

1 Like

It won’t work because signTransaction will replace the signature and resulting transaction will have only one signature (in this case it will be responder’s signature). Check appendSignature function in can post backchannel update test case (maybe this method should be exposed by js-sdk).

1 Like

Yes yes, I’ve tried that one successfully taken from the link you gave me! Thanks!

1 Like

By the way. Today I’ve implemented metadata support. It’s not released yet but should be included in the next release. You can check this PR.

3 Likes