An implementation of EDHOC, written in Rust
Project description
Lakers Python
Python wrapper for the lakers crate.
Installation and usage
pip install lakers-python
import lakers
# generate a keypair
lakers.p256_generate_key_pair()
# instantiate a initiator and prepare EDHOC's message 1
initiator = lakers.EdhocInitiator()
message_1 = initiator.prepare_message_1(c_i=None, ead_1=None)
# for more examples, see the tests in the repository
Logs
To show logs emitted by the wrapped Rust implementation, set the RUST_LOG variable, e.g.:
RUST_LOG=trace python -c "import lakers"
Development
To build and test:
maturin develop
pytest
To deploy:
# need to make the examples folder available for the python package,
# because it is listed as one of the workspace's default-members
ln -s ../examples ./examples
MATURIN_PYPI_TOKEN=<your pypi token here> maturin publish
Requirements
The maturin executable must be available. The recommended way is to install and use it in a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip maturin pytest cbor2
pip freeze
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 Distributions
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 lakers_python-0.6.2.tar.gz.
File metadata
- Download URL: lakers_python-0.6.2.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc4dbe014161e4023a95affa93b9f3648f218acb6b1d99a5bc98dd7f676c5d56
|
|
| MD5 |
72283cb2938ed77f4caa4f4cbc31ac92
|
|
| BLAKE2b-256 |
8c09942939302f2e2473f4f601a90c53426db5dac4a9ae22f5bf9340a9fe3fb7
|
File details
Details for the file lakers_python-0.6.2-pp311-pypy311_pp73-win_amd64.whl.
File metadata
- Download URL: lakers_python-0.6.2-pp311-pypy311_pp73-win_amd64.whl
- Upload date:
- Size: 286.1 kB
- Tags: PyPy, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3804af88abd14ba66246c356eb5b1bfb126d9fbb6cca67f83f599f8e0f599c0
|
|
| MD5 |
27e2ce7419280980a31b9f544857ad21
|
|
| BLAKE2b-256 |
b969ee4a78c748730a74a71823467a2425e412eed842d997fe2bdac00d04078b
|
File details
Details for the file lakers_python-0.6.2-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: lakers_python-0.6.2-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 453.2 kB
- Tags: PyPy, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf2abab5e3dff7a6109a0666bd5b1c3a4c52b8eb3460c5ef93814eba509c5a15
|
|
| MD5 |
aa502fbd8958398ff4495974e12f5388
|
|
| BLAKE2b-256 |
f2888ae4f1020bb0dc44a7e68e64eaaa72b6fce1519cc648f02d7badfcc0d283
|
File details
Details for the file lakers_python-0.6.2-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: lakers_python-0.6.2-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 454.8 kB
- Tags: PyPy, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7269d3329e188e6d404f9deca9ef67bbba0bd96faaf48abbe0bc369072aca733
|
|
| MD5 |
a1becd84e18b2309007c2a232ff2eac5
|
|
| BLAKE2b-256 |
2b7ba69a832faa4dae74e509bc5eb73e48ec82821e1793cd82328a80876f8588
|
File details
Details for the file lakers_python-0.6.2-pp311-pypy311_pp73-macosx_11_0_arm64.whl.
File metadata
- Download URL: lakers_python-0.6.2-pp311-pypy311_pp73-macosx_11_0_arm64.whl
- Upload date:
- Size: 412.1 kB
- Tags: PyPy, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a23660849afe5e56154ff6e55832774277a019a58be807ecfcdbbd15753be960
|
|
| MD5 |
8193ae0b87a237fe1010e94407418fef
|
|
| BLAKE2b-256 |
90e31ad2539a9bee9c4580dd2131e6d680639cbeda859a99783f66e2e3ad5328
|
File details
Details for the file lakers_python-0.6.2-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 280.7 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd38fb26bc6964fc2b17064caffad12d48f5c6c44eb04ae3e0c9f30484901d20
|
|
| MD5 |
d669ccf7002d725eb739d415a67d14f4
|
|
| BLAKE2b-256 |
7efc6d4fc3b393128de7bf1c1507abe3841172abc670ebb133b725169afe5020
|
File details
Details for the file lakers_python-0.6.2-cp314-cp314-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp314-cp314-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 446.7 kB
- Tags: CPython 3.14, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6dd9089badd574ba7d0b36a13b7854ffbcf2a30e3de6d72a11946a080dab8c6
|
|
| MD5 |
1354fcd394c82eabfe7a6cf0c0f5d709
|
|
| BLAKE2b-256 |
c3347a1fecbeba9f349d6c333754a2d20c53bdc151d573b0d4d51469ff935b08
|
File details
Details for the file lakers_python-0.6.2-cp314-cp314-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp314-cp314-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 446.9 kB
- Tags: CPython 3.14, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6956297566950a208c991a5da0e6ce7416f0d93ac60fe0bde1fcb6b3a5e05900
|
|
| MD5 |
d660c63bbc4cc3d9e86923c052cbc3c2
|
|
| BLAKE2b-256 |
9cdfa49c1d11ddd8b3e460f5b938aed4122bc632f163b73a2eaae7b3454754ef
|
File details
Details for the file lakers_python-0.6.2-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 407.0 kB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cc8aa4eb51efe01e956bc80418c4d37eb8b393c8ea2b78e07390a2f9407c20b
|
|
| MD5 |
32196b483240e2da84369788d18ed0ef
|
|
| BLAKE2b-256 |
3f4944a6a2128a4331364201599c7601ce89393f30a26899a73f305b31abb677
|
File details
Details for the file lakers_python-0.6.2-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 281.0 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c8e282e95e18735e9b3abd44369aff36523b3aab629ff0d6798c8f7171585ac
|
|
| MD5 |
06598b9cca61944acadbb641e331050c
|
|
| BLAKE2b-256 |
7b959b40ae5b04cd1dfd6177649d610721977f031b5cd6404c3418d66db1a804
|
File details
Details for the file lakers_python-0.6.2-cp313-cp313-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp313-cp313-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 446.8 kB
- Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
802bfa3633bcffa332b615896cc8a5beea1f369cdf6429e71efcc65010feeeac
|
|
| MD5 |
d289e60dfd58dc65503c7508b483693f
|
|
| BLAKE2b-256 |
0efe2bdb057ad4140dbbf1196b50c7eac88295fea5deebf51f386aa674248d24
|
File details
Details for the file lakers_python-0.6.2-cp313-cp313-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp313-cp313-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 446.5 kB
- Tags: CPython 3.13, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9da6b6cb20a1a8c8ee2b3959e489126950c65c503b04538079de33d6f3a6a453
|
|
| MD5 |
c684065c672ffc4b22dbaa1bc00b739b
|
|
| BLAKE2b-256 |
02c82d1a4f4a5f158fe65bb1d818b0e1e2e5106bae14f1bdf12a891c3a2735f5
|
File details
Details for the file lakers_python-0.6.2-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 406.6 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b8d919ea9391b90a4742c3d3ccc1dc497b2cb0e8ce9e0665547dc5bc1afb3dd
|
|
| MD5 |
44bb9af4376858f31d8d0aee6fb44bf1
|
|
| BLAKE2b-256 |
ef3d2fff59fbc505e929ea805182ca2536bf93850a70e623aa112566dd4763c7
|
File details
Details for the file lakers_python-0.6.2-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 281.9 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a256ca3b2f97b1b4caa2fd7f7687f50d576676f98e9b88ef66c235f08530c00
|
|
| MD5 |
ae2eb3952584c0f4f3b380b30bae3aa4
|
|
| BLAKE2b-256 |
a351e100784c7fcacc75f52e53d176e6c9d7af9cceb9a8734ddf848088dd6c7d
|
File details
Details for the file lakers_python-0.6.2-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 447.9 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a9f59a81db73fe65fd782f127dcb10670c8b7ebb48f4df9183dcfc75499b535
|
|
| MD5 |
d96d624e8e271c911d31720bd3ee0f6d
|
|
| BLAKE2b-256 |
cda13b62d736741a9cc4c011ebd21d4aa08c98f8b735c223f8dc8d13a3817121
|
File details
Details for the file lakers_python-0.6.2-cp312-cp312-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp312-cp312-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 447.1 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55988a45d0d06ca52df7ecb9440466cb5dc257ad2bbee504cd2a48861421c099
|
|
| MD5 |
aff6f688e47996dd75d32e488b3bda9a
|
|
| BLAKE2b-256 |
8d7ba7b7a25fa25be01953e7dcc4da7eb8dbd449d1a04bbf9f1ba9556ce06caa
|
File details
Details for the file lakers_python-0.6.2-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 406.9 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1199935353e09515f27ec5633b48231ef411c28b79bed2eba7508e3f82b914c
|
|
| MD5 |
ee5f9f2e6eaef3a76ae833387a7eecb9
|
|
| BLAKE2b-256 |
0bc51a76a5e85d4b5926f22567be28236b615e0cae0b1f8bcfd0c0fbd310bd59
|
File details
Details for the file lakers_python-0.6.2-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 283.1 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4ce8b1b40e402a74320f810f9c6b689c45198abe6706d8941905a90bf6663f8
|
|
| MD5 |
9dc5e38f48600503068f3be559c320af
|
|
| BLAKE2b-256 |
99f0bc87294411cfb9c1873721fe9fa9dbb130ee7f32443a438d697ef2921348
|
File details
Details for the file lakers_python-0.6.2-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 452.7 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d14bf10a7630821f77e2314968e1fb57c61b4e4a1b5c753358a89cf57c5e3d9
|
|
| MD5 |
4d0a2778116b418b5acd9abbe837b569
|
|
| BLAKE2b-256 |
49b82d40a67993ff205e7b2122b5788ce99a6c5d8176c2e6efc7c68283ef2fe7
|
File details
Details for the file lakers_python-0.6.2-cp311-cp311-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp311-cp311-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 452.8 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f949e4dbd1045f674af44653276fcf95b9d6808802f51821a099a709c4d1ab6d
|
|
| MD5 |
eb475b27b933f392cdf2ed762cda4683
|
|
| BLAKE2b-256 |
d39f446171c1e22fc469d78e275ba4fbc67377fbd3c41d88095c30db773d4681
|
File details
Details for the file lakers_python-0.6.2-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 410.4 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
429ad968975c3f409030a5205902b64b1970ef07ae50f89fd43702d43045ce15
|
|
| MD5 |
a33a028b68cb6475dc47968e056165cc
|
|
| BLAKE2b-256 |
42e54d924679478186e2f8dd09276471f85660d37262e8350e2b85691d2a6e63
|
File details
Details for the file lakers_python-0.6.2-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 283.6 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57fcdebaa9d46db4607790cedd55ff012ed5fb6350e36595bab8604555adbc2a
|
|
| MD5 |
b87f806c4cbadbb0a0244f60423382de
|
|
| BLAKE2b-256 |
216a89702b7e4d07dc0477f95a0106d7876388cfa218402d91f7249931f966d0
|
File details
Details for the file lakers_python-0.6.2-cp310-cp310-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 451.1 kB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c14d60dafadb008f43da68e86c4635d3d5b03132e10fb0ffb3ef67685ac4f7a
|
|
| MD5 |
359f28eaa53f2fa66eef8e5a19178ac2
|
|
| BLAKE2b-256 |
aa98a9265ef91e2515e1024735f020024ecaf15f9021bd12a716a64dde4bdb18
|
File details
Details for the file lakers_python-0.6.2-cp310-cp310-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp310-cp310-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 452.9 kB
- Tags: CPython 3.10, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffd383b43f50d8816254eb481ec71a8a5ffacf24f6a2b0cd1840295691363518
|
|
| MD5 |
333116a04f1ab6fbf108fd994877fae8
|
|
| BLAKE2b-256 |
a9f7c88a5f3220038da6b347cc5225d9fc22711b290d4a891b3c92fc866eb13a
|
File details
Details for the file lakers_python-0.6.2-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: lakers_python-0.6.2-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 410.5 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6ad7bb83a2b3cec46c619acb202586702400ca7b279a49b1d6b0b66de2da8a3
|
|
| MD5 |
3c06dfb2bcb282b695d50a82f5737e48
|
|
| BLAKE2b-256 |
32b7e6f467f80eb782a2b612f80974b597f3ddeed49f78092eb52304e77a827e
|