1. Make the salsa macha: In a skillet, heat olive oil over medium heat until it starts to shimmer. Add garlic and fry until golden brown. Add chiles and spices and toast until fragrant, about 1 minute. Remove from heat and add remaining ingredients. Allow to cool for about 15 to 20 minutes, then process in a blender until smooth.
2. Make the fried onions: In a 5-quart pot fitted with a deep-fry thermometer, heat oil to 300 degrees. Season onions with salt and then toss with just enough cornstarch to coat. If onions start to clump together, add more cornstarch and toss to coat again. Add onions to oil and fry, stirring occasionally, until golden brown. Remove onions from oil, drain on paper towels, and season with salt.
3. Make the peas: Prepare large bowl of ice water. Blanch peas in boiling water for about 10 to 12 minutes, then drain and shock in ice water. Once cool, strain peas and set aside. In a large skillet over medium heat, cook shallot and garlic in olive oil until shallots are translucent. Add peas, lemon juice, and zest, and cook until warmed through. Transfer contents of skillet to a food processor and process until smooth. Adjust consistency with vegetable stock, as needed, until peas have a smooth texture. Season to taste with salt and pepper. Serve with salsa macha and fried onions.