latest.ipv8.keyvault.private.libnaclkey

Module Contents

Classes

LibNaCLSK

A LibNaCL implementation of a secret key.

class latest.ipv8.keyvault.private.libnaclkey.LibNaCLSK(binarykey: bytes = b'')

Bases: latest.ipv8.keyvault.keys.PrivateKey, latest.ipv8.keyvault.public.libnaclkey.LibNaCLPK

A LibNaCL implementation of a secret key.

pub() latest.ipv8.keyvault.public.libnaclkey.LibNaCLPK

Get the public key for this secret key.

signature(msg: bytes) bytes

Create a signature for a message.

Parameters:

msg – the message to sign

Returns:

the signature for the message

key_to_bin() bytes

Get the string representation of this key.