-
Notifications
You must be signed in to change notification settings - Fork 1
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
R&D: WAMP CryptoSign #1
Comments
|
This Arduino sketch demonstrates how to perform cryptographic signing of a challenge using the Ed25519 algorithm. The code includes functions to convert between hexadecimal and binary formats and uses global variables for the private key, public key, and challenge for ease of access throughout the program. FunctionalityHex to Binary Conversion:The hex2bin function converts a hexadecimal string to a binary format. Binary to Hex Conversion:The bin2hex function converts a binary array to a hexadecimal string. Global Variables:private_key, public_key, and challenge are declared globally and initialized with specific values in the setup function. Signing Function:The sign_cryptosign_challenge function generates a cryptographic signature of the challenge using the Ed25519 algorithm, converts the signature to a hexadecimal string, and prints the concatenated signature and challenge in hexadecimal format.
How to UseSetup:Ensure you have the necessary libraries (Crypto, SHA256, Curve25519, Ed25519) installed in your Arduino IDE. You can find these libraries in the arduino-crypto repository. Upload:Upload the sketch to your Arduino board. Monitor Output:Open the Serial Monitor to see the generated signature and challenge in hexadecimal format. |
works as expected |
Need code to sign cryptosign challenge
The text was updated successfully, but these errors were encountered: