latest.ipv8.keyvault.public.m2crypto
Module Contents
Classes
A pyca implementation of a public key, backwards compatible with Dispersy M2Crypto public keys. |
- class latest.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:
latest.ipv8.keyvault.keys.PublicKey
A 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.