Skip to main content

general_canonical_string

Function general_canonical_string 

Source
pub fn general_canonical_string(
    operation_name: String,
    json_value: Value,
    without_fields: Vec<String>,
) -> String
Expand description

Given an operation name, unstructured JSON object under the payload key (common to all mutations that require signatures) and list of fields to remove, return a canonical string representation for signing the mutation