From what I have read, mixing any two of three of these fairly calorie dense groups makes a complete protein.
1)Nuts/seeds, 2)legumes/beans, and 3)grains.
Properly prepared I expect they should keep for several days on the trail.
I won't get to thru hike for quite a while (2020?) but I am planning food ideas now.