serialized_nbytes

PublicKey.serialized_nbytes
Shows the size of a public key when serialized.
  • Type:
    • int
from desilofhe import Engine

engine = Engine()
secret_key = engine.create_secret_key()
public_key = engine.create_public_key(secret_key)
serialized_nbytes = public_key.serialized_nbytes