von_anchor/wallet/wallet.py
async def decrypt(self, ciphertext: bytes, verkey: str = None) -> bytes:
        """
        Decrypt ciphertext and optionally authenticate sender.

        Raise BadKey if authentication operation reveals sender key distinct from input
        verification key.  Raise AbsentMessage for missing ciphertext, or WalletState if
        wallet is closed.

        :param ciphertext: ciphertext, as bytes
        :param verkey: sender's verification, or None for anonymously encrypted ciphertext
        :return: decrypted bytes
        """

        LOGGER.debug('Wallet.decrypt >>> ciphertext: %s, verkey: %s', ciphertext, verkey)

        if not ciphertext:
            LOGGER.debug('Wallet.decrypt <!< No ciphertext to decrypt')
            raise AbsentMessage('No ciphertext to decrypt')

        if not self.handle:
            LOGGER.debug('Wallet.decrypt <!< Wallet %s is closed', self.name)
            raise WalletState('Wallet {} is closed'.format(self.name))

        if verkey:
            (sender_verkey, rv) = await crypto.auth_decrypt(self.handle, self.verkey, ciphertext)
            if sender_verkey != verkey:
                LOGGER.debug('Wallet.decrypt <!< Authentication revealed unexpected sender key on decryption')
                raise BadKey('Authentication revealed unexpected sender key on decryption')
        else:
            rv = await crypto.anon_decrypt(self.handle, self.verkey, ciphertext)

        LOGGER.debug('Wallet.decrypt <<< %s', rv)
        return rv

        Decrypt ciphertext and optionally authenticate sender.

        Raise BadKey if authentication operation reveals sender key distinct from input
        verification key.  Raise AbsentMessage for missing ciphertext, or WalletState if
        wallet is closed.

        :param ciphertext: ciphertext, as bytes
        :param verkey: sender's verification, or None for anonymously encrypted ciphertext
        :return: decrypted bytes
        
Decrypt ciphertext and optionally authenticate sender.
Raise BadKey if authentication operation reveals sender key distinct from input
verification key.  Raise AbsentMessage for missing ciphertext, or WalletState if
wallet is closed.
Decrypt ciphertext and optionally authenticate sender . Raise BadKey if authentication operation reveals sender key distinct from input verification key . Raise AbsentMessage for missing ciphertext or WalletState if wallet is closed .
async def decrypt(self, ciphertext: bytes, verkey: str = None) -> bytes:
        LOGGER.debug('Wallet.decrypt >>> ciphertext: %s, verkey: %s', ciphertext, verkey)
        if not ciphertext:
            LOGGER.debug('Wallet.decrypt <!< No ciphertext to decrypt')
            raise AbsentMessage('No ciphertext to decrypt')
        if not self.handle:
            LOGGER.debug('Wallet.decrypt <!< Wallet %s is closed', self.name)
            raise WalletState('Wallet {} is closed'.format(self.name))
        if verkey:
            (sender_verkey, rv) = await crypto.auth_decrypt(self.handle, self.verkey, ciphertext)
            if sender_verkey != verkey:
                LOGGER.debug('Wallet.decrypt <!< Authentication revealed unexpected sender key on decryption')
                raise BadKey('Authentication revealed unexpected sender key on decryption')
        else:
            rv = await crypto.anon_decrypt(self.handle, self.verkey, ciphertext)
        LOGGER.debug('Wallet.decrypt <<< %s', rv)
        return rv
async def decrypt ( self , ciphertext : bytes , verkey : str = None ) -> bytes : LOGGER . debug ( 'Wallet.decrypt >>> ciphertext: %s, verkey: %s' , ciphertext , verkey ) if not ciphertext : LOGGER . debug ( 'Wallet.decrypt <!< No ciphertext to decrypt' ) raise AbsentMessage ( 'No ciphertext to decrypt' ) if not self . handle : LOGGER . debug ( 'Wallet.decrypt <!< Wallet %s is closed' , self . name ) raise WalletState ( 'Wallet {} is closed' . format ( self . name ) ) if verkey : ( sender_verkey , rv ) = await crypto . auth_decrypt ( self . handle , self . verkey , ciphertext ) if sender_verkey != verkey : LOGGER . debug ( 'Wallet.decrypt <!< Authentication revealed unexpected sender key on decryption' ) raise BadKey ( 'Authentication revealed unexpected sender key on decryption' ) else : rv = await crypto . anon_decrypt ( self . handle , self . verkey , ciphertext ) LOGGER . debug ( 'Wallet.decrypt <<< %s' , rv ) return rv
Decrypt ciphertext and optionally authenticate sender.
Decrypt ciphertext and optionally authenticate sender .
"""
        Decrypt ciphertext and optionally authenticate sender.

        Raise BadKey if authentication operation reveals sender key distinct from input
        verification key.  Raise AbsentMessage for missing ciphertext, or WalletState if
        wallet is closed.

        :param ciphertext: ciphertext, as bytes
        :param verkey: sender's verification, or None for anonymously encrypted ciphertext
        :return: decrypted bytes
        """
None
self
ciphertext
bytes
ciphertext, as bytes
ciphertext as bytes
verkey
str
sender's verification, or None for anonymously encrypted ciphertext
sender ' s verification or None for anonymously encrypted ciphertext