Python Tutorials - Herong's Tutorial Examples - v2.21, by Herong Yang
What Is tinyec
This section introduces what is tinyec - a tiny library to perform arithmetic operations on elliptic curves in pure Python.
What Is tinyec? tinyec is a tiny library to perform arithmetic operations on elliptic curves in pure Python. It is not a library suitable for production. It is useful for security professionals to understand the inner workings of EC, and be able to play with pre-defined curves.
There are 2 main classes in tinyec:
tinyec also supports some named curves: brainpoolP160r1, brainpoolP192r1, brainpoolP224r1, brainpoolP256r1, brainpoolP320r1, brainpoolP384r1, brainpoolP512r1, secp192r1, secp224r1, secp256r1, secp384r1, secp521r1
For more information, see tinyec Website at github.com/alexmgr/tinyec.
Table of Contents
Variables, Operations and Expressions
Function Statement and Function Call
List, Set and Dictionary Comprehensions
Packages and Package Directories
"pathlib" - Object-Oriented Filesystem Paths
"pip" - Package Installer for Python
SciPy.org - Python Libraries for Science
pandas - Data Analysis and Manipulation
Communicating with HTTPS Servers
►tinyec - Tiny Library for ECC
Perform Point Addition with tinyec
Find Subgroup with Point Addition
Set Subgroup Order to Higher Value
Generating EC Public-Private Keys
Anaconda - Python Environment Manager