[−][src]Function pn_sign::v2::sign_request
pub fn sign_request(
method: impl AsRef<str>,
pub_key: impl AsRef<str>,
path: impl AsRef<str>,
qs: impl IntoIterator<Item = (impl AsRef<str>, impl AsRef<str>)>,
body: impl AsRef<str>,
sec_key: impl AsRef<str>
) -> Result<String, CryptoError>
Computes the signature for a request with the given HTTP method, path, query string parameters, and request body using the supplied publish and secret keys.