code: function determineIfIncludesMeAndRewriteDeviceAddress(assocSignersByPath, handleResult){
  	var assocMemberAddresses = {};
  	var bHasMyDeviceAddress = false;
  	for (var signing_path in assocSignersByPath){
  		var signerInfo = assocSignersByPath[signing_path];
  		if (signerInfo.device_address === device.getMyDeviceAddress())
  			bHasMyDeviceAddress = true;
  		if (signerInfo.address)
  			assocMemberAddresses[signerInfo.address] = true;
  	}
  	var arrMemberAddresses = Object.keys(assocMemberAddresses);
  	if (arrMemberAddresses.length === 0)
  		return handleResult("no member addresses?");
  	db.query(
  		"SELECT address, 'my' AS type FROM my_addresses WHERE address IN(?) \n\
  		UNION \n\
  		SELECT shared_address AS address, 'shared' AS type FROM shared_addresses WHERE shared_address IN(?)", 
  		[arrMemberAddresses, arrMemberAddresses],
  		function(rows){
  		//	handleResult(rows.length === arrMyMemberAddresses.length ? null : "Some of my member addresses not found");
  			if (rows.length === 0)
  				return handleResult("I am not a member of this shared address");
  			var arrMyMemberAddresses = rows.filter(function(row){ return (row.type === 'my'); }).map(function(row){ return row.address; });
  			// rewrite device address for my addresses
  			if (!bHasMyDeviceAddress){
  				for (var signing_path in assocSignersByPath){
  					var signerInfo = assocSignersByPath[signing_path];
  					if (signerInfo.address && arrMyMemberAddresses.indexOf(signerInfo.address) >= 0)
  						signerInfo.device_address = device.getMyDeviceAddress();
  				}
  			}
  			handleResult();
  		}
  	);
  }
docs: Checks if any of my payment addresses is mentioned. It is possible that my device address is not mentioned in the definition if I'm a member of multisig address, one of my cosigners is mentioned instead