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

Add support for building partially signed transaction (especially delegation ones) #38

Open
safanaj opened this issue Oct 21, 2022 · 0 comments

Comments

@safanaj
Copy link

safanaj commented Oct 21, 2022

I would like to be able to create a transaction that include delegation certificate for a 3rd party (the stake key owner) that will sign the tx lately.
To do so the address package should be improved to facilitate the management of stake addresses (aka reward addresses), and allow the tx builder to know that the transaction will be signed by a well known number of witnesses in advance, to be able to calculate fees correctly.

safanaj added a commit to safanaj/cardano-go that referenced this issue Nov 15, 2022
* allow to set additional witnesses for partially signed tx preparation
* change calculateMinFee to consider additional witnesses that will
  increase the tx length. It is still not clear how to precisely
  calculate the bytes for witnesses, in this implementation
  for each additional witnesses there will be an additional 100 bytes,
  (32 public key, 64 signature, 4 index/key in cbor). Those are not
  actually enough so we are considering 1 additional byte
  for each additional witness after the first.
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

Successfully merging a pull request may close this issue.

1 participant