3.0.ipv8.keyvault.public.m2crypto
Classes
Module Contents
- class 3.0.ipv8.keyvault.public.m2crypto.M2CryptoPK(ec_pub: cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey | cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey | None = None, keystring: bytes | None = None)
Bases:
3.0.ipv8.keyvault.keys.PublicKeyA pyca implementation of a public key, backwards compatible with Dispersy M2Crypto public keys.
- pem_to_bin(pem: bytes) bytes
Convert a key in the PEM format into a key in the binary format. @note: Encrypted pem’s are NOT supported and will silently fail.