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 pool gap capability #283

Open
paweljakubas opened this issue Nov 27, 2024 · 0 comments
Open

Add pool gap capability #283

paweljakubas opened this issue Nov 27, 2024 · 0 comments
Labels
haskell PR:ADDING FEATURE Mark a PR as adding a new feature, for auto-generated CHANGELOG

Comments

@paweljakubas
Copy link
Collaborator

paweljakubas commented Nov 27, 2024

Context

Various resources being children of accXPrv play role in cardano blockchain. It would be good to be able to generate all possible keys that can participate at a given moment:

  • stake credential
  • payment credentials which set is ruled by pool gap and the latest used index - here both external and internal ones (changes)
  • policy keys used in asset minting
    Having that one could easily produce resources to be observed in a given moment. It could be useful building block of wallet, should nicely compose with kupo, etc.

Decision

Let's create proper functionality in core and expose it in command line:

cat acct.xsk | cardano-address key set --poolgap 20 --used 1 --all 
cat acct.xsk | cardano-address key set --poolgap 20 --number 1  --stake
cat acct.xsk | cardano-address key set --poolgap 20 --used 11 --external
cat acct.xsk | cardano-address key set --poolgap 20 --used 12 --internal
cat acct.xsk | cardano-address key set --poolgap 20 --number 1 --policy --stake
cat acct.xsk | cardano-address key set --poolgap 20 --number 100 --all     //100 external, 100 internal, 1 policy, 1 stake

There should be optional also to determine if it is signing or verification key.

Acceptance Criteria


Development

QA

@paweljakubas paweljakubas added haskell PR:ADDING FEATURE Mark a PR as adding a new feature, for auto-generated CHANGELOG labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
haskell PR:ADDING FEATURE Mark a PR as adding a new feature, for auto-generated CHANGELOG
Projects
None yet
Development

No branches or pull requests

1 participant