tofn structs like SecretKeyShare, GroupPublicInfo etc. visible in the API shouldn't expose their fields. The user only needs to be able to access the encoded public key, group info, and private recovery info. This can be allowed by keeping the corresponding the functions (pubkey_bytes etc.) public while keeping the fields private. tofnd will follow this approach starting in axelarnetwork/tofnd#160.
tofn
structs likeSecretKeyShare
,GroupPublicInfo
etc. visible in the API shouldn't expose their fields. The user only needs to be able to access the encoded public key, group info, and private recovery info. This can be allowed by keeping the corresponding the functions (pubkey_bytes
etc.) public while keeping the fields private.tofnd
will follow this approach starting in axelarnetwork/tofnd#160.