3.0.ipv8.test.keyvault.test_serialization ========================================= .. py:module:: 3.0.ipv8.test.keyvault.test_serialization Classes ------- .. autoapisummary:: 3.0.ipv8.test.keyvault.test_serialization.TestSerialization Module Contents --------------- .. py:class:: TestSerialization(methodName: str = 'runTest') Bases: :py:obj:`3.0.ipv8.test.base.TestBase` Test whether keys can be serialized and unserialized correctly. .. py:method:: setUp() -> None Create a M2Crypto private key and a LibNaCL private key. .. py:method:: test_private_to_bin() -> None Check if M2Crypto derived key bins are valid. .. py:method:: test_private_nacl_to_bin() -> None Check if libnacl derived key bins are valid. .. py:method:: test_private_to_pem() -> None Check if keys can be serialized and loaded correctly in PEM format. .. py:method:: test_public_to_bin() -> None Check if M2Crypto derived public key bins are valid. .. py:method:: test_public_nacl_to_bin() -> None Check if libnacl derived public key bins are valid. .. py:method:: test_public_to_pem() -> None Check if public keys can be serialized and loaded correctly in PEM format.