SiaPublicKey String Type
As Matt suggested in !4851 (merged), it could be a good idea to make a pubkey string into its own type, providing type safety in the countless occurrences where we use the host's pubkey string as a key in some map.
The following discussion from !4851 (merged) should be addressed:
-
@MSevey started a discussion: (+1 comment) Q: This string is the pubkey right? This is a pretty common usecase across the code base. I wonder if a
type pubkeyStr string
would be worth while to ensure that we are using these maps properly all the time. Would also apply to a lot of the rest of the codebase.
Edited by Peter-Jan Brone