2.13.ipv8.keyvault.private.libnaclkey

Module Contents

Classes

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

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

A LibNaCL implementation of a secret key.

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