Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lakers_python-0.6.1rc1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

lakers_python-0.6.1rc1-pp311-pypy311_pp73-win_amd64.whl (285.2 kB view details)

Uploaded PyPyWindows x86-64

lakers_python-0.6.1rc1-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl (452.7 kB view details)

Uploaded PyPymanylinux: glibc 2.34+ x86-64

lakers_python-0.6.1rc1-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl (453.1 kB view details)

Uploaded PyPymanylinux: glibc 2.34+ ARM64

lakers_python-0.6.1rc1-pp311-pypy311_pp73-macosx_11_0_arm64.whl (412.2 kB view details)

Uploaded PyPymacOS 11.0+ ARM64

lakers_python-0.6.1rc1-cp314-cp314-win_amd64.whl (280.6 kB view details)

Uploaded CPython 3.14Windows x86-64

lakers_python-0.6.1rc1-cp314-cp314-manylinux_2_34_x86_64.whl (446.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

lakers_python-0.6.1rc1-cp314-cp314-manylinux_2_34_aarch64.whl (446.5 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

lakers_python-0.6.1rc1-cp314-cp314-macosx_11_0_arm64.whl (406.7 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

lakers_python-0.6.1rc1-cp313-cp313-win_amd64.whl (280.8 kB view details)

Uploaded CPython 3.13Windows x86-64

lakers_python-0.6.1rc1-cp313-cp313-manylinux_2_34_x86_64.whl (446.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

lakers_python-0.6.1rc1-cp313-cp313-manylinux_2_34_aarch64.whl (446.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

lakers_python-0.6.1rc1-cp313-cp313-macosx_11_0_arm64.whl (406.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

lakers_python-0.6.1rc1-cp312-cp312-win_amd64.whl (281.6 kB view details)

Uploaded CPython 3.12Windows x86-64

lakers_python-0.6.1rc1-cp312-cp312-manylinux_2_34_x86_64.whl (447.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

lakers_python-0.6.1rc1-cp312-cp312-manylinux_2_34_aarch64.whl (446.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

lakers_python-0.6.1rc1-cp312-cp312-macosx_11_0_arm64.whl (406.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

lakers_python-0.6.1rc1-cp311-cp311-win_amd64.whl (283.5 kB view details)

Uploaded CPython 3.11Windows x86-64

lakers_python-0.6.1rc1-cp311-cp311-manylinux_2_34_x86_64.whl (452.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

lakers_python-0.6.1rc1-cp311-cp311-manylinux_2_34_aarch64.whl (451.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

lakers_python-0.6.1rc1-cp311-cp311-macosx_11_0_arm64.whl (410.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

lakers_python-0.6.1rc1-cp310-cp310-win_amd64.whl (283.9 kB view details)

Uploaded CPython 3.10Windows x86-64

lakers_python-0.6.1rc1-cp310-cp310-manylinux_2_34_x86_64.whl (450.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

lakers_python-0.6.1rc1-cp310-cp310-manylinux_2_34_aarch64.whl (451.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ ARM64

lakers_python-0.6.1rc1-cp310-cp310-macosx_11_0_arm64.whl (410.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file lakers_python-0.6.1rc1.tar.gz.

File metadata

  • Download URL: lakers_python-0.6.1rc1.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for lakers_python-0.6.1rc1.tar.gz
Algorithm Hash digest
SHA256 685b551f1f6e05669bbbe6ae995aa67092c9b0a5ba0d1b1a718812d2f8af5460
MD5 7268b7f47117b8d706142fb40b050609
BLAKE2b-256 fda38493d73dc7cdbce507a6cdc36fa72fc7761bddc2861db95d603892acd6ed

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-pp311-pypy311_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 1799166ef251fc32ac044fef4e567dfef975559311f2368d0c082197d4f8c59f
MD5 5409fb3c1ff73ba6ea7594cf714f84c5
BLAKE2b-256 85735fb0795e7e82a320496484bf2a3d809e6ad740d09e17f691a9dd45f99dbc

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1f50601a9c97a8994b9fed82d2f5f52ebcc565deac4670bfa6dc7c562433e3d3
MD5 54b3111a793ec77619a9afcbbe2373f4
BLAKE2b-256 a34ebe1983cabf78a58500f9bbe982a629f513e9cb084e9047bd82f14b92a12b

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 991c6fd2fda77a8755d83c03787c16e1537010ba3a3f0af9f66936b918633b5a
MD5 77972437dab020c22a2fc6bbe650f955
BLAKE2b-256 a45827a7130a3f87506271cf81d14d93b82f39de865e24472289408540947d3b

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-pp311-pypy311_pp73-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-pp311-pypy311_pp73-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66db58e19ba09c21c015e94c0c184f642f3789290b5f01d6128f99c49f44100b
MD5 2754ec5b9616775688850c2a08a1a6e7
BLAKE2b-256 b32660b767ffb8562915da2bfe8c941287069fc0706980c77d92af02282b3a8f

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 1092b35e8ba5e6e03eace685fe06770df19e40851b1cd56f2dd72ab643f3e880
MD5 96dc3f54c734619c7b4a84c6fb87d4b6
BLAKE2b-256 4c59006eec6bc9eda68484e783b5efa5babc80d1746e6daf6f784666125b5016

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5e0a4a4b6206da83f83fe6707023631600abc2b641011cdf7baf7c210e99bc7e
MD5 d3599921a26be3197201cbbd533c5ab9
BLAKE2b-256 8a50ceb2124b37652cb77edf0430238be5dab4f53f2e4ea5f7c0802ea8077074

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp314-cp314-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 29500e69267f7be82de11048d6dd916d06ea780bddccaef6c83f94c59ad16295
MD5 ac8f8f6f121355ba4558173af581d1d7
BLAKE2b-256 688e1faded516a39f64363e9664631731aaf167d5ae892af51a2dafad4cc1b9e

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b827eb4a0ac79a685755007e8fe2b0759d0c9fcdc529ffac704f50f5b637471
MD5 fe89452c1ded6d15b0a370b070b5434d
BLAKE2b-256 43bedcfa20abd76ea6f750c8fa04dffa442f7f77e6ac41973d08ab30cf4f8a13

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 36fb024e196f77e54965bf438abb3028343927d434d979da795fbd2a59a3b1cd
MD5 5923c2c5ec52d0032ad450782e519c8a
BLAKE2b-256 6eb9e990c70490d7e8eb24335733c049d4338da6c0e099d9d35a5fd5ea75dd93

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0f7630f60b7d2f1f05421501e4eec37668262c91f97e595f63c4bb6d75753dab
MD5 ebfd79cd9a4e79ac5702e5272b0321e5
BLAKE2b-256 539bc2d69b28be0d58fb7ea2bc519f4064764ffdebf3c329b6b7bef9ec849e0f

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 32fc3da573b5a63c66f7e6d3111e281b62d896ee7e91eddf4c26c3ec571b07e2
MD5 16b1ef8b81b42741749e7bed10935d81
BLAKE2b-256 033cc9d7455e1a7c40f0a7a13c49d3e41557ef2c97b6160514031d0ed8de9d3b

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 629d0875f791741b6743675368c2786f4c953957d5105d43f9e9ac6eefb926c6
MD5 acb2f26cdee5c2dd7c49ebedcb992724
BLAKE2b-256 543dfa0885f323b6bee90d9e69ebc607e52e1e36ce6323a100235923afbb470c

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cb5086710defc9d5f9f135c563206983ae7a155162ed25f813f91ce58fb7f6e0
MD5 931f83fa640bdbe75b1621b7ca0ed6c0
BLAKE2b-256 1469eddb989d1002b988ab0e16a037e5cf3dbcb5398e4ebafdc60b37193cf2f1

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b2428151834d14b43eeb6bcb0a56768c912c3699739fc85d753b5f6897a32708
MD5 e7353b8b70e5146e327350d8f9f60438
BLAKE2b-256 0e42cdfee4e7edfe2e9aa3d0f188ffb31012f67e6b337496777cf30a210b12ef

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 548a61ece2583a8d9e237c178a35b4e80537ed2c5ac1744ee8cbf0b95fdb5dc0
MD5 ea267bdbbc5553e6041963aa30f17f71
BLAKE2b-256 c776df3bc58928b9c2fe198843b6fce42bbdcced5a9a106461df9d71091ff56e

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 480ac656c56f0715284ce6c7240ac2025ae89d21b580fc9c1f84e768518e2d18
MD5 12f85cd782d15e66f8d82839739d3b58
BLAKE2b-256 02a048d2f2cdfe4d4dc7fb9d5530875e002c5897e18b8f736a663e625d4a4a5e

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ab494a792ed9f22a91711f28b7a30c1fc44c862bfedba66fed0708d49b496fc5
MD5 362c7d6659fab9c64776eb0f692e64ee
BLAKE2b-256 ece9d4004c6eeb843c56ee12295b1162c13e47735ec7e8d49559e812adec9553

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0069509f1a78c81b5967983f51338e8341d25990bbbfe29fac7ae2bc1c9a94b6
MD5 51af0c401a5755ea5b775195127908e3
BLAKE2b-256 ea2593c6bb4afa499bd03ed6b38519bb504627548f29b4cb083a7be6faf1bd41

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp311-cp311-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 4118ad717dd494cb3de4fdd4a27a4a864bd3420f7cf3d55e62463d9e6204f9d0
MD5 8c9637be91e128be9787ea067605799b
BLAKE2b-256 f54a043fc51466bb3fbb862cf83a16c1b2064e70ab580231e67db0c1d191c699

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c8be208d22f31f48dc32e193de1a80ba64541771e0bbf8489fe26a4202c79e7
MD5 a547f29eb071d7f87a4da3ff33911904
BLAKE2b-256 871000281bb296a265f3574778fc33d1571367bdb6ec4d50710cb78331042618

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1c8d9f0d2dac6bb424026a8882eac63af295072d14c97aefbf1a3293bcfafb48
MD5 6f7e5c830d7c9377fe99a714884066fa
BLAKE2b-256 d92c141a490ea4f98605c3d48ce8d26965d451b35fe430d08ee31901bc8e6777

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8950398607026d5ed2cfb4cf7d27604a9165677c7d801205c9a7c19564be8b6b
MD5 380240321edc924c94f7173cccc8458e
BLAKE2b-256 c5fefc754e036c8d36385978ce16a2b7fc27515a42ff5e6f77ece322c6a2c0e6

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp310-cp310-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp310-cp310-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 ea2b205e906cd6e780f77cc9da0b2f422e7f858d5d13a5065bf853d2f3884f88
MD5 ea3d3ff4822b8ba61c442a162bc8f366
BLAKE2b-256 d3510465b3a082d51ab84c8866acf89fa45c61f4f0f7d2f16bd7364bef4be86c

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1rc1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1rc1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b30f3fbc411f9f2f1ddbd943c402d5a2465b7502bbb500e14b228880c1aabb6
MD5 1a2fe68d744a260674f858545fd60c52
BLAKE2b-256 c454ae0e8788896e59b0cfec7252b808974f9fefc80a7b1049e5062a5a97c788

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page