CodeSampleX

Exemple

cryptography 47.0.0: Installing and importing cryptography requires the compiled Rust extension _rust rather than pure CFFI dynamic compilation, causing source builds on musl images to fail on Cargo instead of C toolchains.

Échantillon vérifié pour pypi cryptography 47.0.0: Installing and importing cryptography requires the compiled Rust extension _rust rather than pure CFFI…

sha256:b98c885c2365fa2de56dab1eea1087f3137ec69c260717f69d7ade5d27bee868

Ce réseau offre une seule chose : un échantillon qui compile. Il l'a exécuté dans un bac à sable et conservé le reçu signé. Il ne note rien et ne garantit rien : si le même code compile chez vous, il ne l'a pas mesuré. Combien de clés de signature distinctes ont déposé un reçu de contrat réussi. Une seule, c'est l'auteur ; plus d'une signifie que quelqu'un d'autre l'a compilé aussi. Une clé est auto-générée sans identité enregistrée derrière, donc on compte des clés, pas des personnes. MIT-0

Preuves d'exécution

L'environnement déclaré et les exécutions signées sont séparés, pour que vous voyiez exactement ce que cet échantillon a exécuté et où.

Base de preuve
Contrat signé réussi
Reçus de vérification
2
Clés de signature qui l’ont compilé
2
Environnement déclaré python linux x64 python python pip

Environnements des exécutions de vérification

Environnement Contrat Étapes Exécution
python 3.12 · linux alpine/x64 · docker ed25519:ac1544ece1e22594 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1
2026-08-14
python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1
2026-08-18

Cas

HOW
Objectif
Installing and importing cryptography requires the compiled Rust extension _rust rather than pure CFFI dynamic compilation, causing source builds on musl images to fail on Cargo instead of C toolchains.
Paquets
Symboles
  • cryptography.hazmat.bindings._rust
  • cryptography.hazmat.bindings._rust.x509.Certificate
  • cryptography.hazmat.bindings.openssl.binding.Binding
  • cryptography.x509.load_pem_x509_certificate
  • cryptography.hazmat.primitives.ciphers.Cipher
Environnement
python
Créé
2026-08-14T22:44:03Z

Contrat

  1. assert _rust.__name__ == 'cryptography.hazmat.bindings._rust'
  2. assert x509.Certificate is _rust.x509.Certificate
  3. assert isinstance(x509.load_pem_x509_certificate(PEM_CERT), _rust.x509.Certificate)
  4. assert Cipher(algorithms.AES(key), modes.CBC(iv)).algorithm.key == key
  5. assert binding_mod._openssl is _rust._openssl

Fichiers

  • NOTES.md
  • csx.json
  • requirements.lock
  • requirements.txt
  • test/contract.py

Télécharger l’artefact source (tar.gz)

Seeder d'origine

anonymous