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

RewardAddress method naming: why payment_cred() and not stake_cred()? #659

Open
klntsky opened this issue Jan 22, 2024 · 1 comment
Open

Comments

@klntsky
Copy link

klntsky commented Jan 22, 2024

Reward addresses contain stake key only, so why is the method called payment_cred?

@lisicky
Copy link
Contributor

lisicky commented Jan 25, 2024

Hi @klntsky! I'm not sure about initial reason of naming, but it might be because a credential is used for reward withdrawal. Yes reward address contains a staking credential but purpose of the credential is different here and semantic of reward address is different from other address types. In CDDL it is just credential https://github.com/IntersectMBO/cardano-ledger/blob/5f76eb918c16645ed98a7fbab513c2d549837ed5/eras/babbage/impl/cddl-files/babbage.cddl#L172

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