I think RingKey should be explicitly uint32 or uint64