For Bitcoin, Elliptical Curve Cryptography is used. It is group addition and multiplication for an elliptical curve with specific parameters. Since computers are used and you cannot have round off errors a finite set is used..
https://t.co/p8ynBpnB5U
