Cryptographic recipes and primitives used in IVXV.
Project description
pyivxv
A Python3 library for common IVXV operations. IVXV is the codename for the current Estonian internet voting system.
Usage examples:
from pyivxv.crypto.keys import PublicKey
from pyivxv.encoding.message import decode_from_point
pk = PublicKey.from_public_bytes(b"...")
message = "0000.101"
ct = pk.encode_and_encrypt(message, store_ephemeral=True)
unblinded = ct.unblind(pk.H)
decoded = decode_from_point(unblinded, pk.curve).decode()
print("Message:", message)
print("Encryption randomness:", ct.ephemeral_random)
from pyivxv.crypto.keys import generate_private_key
from pyivxv.crypto.zkp import generate_decryption_proof
sk = generate_private_key()
pk = sk.public_key
message = "0000.101"
ct = pk.encode_and_encrypt(message)
M = sk.decrypt(ct)
proof = generate_decryption_proof(M, ct, sk)
proof.verify(M, ct, pk)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyivxv-0.0.1a2.tar.gz.
File metadata
- Download URL: pyivxv-0.0.1a2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0a12d2481e0120f8504f68641eed81b94d5c60b8e34998c9e61872a5f4a4676
|
|
| MD5 |
3c72581faaffbfda23e93d8d849dbc62
|
|
| BLAKE2b-256 |
7b37e13048503aefab471fb8d829eef3b13f5216c99fcc6302b8fdabbea1d27b
|
Provenance
The following attestation bundles were made for pyivxv-0.0.1a2.tar.gz:
Publisher:
pypi-publish.yml on takakv/pyivxv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyivxv-0.0.1a2.tar.gz -
Subject digest:
c0a12d2481e0120f8504f68641eed81b94d5c60b8e34998c9e61872a5f4a4676 - Sigstore transparency entry: 566911439
- Sigstore integration time:
-
Permalink:
takakv/pyivxv@8f4e581a82f9ac43c8f8e675cbfce4df51deec46 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/takakv
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@8f4e581a82f9ac43c8f8e675cbfce4df51deec46 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pyivxv-0.0.1a2-py3-none-any.whl.
File metadata
- Download URL: pyivxv-0.0.1a2-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb0c98888249f462a21be2985d20ac8394044afa68dc3f9b11c023c81103d5a6
|
|
| MD5 |
1bc05cf43d59fdd52fc255f3e614510f
|
|
| BLAKE2b-256 |
3fd966253a4cb5cf7e44374cce58375e3a7f92a672dbf0503c12d514d3b4a4af
|
Provenance
The following attestation bundles were made for pyivxv-0.0.1a2-py3-none-any.whl:
Publisher:
pypi-publish.yml on takakv/pyivxv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyivxv-0.0.1a2-py3-none-any.whl -
Subject digest:
eb0c98888249f462a21be2985d20ac8394044afa68dc3f9b11c023c81103d5a6 - Sigstore transparency entry: 566911451
- Sigstore integration time:
-
Permalink:
takakv/pyivxv@8f4e581a82f9ac43c8f8e675cbfce4df51deec46 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/takakv
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@8f4e581a82f9ac43c8f8e675cbfce4df51deec46 -
Trigger Event:
workflow_dispatch
-
Statement type: