3.0.ipv8.keyvault.private.libnaclkey ==================================== .. py:module:: 3.0.ipv8.keyvault.private.libnaclkey Classes ------- .. autoapisummary:: 3.0.ipv8.keyvault.private.libnaclkey.LibNaCLSK Module Contents --------------- .. py:class:: LibNaCLSK(binarykey: bytes = b'') Bases: :py:obj:`3.0.ipv8.keyvault.keys.PrivateKey`, :py:obj:`3.0.ipv8.keyvault.public.libnaclkey.LibNaCLPK` A LibNaCL implementation of a secret key. .. py:attribute:: key .. py:method:: pub() -> 3.0.ipv8.keyvault.public.libnaclkey.LibNaCLPK Get the public key for this secret key. .. py:method:: signature(msg: bytes) -> bytes Create a signature for a message. :param msg: the message to sign :return: the signature for the message .. py:method:: key_to_bin() -> bytes Get the string representation of this key.