Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Require salt in Rfq privateData JSON schema #306

Merged
merged 3 commits into from
Mar 31, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hosted/json-schemas/rfq-private.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@
}
}
}
}
},
"required": ["salt"]
}
4 changes: 2 additions & 2 deletions specs/protocol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,10 @@ The salted hash is produced by creating a [digest](#digests) of a JSON array con

The `privateData` field is ephemeral and **MUST** only be present when the message is initially sent to the intended recipient.

This table enumerates the structure of
This table enumerates the structure of `PrivateData`
| field | data type | required | description |
| -------- | ------------------------------------------------- | -------- | ------------------------------------------------------------------------------------- |
| `salt` | string | N | |
| `salt` | string | Y | Randomly generated salt used for hashing PrivateData fields |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice. the rfq json example below this table will need updating too

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this example too actually

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. ty

| `claims` | string[] | N | an array of claims that fulfill the requirements declared in an [Offering](#offering) |
| `payin` | [`PrivatePaymentDetails`](#privatepaymentdetails) | N | A container for the unhashed `payin.paymentDetails` |
| `payout` | [`PrivatePaymentDetails`](#privatepaymentdetails) | N | A container for the unhashed `payout.paymentDetails` |
Expand Down