Catalyzes the hydrolysis of inorganic pyrophosphate (PPi) forming two phosphate ions. diphosphate + H2O = H(+) + 2 phosphate Homotrimer. In presence of divalent cations the trimers aggregate to form a hexamer. Belongs to the PPase family.