3.0.ipv8.keyvault.public.libnaclkey =================================== .. py:module:: 3.0.ipv8.keyvault.public.libnaclkey Classes ------- .. autoapisummary:: 3.0.ipv8.keyvault.public.libnaclkey.LibNaCLPK Module Contents --------------- .. py:class:: LibNaCLPK(binarykey: bytes = b'', pk: bytes | None = None, hex_vk: bytes | None = None) Bases: :py:obj:`3.0.ipv8.keyvault.keys.PublicKey` A LibNaCL implementation of a public key. .. py:attribute:: key .. py:attribute:: veri .. py:method:: verify(signature: bytes, msg: bytes) -> bool Verify whether a given signature is correct for a message. :param signature: the given signature :param msg: the given message .. py:method:: key_to_bin() -> bytes Get the string representation of this key. .. py:method:: get_signature_length() -> int Returns the length, in bytes, of each signature made using EC.