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

[Help]: How to use own private key instead of auto generated key #4

Open
0xSilkRoad opened this issue Apr 10, 2024 · 1 comment
Open

Comments

@0xSilkRoad
Copy link

Hi there, I'm still a newbie with psa-crypto-arduino.

Referring to the example of SignMessage.ino, is there a way I could sign a message using my own private key instead of the auto-generated key from the library?

If so, how would I store it? Thanks.

@as-iotex
Copy link
Member

Hi there,
You can find examples on how to import a key on the tests:
https://github.com/machinefi/psa-crypto-arduino/blob/main/tests/test_psa_import_key.cpp

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

No branches or pull requests

2 participants