Skip to main content

Module user

Module user 

Source
Expand description

Persistent user representation and reputation helpers.

The User struct is the database-backed record Mostro keeps for every identity that has interacted with the system. It tracks rating aggregates, administrative flags and the last trade index used by the user, which is required so that new orders always carry a strictly increasing trade index.

UserInfo is a lightweight view of the same data that can safely be shared with a counterpart during a trade without leaking internals.

Structs§

User
Database representation of a Mostro user.
UserInfo
Public snapshot of a user’s reputation shared with peers during a trade.