public static boolean isMagicPeerId(byte[] peerid) {
		if (peerid==null) return false;
		byte[] digest;
		try {
			digest = Torrent.hash(peerid);
		} catch (NoSuchAlgorithmException e) {
			e.printStackTrace();
			return false;
		}
		int magic = (digest[digest.length-2] << Byte.SIZE) | digest[digest.length-1];
		return (magic & 0xFFFF) != 0;
	}