The quoted text is describing the elliptic curve cryptography
(ECC) used in TON, specifically in the TON Blockchain and TON Network. ECC is a cryptographic approach that relies on the mathematics of elliptic curves to create secure key pairs for public-key cryptography.
The passage mentions two specific elliptic curve algorithms used in TON: Ed25519
and Curve25519
.
Ed25519
: This is an elliptic curve digital signature algorithm that provides high-security, fast performance, and compact signatures. It is based on the Twisted Edwards curve and was developed by Daniel J. Bernstein, Niels Duif, Tanja Lange, Peter Schwabe, and Bo-Yin Yang. In TON, Ed25519 is used for creating cryptographic Schnorr signatures, which are a type of digital signature scheme.
Curve25519
: This is an elliptic curve designed for key agreement in public-key cryptography, specifically, the Elliptic Curve Diffie-Hellman (ECDH) key exchange protocol. It was also developed by Daniel J. Bernstein. The Curve25519 is used for asymmetric cryptography in TON, enabling secure communication between parties without the need for a shared secret key beforehand.
Both Ed25519 and Curve25519 are used in standard ways according to their original specifications and related RFCs (Request for Comments) 7748 and 8032. However, TON has some specific serialization details and adaptations to accommodate its unique requirements.
One such adaptation is the automatic conversion of Ed25519 keys into Curve25519 keys. This feature allows the same keys to be used for both digital signatures (via Ed25519) and asymmetric cryptography (via Curve25519). This simplifies key management and improves overall efficiency in TON's cryptographic operations.
In summary, TON employs elliptic curve cryptography using the Ed25519 and Curve25519 algorithms for digital signatures and asymmetric cryptography, respectively. Additionally, TON supports the automatic conversion of keys between the two algorithms, streamlining cryptographic operations within the network.