code: def decrypt(self, wif):
          
          if not self.unlocked():
              raise WalletLocked
          return format(bip38.decrypt(wif, self.masterkey), "wif")
docs: Decrypt the content according to BIP38
  
              :param str wif: Encrypted key