pub fn validate<P: Payload>(
payload: &P,
metadata: &Metadata,
) -> Result<(), Error>
Expand description
Run the validation logic against some runtime API payload you’d like to use. Returns Ok(())
if the payload is valid (or if it’s not possible to check since the payload has no validation hash).
Return an error if the payload was not valid or something went wrong trying to validate it (ie
the runtime API in question do not exist at all)