NOVELTY - Production of methane and/or high purity hydrogen involves anaerobic digestion of organic materials with bacteria and/or their enzymes to produce a mixed gas stream of methane, carbon dioxide, small quantity of water and trace impurities; optionally removing water contained in the stream; compressing the optionally condensed, mixed stream; and removing hydrogen sulfide and/or carbon dioxide, or hydrogen.    USE - For production of methane and high purity hydrogen (claimed) useful as fuel.    ADVANTAGE - The method produces 40 - 2400 standard liters/minute of methane gas and hydrogen gas at pressure of 1.82 - 2.86 megapascals and 100 - 450 kilopascals having purity of 1.82 - 2.86 and greater than 99.99% respectively by using a more reliable and cost effective system. The process generates renewable sources of methane and hydrogen; does not rely on outside sources of energy and is reasonable from environmental standpoint.    DETAILED DESCRIPTION - Production of methane and/or high purity hydrogen involves:    (a) anaerobically digesting organic materials by the action of bacteria and/or enzymes contained to produce a mixed gas stream containing methane, carbon dioxide, small quantity of water and trace impurities including hydrogen sulfide, nitrogen and oxygen;    (b) optionally removing at least a portion of any water contained in the mixed gas stream;    (c) compressing the optionally condensed, mixed gas stream; and    (d) producing a methane product stream by removing hydrogen sulfide and/or carbon dioxide; and/or producing a high purity hydrogen product stream by generating hydrogen-rich gas from the compressed, mixed gas stream and then removing hydrogen from the hydrogen-rich gas.    An INDEPENDENT CLAIM is included for a self-contained and streamlined methane and/or high-purity hydrogen generation system comprising an anaerobic digester, at least one compressor, at least one mixed gas-driven generator or the mixed gas purification device and/or the hydrogen generation and removal system. The compressor is in fluid communication with the digester and in additional fluid communication with a hydrogen generation and removal system and/or a mixed gas purification device. The gas-driven generator is in fluid and electrical communication with the digester, and the hydrogen generation and removal system and/or the mixed gas purification device respectively. The gas purification device removes hydrogen sulfide and/or carbon dioxide from the mixed stream to produce a methane product steam and the device is in fluid and electrical communication with the compressor and the generator respectively. The hydrogen generation and removal system comprises a device for generating a hydrogen-rich gas from the compressed stream and a device for removing hydrogen from hydrogen-rich gas to produce high purity hydrogen product stream.