3.0.ipv8.keyvault.private.libnaclkey

Classes

Module Contents

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

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

A LibNaCL implementation of a secret key.

key
pub() 3.0.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.