1.2.0 • Published 2 years ago
monerolib v1.2.0
monerolib
Monero JavaScript library.
Install
npm i monerolibCommon
p- private/secret key, it is scalarP- public key, it is pointpV- private/secret view keyPV- public view keypS- private/secret spend keyPS- public spend keyHS()- convert hash to scalarhashToScalarG- is the base point
Key derivation generateKeyDerivation means:
derivation = P * p * 8Subaddress
pSi = pS + HS(pV | i)
pVi = pV * pSiPSi = PS + HS(pV | i) * G
PVi = pV * PSi
PSi = (pS + HS(pV | i)) * G
PVi = pV * (pS + HS(pV | i)) * GOutputs
r- is the transaction private/secret keyR- is the transaction public key,txPubKeyX- is the stealth address or one time addresstargetKey
Fro address:
// Address (it is public key)
R = r * G
// Subaddress (it is some public data)
R = r * PSiSending:
// Address
X = Hs(r * PV | i)G + PS
// Subaddress
X = Hs(r * PVi | i)G + PSiReceiving:
// Address
X = Hs(R * pV|i)G + PS
// Subaddress
X = Hs(R * pV|i)G + PSiIt is equal because:
// Address
R * pV = r * G * pV = r * PV
// Subaddress
R * pV = r * PSi * pV = r * PVir * PV and R * pV is a key derivation
Inputs
Hp()- convert hash to pointhashToPointor more correctlyhashToEcx- private/secret key of stealth address O_oJ- is the key imagekeyImage
x = Hs(r * PV|i) + pS
x = Hs(R * pV|i) + pSKey image is:
J = x * Hp(X)1.2.0
2 years ago
1.1.5
2 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.4
3 years ago
1.1.2
3 years ago
1.0.0
4 years ago
0.0.12
4 years ago
0.0.10
4 years ago
0.0.11
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago