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

Improve delegation tx management #39

Closed
wants to merge 6 commits into from
Closed

Conversation

safanaj
Copy link

@safanaj safanaj commented Oct 21, 2022

This closes #37
This closes #38

This will add some minimal (opinionated) helper functions regarding bech32 (also exposing these) and stake address management.
The core of this proposal is the tx builder improvement to be able to set in advance a number of expected witness aiming for the correct fee calculation, allowing us to build a tx that is partially signed.

In my case I am using it to build a tx that include a stake delegation cert, and the only "payment" input is owned by someone that is not the owner of the stake key. In this way I prepare in the backend the tx (paying the delegation tx fee) and propose the 3rd part to sign the tx w/o spending nothing.

I guess the code is more clear that my explanation.

@echovl
Copy link
Owner

echovl commented Nov 15, 2022

There are good ideas here but i think it would be better to split this in two PRs, one for the tx witness update and other for the bech32 stuff, that works for you? @safanaj

@safanaj
Copy link
Author

safanaj commented Nov 15, 2022

Hi @echovl, yes it does for me. Also I will cleanup (maybe put a 3rd PR) for the cardano-cli changes (that are not well shaped (just used in one of my little stuff for convenience.

I will submit a PR to propose Node iface improvement adding the koios support

@safanaj
Copy link
Author

safanaj commented Nov 15, 2022

Close this PR in favor of 2 split ones.

@safanaj safanaj closed this Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants