Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helpful detail for Developer Guide #28

Open
illuzen opened this issue Jun 5, 2015 · 0 comments
Open

Helpful detail for Developer Guide #28

illuzen opened this issue Jun 5, 2015 · 0 comments

Comments

@illuzen
Copy link

illuzen commented Jun 5, 2015

It might be a good idea to add an example to the payment channel portion of the developer guide for the case that the provider simply returns a signature of the refund, not the refund itself. It took me a while to figure out I needed to make a TransactionSignature:

            var signature = new TransactionSignature({
                signature: signature_string,
                prevTxId: consumer.commitmentTx.hash,
                outputIndex: 0,
                inputIndex: 0,
                publicKey: server_key,
                sigtype: sigtype
            });

            try
            {
                refund_tx.applySignature(signature);

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant