While informing myself on the inner-working of Monero, I stumbled on Curve25519.
The CryptoNote White Paper states:
l: a prime order of the base point; l = 2^252 + 27742317777372353535851937790883648493;
[...]
private ec-key is a standard elliptic curve private key: a number a ∈ [1, l − 1];
Another Stack Exchange answer states the following:
All you need protocol-wise is a private spend key and a private view key, where a private key is just some number smaller than
lwherelis a prime order of the EC curve basepointl=2^252 + 27742317777372353535851937790883648493. Anything bigger than that will get wrapped around ieaanda+lare equivalent.
From my understanding this means that a private key a has the same derived public key as private key a+l.
I've however been unable to reproduce the said "wrapping".
Using a very random a=0x1111111111111111111111111111111111111111111111111111111111111111 I calculated a+l=0x2111111111111111111111111111111125f00aefb408ade76923742b6e06e4fe.
I then tried to use a and a+l on llcoins as Hexadecimal Seed, as Private Spend Key or as Private View Key. They never generated the same results.
Does the wrapping occurring on a ,when greater or equal to l, occur at another step? Does it only occur sometimes?
a+las seed is the same as using the private key generated bya+las seed. However this private key is not themod lofa+l. – Maxithi Dec 27 '17 at 23:00l=FFFFFFFFFFFFFFFFFFFFFFFF0BCA1161B7C687A4B21172333C8170C38FC05F0D,l+a=11111111111111111111111101cdb2272c8d798b5c32283444d9281d4a0d1701eandmod l = 1111111111111111111111111111111111111111111111111111111111111111. – JollyMort Dec 27 '17 at 23:15l=FFFFFFFFFFFFFFFFFFFFFFFF0BCA1161B7C687A4B21172333C8170C38FC05F0D? When does the switch of endianness occur? – Maxithi Dec 28 '17 at 13:12l. I've been searching without success another post explaining this through the [crypto.se] portal. I've tried to check llcoin's source but they link it to theC++Monero library. – Maxithi Dec 28 '17 at 15:05FFFFFFFFFFFFFFFFFFFFFFFF0BCA1161B7C687A4B21172333C8170C38FC05F0D, must have messed up somewhere. The updated answer has correct values :) – JollyMort Dec 28 '17 at 16:57