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

assign default encryption scheme for passphrase with none. #1704

Merged
merged 4 commits into from
Jun 2, 2020

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Jun 2, 2020

Issue Number

#1701

Overview

  • a4dd767
    📍 assign default encryption scheme for passphrase with none.

Comments

cc @nikolaglumac

@KtorZ KtorZ requested a review from paweljakubas June 2, 2020 07:46
@KtorZ KtorZ self-assigned this Jun 2, 2020
Copy link
Contributor

@paweljakubas paweljakubas left a comment

Choose a reason for hiding this comment

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

looks like a fix that addresses the case when we had updated password that had not passphrase schema and was not exposed (because resulted in Nothing)

Alternatively, we could solve this via manual migration...

KtorZ added 2 commits June 2, 2020 10:16
This is cleaner than doing some add-hoc transformation when the wallet
gets read from the database. And, it allows for some unit testing to
happen!
@@ -378,6 +414,7 @@ migrateManually tr defaultFieldValues =
_ <- Sqlite.step addColumn
Sqlite.finalize addColumn
where
activeSlotCoeff = DBField CheckpointActiveSlotCoeff
Copy link
Member Author

Choose a reason for hiding this comment

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

moved from above.

@@ -353,6 +388,7 @@ migrateManually tr defaultFieldValues =
Sqlite.finalize stmt
where
hardLowerBound = toText $ fromEnum $ minBound @(Index 'Hardened _)
rndAccountIx = DBField RndStateAddressAccountIndex
Copy link
Member Author

Choose a reason for hiding this comment

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

moved from above.

@KtorZ KtorZ force-pushed the KtorZ/1701/passphrase-scheme-fix branch from 5762d5a to 05b6fd7 Compare June 2, 2020 15:15
@KtorZ
Copy link
Member Author

KtorZ commented Jun 2, 2020

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 2, 2020
1704: assign default encryption scheme for passphrase with none. r=KtorZ a=KtorZ

# Issue Number

<!-- Put here a reference to the issue this PR relates to and which requirements it tackles -->

#1701 

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- a4dd767
  📍 **assign default encryption scheme for passphrase with none.**


# Comments

<!-- Additional comments or screenshots to attach if any -->

cc @nikolaglumac

<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Assign the PR to a corresponding milestone
 ✓ Acknowledge any changes required to the Wiki
-->


Co-authored-by: KtorZ <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 2, 2020

Build failed

@KtorZ
Copy link
Member Author

KtorZ commented Jun 2, 2020

bors retry

iohk-bors bot added a commit that referenced this pull request Jun 2, 2020
1704: assign default encryption scheme for passphrase with none. r=KtorZ a=KtorZ

# Issue Number

<!-- Put here a reference to the issue this PR relates to and which requirements it tackles -->

#1701 

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- a4dd767
  📍 **assign default encryption scheme for passphrase with none.**


# Comments

<!-- Additional comments or screenshots to attach if any -->

cc @nikolaglumac

<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Assign the PR to a corresponding milestone
 ✓ Acknowledge any changes required to the Wiki
-->


Co-authored-by: KtorZ <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 2, 2020

Build failed

@KtorZ KtorZ merged commit d8d402b into master Jun 2, 2020
@KtorZ KtorZ deleted the KtorZ/1701/passphrase-scheme-fix branch June 2, 2020 20:02
@KtorZ KtorZ added the RESOLVING ISSUE Mark a PR as resolving issues, for auto-generated CHANGELOG label Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RESOLVING ISSUE Mark a PR as resolving issues, for auto-generated CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants