Skip to content

Commit

Permalink
Exclude sending-contact and receiving-contact when calculating hash
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurzydlowski committed Mar 15, 2021
1 parent 16f3fe1 commit 1e4237e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion endpoints/get-response.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@

If you are sending conditions-hash, be consistent in ordering cooperation conditions.
The hash SHOULD NOT change if the cooperation conditions are not really changing.
An exception to this are the `sending-contact` and `receiving-contact` subelements
that are not taken into account when calculating hash.
</xs:documentation>
</xs:annotation>
<xs:complexType>
Expand Down Expand Up @@ -231,7 +233,8 @@
<xs:element name="conditions-hash" type="ewp:Sha256Hex" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
The SHA-256 digest of the cooperation-conditions element. Before
The SHA-256 digest of the cooperation-conditions element but *excluding*
`sending-contact` and `receiving-contact` subelements. Before
calculating the hash, the cooperation-conditions element should be normalized
using Exclusive XML Canonicalization.

Expand Down

0 comments on commit 1e4237e

Please sign in to comment.