[noise] Using X25519 keypair obtained by Ed25519 conversion
Nazar Mokrynskyi
nazar at mokrynskyi.com
Tue Nov 7 03:14:06 PST 2017
I've just ported keys conversion functions from libsodium in C to WebAssembly (JavaScript) and it still converts to mentioned keypair. I hoped there was a mistake in ed2curve library, but since libsodium generates the same result there is something more.
Here are relevant functions from libsodium project: https://github.com/jedisct1/libsodium/blob/4705c0a06681d48ceec5ecbb66d496fd70c59bba/src/libsodium/crypto_sign/ed25519/ref10/keypair.c#L42-L78
Is Noise using some other form of X25519 keys incompatible with libsodium?
Sincerely, Nazar Mokrynskyi
github.com/nazar-pc
On 11/6/17 1:56 PM, Nazar Mokrynskyi wrote:
>
> Interesting, it works when changing public key to yours, thanks!
>
> Will probably fill an issue in library mentioned earlier.
>
> Sincerely, Nazar Mokrynskyi
> github.com/nazar-pc
> On 11/6/17 1:45 PM, David Wong wrote:
>> From this Golang code your public key is incorrect:
>> https://gist.github.com/mimoo/1af93fe436c75511b737eddd9fe763bb
>>
>> calculated public key:
>> 5b3e994f771a950c6ae29bb7f8ae0593c46d4a73312c15db3436b485468bbb6d
>> given public key:
>> 26100e941bdd2103038d8dec9a1884694736f591ee814e66ae6e2e2284757136
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://moderncrypto.org/mail-archive/noise/attachments/20171107/dc06fe2e/attachment.html>
More information about the Noise
mailing list