von_anchor/wallet/wallet.py
async def unpack(self, ciphertext: bytes) -> (str, str, str):
        """
        Unpack a message. Return triple with cleartext, sender verification key, and recipient verification key.
        Raise AbsentMessage for missing ciphertext, or WalletState if wallet is closed. Raise AbsentRecord
        if wallet has no key to unpack ciphertext.

        :param ciphertext: JWE-like formatted message as pack() produces
        :return: cleartext, sender verification key, recipient verification key
        """

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

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

        try:
            unpacked = json.loads(await crypto.unpack_message(self.handle, ciphertext))
        except IndyError as x_indy:
            if x_indy.error_code == ErrorCode.WalletItemNotFound:
                LOGGER.debug('Wallet.unpack <!< Wallet %s has no local key to unpack ciphertext', self.name)
                raise AbsentRecord('Wallet {} has no local key to unpack ciphertext'.format(self.name))
            else:
                LOGGER.debug('Wallet.unpack <!< Wallet %s unpack() raised indy error code {}', x_indy.error_code)
                raise
        rv = (unpacked['message'], unpacked.get('recipient_verkey', None), unpacked.get('sender_verkey', None))

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

        Unpack a message. Return triple with cleartext, sender verification key, and recipient verification key.
        Raise AbsentMessage for missing ciphertext, or WalletState if wallet is closed. Raise AbsentRecord
        if wallet has no key to unpack ciphertext.

        :param ciphertext: JWE-like formatted message as pack() produces
        :return: cleartext, sender verification key, recipient verification key
        
Unpack a message. Return triple with cleartext, sender verification key, and recipient verification key.
Raise AbsentMessage for missing ciphertext, or WalletState if wallet is closed. Raise AbsentRecord
if wallet has no key to unpack ciphertext.
Unpack a message . Return triple with cleartext sender verification key and recipient verification key . Raise AbsentMessage for missing ciphertext or WalletState if wallet is closed . Raise AbsentRecord if wallet has no key to unpack ciphertext .
async def unpack(self, ciphertext: bytes) -> (str, str, str):
        LOGGER.debug('Wallet.unpack >>> ciphertext: %s', ciphertext)
        if not ciphertext:
            LOGGER.debug('Wallet.pack <!< No ciphertext to unpack')
            raise AbsentMessage('No ciphertext to unpack')
        try:
            unpacked = json.loads(await crypto.unpack_message(self.handle, ciphertext))
        except IndyError as x_indy:
            if x_indy.error_code == ErrorCode.WalletItemNotFound:
                LOGGER.debug('Wallet.unpack <!< Wallet %s has no local key to unpack ciphertext', self.name)
                raise AbsentRecord('Wallet {} has no local key to unpack ciphertext'.format(self.name))
            else:
                LOGGER.debug('Wallet.unpack <!< Wallet %s unpack() raised indy error code {}', x_indy.error_code)
                raise
        rv = (unpacked['message'], unpacked.get('recipient_verkey', None), unpacked.get('sender_verkey', None))
        LOGGER.debug('Wallet.unpack <<< %s', rv)
        return rv
async def unpack ( self , ciphertext : bytes ) -> ( str , str , str ) : LOGGER . debug ( 'Wallet.unpack >>> ciphertext: %s' , ciphertext ) if not ciphertext : LOGGER . debug ( 'Wallet.pack <!< No ciphertext to unpack' ) raise AbsentMessage ( 'No ciphertext to unpack' ) try : unpacked = json . loads ( await crypto . unpack_message ( self . handle , ciphertext ) ) except IndyError as x_indy : if x_indy . error_code == ErrorCode . WalletItemNotFound : LOGGER . debug ( 'Wallet.unpack <!< Wallet %s has no local key to unpack ciphertext' , self . name ) raise AbsentRecord ( 'Wallet {} has no local key to unpack ciphertext' . format ( self . name ) ) else : LOGGER . debug ( 'Wallet.unpack <!< Wallet %s unpack() raised indy error code {}' , x_indy . error_code ) raise rv = ( unpacked [ 'message' ] , unpacked . get ( 'recipient_verkey' , None ) , unpacked . get ( 'sender_verkey' , None ) ) LOGGER . debug ( 'Wallet.unpack <<< %s' , rv ) return rv
Unpack a message.
Unpack a message .
"""
        Unpack a message. Return triple with cleartext, sender verification key, and recipient verification key.
        Raise AbsentMessage for missing ciphertext, or WalletState if wallet is closed. Raise AbsentRecord
        if wallet has no key to unpack ciphertext.

        :param ciphertext: JWE-like formatted message as pack() produces
        :return: cleartext, sender verification key, recipient verification key
        """
cleartext, sender verification key, recipient verification key
cleartext sender verification key recipient verification key
self
ciphertext
bytes
JWE-like formatted message as pack() produces
JWE - like formatted message as pack () produces