You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running in troubles, because i need a function to convert ed25519 extended keys into a curve25519 one, so i can later do a DH on it. Theses extended keys are used on the cardano blockchain and i think follow the NaCl: https://cips.cardano.org/cips/cip16/ BIP32-Ed25519 extended keys (Ed25519 extended keys with BIP32-style derivation)
Do you see a chance to update the convertSecretKey function do also convert such extended keys?
I'm no expert, so I'm not sure if I am providing the right answer, but Ed25519 private keys are usually 64 bytes long, and they are usually encoded so that the first half (32bytes) is the secret key and the second half is the public key.
In the convertSecretKey function, it already processes only the first 32 bytes of the secret key, so it should work correctly. Are you asking about the 96 bytes extended keys that also contain the chain code in 32 bytes?
Hi, yes normally. But extended ed25519 keys have real 64 bytes for the keypart. Can be extended further with a chaincode, but not a must. But most of the time yes, 64 byte secret key + 32 byte chaincode. or, 64 byte secret key + 32 byte public key + 32 byte chaincode.
Hi,
first, awesome lib! 👍
I am running in troubles, because i need a function to convert ed25519 extended keys into a curve25519 one, so i can later do a DH on it. Theses extended keys are used on the cardano blockchain and i think follow the NaCl:
https://cips.cardano.org/cips/cip16/
BIP32-Ed25519 extended keys (Ed25519 extended keys with BIP32-style derivation)
Do you see a chance to update the
convertSecretKey
function do also convert such extended keys?Example keys:
Best regards,
Martin
The text was updated successfully, but these errors were encountered: