Keypair examples:
eddsa.py -t ed25519 -k
#Ed25519-SHA-512
PUBLICKEY=fde0e97dc97a8c46e5182033393cfc9bc0bbd24d9a83e8e22dfe019db4cfe4e7
SECRETKEY=0e86b13caa7c114fda61767c9a923898364caac838b2897303c942548f39f733fde0e97dc97a8c46e5182033393cfc9bc0bbd24d9a83e8e22dfe019db4cfe4e7
eddsa.py -t ed41417 -k
#Ed4417-SHA-512/832
PUBLICKEY=522207f49e8eee913117004067f09ef8406c96f1d3a3e7eeb4283de8343d05fe062e7398ebea79914a75a28a5d28a765bf601f95
SECRETKEY=38f2cb39a5fdee39078fdba4a4e90442f08dd799604cbabea12000129cb0fb235038240c2c68341234fd6e0add783de0611d68e7522207f49e8eee913117004067f09ef8406c96f1d3a3e7eeb4283de8343d05fe062e7398ebea79914a75a28a5d28a765bf601f95
eddsa.py -t ed448 -k
#Ed448-SHA-512/912
PUBLICKEY=7f7eea104ab5925ee8f9efdae67bed4dad5731595df91b122516b511119362fae9ed574b4c5130969e3422dba441d8f4f608c6cc3021629500
SECRETKEY=0b5b8fdb321f4f6f7aeb62c7f7655e02622961f3aa1a634b8a2875d64f195c2369528805964a6a0dee0c2f11a4df5a7a24ffb181e44865c4437f7eea104ab5925ee8f9efdae67bed4dad5731595df91b122516b511119362fae9ed574b4c5130969e3422dba441d8f4f608c6cc3021629500
eddsa.py -t ed521 -k
#Ed521-SHA-512/1056
PUBLICKEY=efcc59ea49d84db23954a64f52ac512f508ef0210abec7ff6d37074350f0747f43c2629f110b2e15a5c164078ab63c2bd274987683c966a99be8dd15b905fdc32d00
SECRETKEY=f8e74a104b9b8f35b2233886a1a2750030ddfabd86a8615e855cd3365e29c12fc71559fef24b6e57f90466780c742648d7a612d5247c541a62426be5d364a6f1554defcc59ea49d84db23954a64f52ac512f508ef0210abec7ff6d37074350f0747f43c2629f110b2e15a5c164078ab63c2bd274987683c966a99be8dd15b905fdc32d00
Sign/open examples:
PUBLICKEY=fde0e97dc97a8c46e5182033393cfc9bc0bbd24d9a83e8e22dfe019db4cfe4e7
SECRETKEY=0e86b13caa7c114fda61767c9a923898364caac838b2897303c942548f39f733fde0e97dc97a8c46e5182033393cfc9bc0bbd24d9a83e8e22dfe019db4cfe4e7
export PUBLICKEY
export SECRETKEY
echo "ahoj" | eddsa.py -t ed25519 -s "${SECRETKEY}" | eddsa.py -t ed25519 -o "${PUBLICKEY}"
PUBLICKEY=522207f49e8eee913117004067f09ef8406c96f1d3a3e7eeb4283de8343d05fe062e7398ebea79914a75a28a5d28a765bf601f95
SECRETKEY=38f2cb39a5fdee39078fdba4a4e90442f08dd799604cbabea12000129cb0fb235038240c2c68341234fd6e0add783de0611d68e7522207f49e8eee913117004067f09ef8406c96f1d3a3e7eeb4283de8343d05fe062e7398ebea79914a75a28a5d28a765bf601f95
export PUBLICKEY
export SECRETKEY
echo "ahoj" | eddsa.py -t ed41417 -s "${SECRETKEY}" | eddsa.py -t ed41417 -o "${PUBLICKEY}"
#Ed448-SHA-512/912
PUBLICKEY=7f7eea104ab5925ee8f9efdae67bed4dad5731595df91b122516b511119362fae9ed574b4c5130969e3422dba441d8f4f608c6cc3021629500
SECRETKEY=0b5b8fdb321f4f6f7aeb62c7f7655e02622961f3aa1a634b8a2875d64f195c2369528805964a6a0dee0c2f11a4df5a7a24ffb181e44865c4437f7eea104ab5925ee8f9efdae67bed4dad5731595df91b122516b511119362fae9ed574b4c5130969e3422dba441d8f4f608c6cc3021629500
export PUBLICKEY
export SECRETKEY
echo "ahoj" | eddsa.py -t ed448 -s "${SECRETKEY}" | eddsa.py -t ed448 -o "${PUBLICKEY}"
PUBLICKEY=efcc59ea49d84db23954a64f52ac512f508ef0210abec7ff6d37074350f0747f43c2629f110b2e15a5c164078ab63c2bd274987683c966a99be8dd15b905fdc32d00
SECRETKEY=f8e74a104b9b8f35b2233886a1a2750030ddfabd86a8615e855cd3365e29c12fc71559fef24b6e57f90466780c742648d7a612d5247c541a62426be5d364a6f1554defcc59ea49d84db23954a64f52ac512f508ef0210abec7ff6d37074350f0747f43c2629f110b2e15a5c164078ab63c2bd274987683c966a99be8dd15b905fdc32d00
export PUBLICKEY
export SECRETKEY
echo "ahoj" | eddsa.py -t ed521 -s "${SECRETKEY}" | eddsa.py -t ed512 -o "${PUBLICKEY}"
Python examples:
>>> import eddsa
>>> pk,sk = eddsa.crypto_sign_ed41417_keypair()
>>> print pk.encode("hex")
c1e4d274f5625301113a7c9a9c27c4e08de47b604af1eb6aa21f67cfb250422545ea49cb1de4f56206145639919551fed048aa2a
>>> print sk.encode("hex")
0ccaf55f76b6031840cefa22148a59de815c194698fbc175f5990ae96cf76944744dd844cd91a6cd980cbe07d4c0de4454400598c1e4d274f5625301113a7c9a9c27c4e08de47b604af1eb6aa21f67cfb250422545ea49cb1de4f56206145639919551fed048aa2a
>>>
>>> print eddsa.crypto_hash_sha512912("test").encode("hex")
7f5c76d60b3b9731a6403cceec04d5438cc09795e0b32d39be0f5aa4b4dcc0004e75c31aba8a85f5270938d9f5922929e4844909257615f626541ad7e126da250f4ebbddd4ebd2ef9e0154493932d6ae94e9755ccad425858414d8a1ec8611ee853e65205f79bbeb1ad8103d57adb27e9c20