You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Person class currently utilizes a field defined as Map<Network, Set<PublicAddress>> to store public addresses. This implementation presents a significant risk of contamination, where the key representing a specific network (e.g., "BTC") may inadvertently allow values of a different network type (e.g., EthAddress). Since the type PublicAddress does not enforce type safety, this can lead to data integrity issues and make it challenging to manage the addresses appropriately.
Proposed solutions:
Refactor the data structure (preferred)
Add checks and tests to ensure this does not happen
The text was updated successfully, but these errors were encountered:
Airiinnn
added
type.Bug
A bug
severity.Medium
A flaw that causes occasional inconvenience to some users, but they can continue to use the product
severity.Low
A flaw that is unlikely to affect normal operations of the product
and removed
severity.Medium
A flaw that causes occasional inconvenience to some users, but they can continue to use the product
labels
Oct 16, 2024
The Person class currently utilizes a field defined as
Map<Network, Set<PublicAddress>>
to store public addresses. This implementation presents a significant risk of contamination, where the key representing a specific network (e.g.,"BTC"
) may inadvertently allow values of a different network type (e.g.,EthAddress
). Since the typePublicAddress
does not enforce type safety, this can lead to data integrity issues and make it challenging to manage the addresses appropriately.Proposed solutions:
The text was updated successfully, but these errors were encountered: