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

feat(dpp): add withdraw purpose for IdentityPublicKey #317

Merged
merged 1 commit into from
Mar 31, 2022

Conversation

shuplenkov
Copy link
Collaborator

@shuplenkov shuplenkov commented Mar 29, 2022

Issue being fixed or feature implemented

Need to implement withdrawal purpose for identity pub key

What was done?

Added new Purpose - withdraw

How Has This Been Tested?

With tests

Breaking Changes

No

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@shuplenkov shuplenkov added this to the v0.23.0 milestone Mar 29, 2022
@jawid-h jawid-h changed the title feat: withdraw purpose feat(dpp): add withdraw purpose for IdentityPublicKey Mar 30, 2022
Copy link
Collaborator

@jawid-h jawid-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks legit

@@ -240,6 +240,7 @@ IdentityPublicKey.PURPOSES = {
AUTHENTICATION: 0,
ENCRYPTION: 1,
DECRYPTION: 2,
WITHDRAW: 3,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation here doesn't align with the Identity DIP: https://github.com/dashpay/dips/blob/master/dip-0011.md#identity-public-key which uses purpose 3 for something else and doesn't include withdraw. That difference will need to be reconciled with the DIP at some point.

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 this pull request may close these issues.

None yet

3 participants