Constructing hydrogels from engineered protein