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

Added signer authorization generation option that uses standard Ethereum app #65

Conversation

italo-sampaio
Copy link
Collaborator

  • Added new "eth" option to signap.py
  • Added DongleEth class to handle communication with the Ethereum app
  • Added unit tests for DongleEth class
  • Added unit tests for the new signapp.py "eth" operation

Copy link
Collaborator

@amendelzon amendelzon left a comment

Choose a reason for hiding this comment

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

Looking great, I think we should make some minor tweaks and then we should be good to go.

middleware/admin/dongle_eth.py Outdated Show resolved Hide resolved
middleware/admin/dongle_eth.py Outdated Show resolved Hide resolved
middleware/signapp.py Outdated Show resolved Hide resolved
middleware/admin/dongle_eth.py Show resolved Hide resolved
…app to generate signer authorization

- Added new "eth" option to signap
- Added DongleEth class to handle communication with the Ethereum app
- Added unit tests for DongleEth class
- Added unit tests for the new signapp "eth" operation
- Added new option to to_binary() method that allows encoding to little-endian or big-endian
- Using existing classes to parse the eth path on dongle_eth
@italo-sampaio italo-sampaio force-pushed the enhancement/59-enhance-signapp-with-ethereum-app-signing-capabilities branch from 14edda1 to ae0b400 Compare July 4, 2022 18:58
amendelzon
amendelzon previously approved these changes Jul 4, 2022
Copy link
Collaborator

@amendelzon amendelzon left a comment

Choose a reason for hiding this comment

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

LGTM!

A validation and additional minor comment I think we could address for readability purposes, but nothing major. Great stuff!

- Added meaningful error messages to dongle_eth.py
- Added new -b/--pubkey flag to signapp.py to retrieve public key from eth app
- Added new unit tests for specific exceptions from songle_eth.py
- Some names changed for clarity
middleware/signapp.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@amendelzon amendelzon left a comment

Choose a reason for hiding this comment

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

LGTM!

@italo-sampaio italo-sampaio merged commit e7151ff into master Jul 5, 2022
@italo-sampaio italo-sampaio deleted the enhancement/59-enhance-signapp-with-ethereum-app-signing-capabilities branch July 5, 2022 22:00
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