in sigv4/internal/crypt.go [33:41]
func ExtractNonce(req []byte) (string, error) {
text := string(req)
if !strings.HasPrefix(text, "nonce=") {
return "", errors.New("request does not contain nonce property")
}
nonce := strings.Split(text, "nonce=")[1]
return nonce, nil
}