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

CIP-0003: Fix Ledger algorithm and one wrong test vector #132

Merged
merged 2 commits into from
Oct 18, 2021

Conversation

benma
Copy link
Contributor

@benma benma commented Sep 23, 2021

There was a typo in the pseudo code.

The second test vector has an incorrect output, the other two are
correct.

One can verify the test vectors by modifying this line and running the
script:

https://github.com/LedgerHQ/orakolo/blob/0b2d5e669ec61df9a824df9fa1a363060116b490/src/python/orakolo/HDEd25519.py#L467

There was a typo in the pseudo code.

The second test vector has an incorrect output, the other two are
correct.

One can verify the test vectors by modifying this line and running the
script:

https://github.com/LedgerHQ/orakolo/blob/0b2d5e669ec61df9a824df9fa1a363060116b490/src/python/orakolo/HDEd25519.py#L467
@crptmppt crptmppt added Update Adds content or significantly reworks an existing proposal Correction Fixing minor issue or typo labels Sep 29, 2021
@crptmppt
Copy link
Contributor

@SebastienGllmt - see if able to confirm ahead of meeting if possible

@@ -82,7 +84,7 @@ function tweakBits(data) {

master key
```
1091f9fd9d2febbb74f08798490d5a5727eacb9aa0316c9eeecf1ff2cb5d8e55bc21db1a20a1d2df9260b49090c35476d25ecefa391baf3231e56699974bdd46652f8e7dd4f2a66032ed48bfdffa4327d371432917ad13909af5c47d0d356beb
587c6774357ecbf840d4db6404ff7af016dace0400769751ad2abfc77b9a3844cc71702520ef1a4d1b68b91187787a9b8faab0a9bb6b160de541b6ee62469901fc0beda0975fe4763beabd83b7051a5fd5cbce5b88e82c4bbaca265014e524bd
Copy link
Member

Choose a reason for hiding this comment

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

👍 Good catch. I confirm this from the cardano-wallet's Haskell implementation.

@SebastienGllmt SebastienGllmt merged commit 09d7d8e into cardano-foundation:master Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Correction Fixing minor issue or typo Update Adds content or significantly reworks an existing proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants