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

multiple input addresses #673

Closed
dev-dantealighieri opened this issue Jul 5, 2024 · 2 comments
Closed

multiple input addresses #673

dev-dantealighieri opened this issue Jul 5, 2024 · 2 comments

Comments

@dev-dantealighieri
Copy link

Hi,

I want to create an offline transaction, and sign it on an offline computer using npm library elliptic.

I can create transactions from one input address to multiple output addresses using your library, what i want is to have more than 1 different input addresses, and create many-input/many-output transactions such as in Bitcoin.

Is there way for creating a data to sign, and somehow sign it using the private keys of 2 different addresses?

If so, how can I do it?

thanks, Dante

@Emurgo Emurgo deleted a comment Jul 6, 2024
@lisicky
Copy link
Contributor

lisicky commented Jul 14, 2024

Hey @dev-dantealighieri ! I hope you are well on all 9 circles of hell, because current one 10th ( yeah, times changing)

To build in transaction in the CSL I recommend you TransactionBuilder type. It has set_inputs that accepts instance of TxInputsBuilder and by TxInputsBuilder you can specify any number of inputs, till it reaches transaction size limit

@dev-dantealighieri
Copy link
Author

hey @lisicky

I am having great time here, never been to 10th circle, I'll check it out! 😄

thank you for your answer, have a nice day!

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

2 participants