async def create_cred_offer(self, schema_seq_no: int) -> str:
LOGGER.debug('<STR_LIT>', schema_seq_no)<EOL>rv = None<EOL>cd_id = cred_def_id(self.did, schema_seq_no)<EOL>try:<EOL><INDENT>rv = await anoncreds.issuer_create_credential_offer(self.wallet.handle, cd_id)<EOL><DEDENT>except IndyError as x_indy:<EOL><INDENT>if x_indy.error_code == ErrorCode.WalletNotFoundError:<EOL><INDENT>LOGGER.debug(<EOL>'<STR_LIT>',<EOL>self.wallet.name)<EOL>raise CorruptWallet(<EOL>'<STR_LIT>'.format(self.wallet.name))<EOL><DEDENT>else:<EOL><INDENT>LOGGER.debug(<EOL>'<STR_LIT>',<EOL>x_indy.error_code)<EOL>raise<EOL><DEDENT><DEDENT>LOGGER.debug('<STR_LIT>', rv)<EOL>return rv<EOL>
Create credential offer as Issuer for given schema.

Raise CorruptWallet if the wallet has no private key for the corresponding credential definition.

:param schema_seq_no: schema sequence number
:return: credential offer json for use in storing credentials at HolderProver.