I think it is not a good idea to store IPv4 addresses exactly like IPv6 addresses.
They are completely different things.
You may encounter the :ffff:
version if you run a server which listens on an IPv6 socket woth IPV6ONLY
disabled. Then, you'll notice the IPv4 host 192.168.1.100
connecting as ::ffff:c0a8:164
. But you cannot connect to this address via IPv6 - for this purpose, you'd need an IPv4 socket. So better store the addresses in short form which makes it much easier to distinguish between them via the length.