Sharing public keys
Exporting
import nim_kyber/big
var k: Kyber = createRandomKyber(); # Create the kyber object
var public = k.public() # Get the public object
var str: string = public.toString(); # Transform the public object to a JSON string
# You can also use "k.public().toString()" directlyImporting
import nim_kyber/big
var str = "..." # The exported JSON string
var k: PublicKyber = importPublicKyber(str);Last updated