@classmethod<EOL><INDENT>def new(cls, seed: Optional[bytes]) -> '<STR_LIT>':<DEDENT>
logger = logging.getLogger(__name__)<EOL>logger.debug("<STR_LIT>")<EOL>c_instance = c_void_p()<EOL>do_call(cls.new_handler, seed, len(seed) if seed is not None else <NUM_LIT:0>, byref(c_instance))<EOL>res = cls(c_instance)<EOL>logger.debug("<STR_LIT>", res)<EOL>return res<EOL>
Creates and returns random (or seeded from seed) BLS sign key.
:param: seed - Optional seed.
:return: BLS sign key