Serialization of RootKey