Skip to content

adosia/cardano-arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About:

This library contains the following functions.

void create_ed25519_keyfile();
void remove_ed25519_keyfile();
String load_ed25519_keyfile();
String sign_ed25519_tx( String tx, const char* psk );
bool verify_ed25519_tx( String tx, uint8_t *pkk, uint8_t* signature );

create_ed25519_keyfile()
:: This function checks if a ed25519 key file exists on the device if not it creates one.
remove_ed25519_keyfile()
:: This function removes all key files on the device.
load_ed25519_keyfile()
:: This function opens the ed25519 file if it exists and returns the psk.
sign_ed25519_tx(String tx, const char* psk)
:: This function takes in a tx and the private key obtained with `load_ed25519_keyfile()` and creates a signature for it and also verifies.
verify_ed25519_tx( String tx, uint8_t *pkk, uint8_t* signature )
:: This function will take in your tx, private key from `load_ed25519_keyfile()` and signature from  `sign_ed25519_tx` functions and verify the signature matches the hash. This function is also used in sign_ed25519_tx as an extra measure.

How to Use:

Make sure you take all the library folders included in this directory and move them to your OS Adruino library folder. Once you load up the example sketch and all the included libraries are in the correct places on your system you sohuld be able to compile and use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages