Instances might contain extra fields that need to be taken into account for signature verification.
ruma-federation-api contains serializable types for the requests and responses for each endpoint in the Matrix Federation API specification. These types can be shared by client and server code.