Skip to content

Conversation

Anviking
Copy link
Member

@Anviking Anviking commented Mar 22, 2022

Comments

Integration tests are:

    BYRON_SCRYPT_TRANS_CREATE_01 - wallet with password
    BYRON_SCRYPT_TRANS_CREATE_02 - wallet without password

Some tested scenarios

Issue Number

Partly related to ADP-842 and potentially (that's what we'd like to find out) to https://input-output.atlassian.net/browse/ADP-1335

@Anviking Anviking self-assigned this Mar 22, 2022
@Anviking Anviking marked this pull request as draft March 22, 2022 19:00
@Anviking Anviking requested review from piotr-iohk and rvl March 22, 2022 19:03
\326f4f777a736e4e746f4e655049416e4f6b7978426549494a6b59623039574\
\b564a7159493d"
, password =
"0000000000000000000000000000000000000050415441544520504154415445"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think password is probably not fit for use litelarly in cardano-wallet as it's most likely old wallet's "format".
In old wallet password was:

The spendingPassword is optional but highly recommended. It a string of 32 characters, encoded in base 16, yielding to an hexadecimal sequence of 64 bytes. This passphrase is required for sensitive operations on the wallet and adds an extra security layer to it.

https://input-output-hk.github.io/cardano-wallet-legacy/#section/Getting-Started/Creating-a-New-Wallet

Having said that:

$ echo "0000000000000000000000000000000000000050415441544520504154415445" | xxd -p -r
PATATE PATATE

(classic) ;P

Copy link
Member Author

Choose a reason for hiding this comment

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

THANKS! It now works!

I had to both

  • fix the passphrase
  • drop the hashMaybe I was suspicious of from preparePassphrase (and saw no trace of in cardano-sl)

This might mean we have found the culprit for https://input-output.atlassian.net/browse/ADP-1335 then 🤞

@Anviking
Copy link
Member Author

Anviking commented Mar 22, 2022

bors try

I'm guessing some old verify-passphrase golden test might fail because the checkPassphrase function wasn't updated. Let's see.

iohk-bors bot added a commit that referenced this pull request Mar 22, 2022
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Mar 22, 2022

try

Build failed:

Copy link
Contributor

@piotr-iohk piotr-iohk left a comment

Choose a reason for hiding this comment

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

🤞

@Anviking Anviking force-pushed the anviking/ADP-842/test-postRandomWalletFromXPrv branch from 62d63e9 to cde1767 Compare March 23, 2022 17:02
@Anviking Anviking marked this pull request as ready for review March 23, 2022 17:44
@Anviking Anviking marked this pull request as draft March 23, 2022 22:27
, password = ""
}
where
runByronScryptGolden :: ByronScryptGolden -> ActionWith Context
Copy link
Member Author

@Anviking Anviking Mar 24, 2022

Choose a reason for hiding this comment

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

I should add a comment somewhere explaining what it does. Or add to the hspec title.

@Anviking Anviking force-pushed the anviking/ADP-842/test-postRandomWalletFromXPrv branch from cde1767 to db9c4ad Compare April 5, 2022 09:50
@Anviking
Copy link
Member Author

bors try

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Apr 19, 2022

try

Merge conflict.

@Anviking Anviking closed this Apr 19, 2022
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.

2 participants