I assumed all nodes use the same key.
I will try to support different keys after finishing this PR.