paulmillr / noble-ed25519

Fastest 4KB JS implementation of ed25519 signatures
https://paulmillr.com/noble
MIT License
420 stars 51 forks source link

Compatibility with libsodium generated keys #69

Closed rdzidziguri closed 2 years ago

rdzidziguri commented 2 years ago

I am trying to integrate with the service and replace it. Service was developed in PHP and is using libsodium ed25519 implementation. It has a 64-bit private key, so I am struggling to understand if this library can be used to sign messages and make it compatible with messages signed by libsodium.

paulmillr commented 2 years ago

They are fully compatible: noble private keys is either "seed" in libsodium, or "first 32 bytes of 64-byte private key".