prd storage format (doc)

This commit is contained in:
NicolasCantu 2024-03-08 12:06:23 +01:00
parent 48691b7abe
commit 8b34cd39eb
2 changed files with 88 additions and 66 deletions

View File

@ -39,6 +39,7 @@ pseudo-code:
```json ```json
[ [
{ {
"hash": "",
"label": "", "label": "",
"device_footprint": "", "device_footprint": "",
"third_party_list": [ "third_party_list": [
@ -59,6 +60,7 @@ pseudo-code:
```json ```json
[ [
{ {
"hash": "",
"shared_peer": { "shared_peer": {
"domain": "String", "domain": "String",
"address_ip": "String", "address_ip": "String",
@ -624,6 +626,7 @@ pseudo-code:
```json ```json
[{ [{
"hash": "",
"me_sender": false, "me_sender": false,
"process_hash": "", "process_hash": "",
"item_name": "", "item_name": "",
@ -661,6 +664,7 @@ pseudo-code:
```json ```json
[ [
{ {
"hash": "",
"request": { "request": {
"item_name": "", "item_name": "",
"request_type": "", "request_type": "",
@ -707,6 +711,7 @@ pseudo-code:
```json ```json
[ [
{ {
"hash": "",
"request": { "request": {
"item_name": "", "item_name": "",
"request_type": "", "request_type": "",
@ -718,43 +723,31 @@ pseudo-code:
"request_prd_origin_hash": "", "request_prd_origin_hash": "",
"item_reference_hash": "" "item_reference_hash": ""
}, },
"": "", "request_pcd_reference_keys_role_confidential_list_enc_by_shared_secret": "",
"": "", "request_pcd_origin_hash_keys_role_confidential_list_enc_by_shared_secret": "",
"": "", "message_public": "",
"": "", "message_confidential": "",
"": "", "message_private": "",
"": "", "sp_address_to": "",
"": "", "sp_address_from": "",
"": "", "sp_address_reply": "",
"": "", "timestamp_declared": 0,
"": "", "role_name_from": "",
"": "", "role_name_to": "",
"": "", "payment_method_enc_by_shared_secret": "",
"": "", "deposit_method_enc_by_shared_secret": "",
"": "", "commitment_method_enc_by_shared_secret": "",
"": "", "payment_request_pcd_hash_list_enc_by_shared_secret": [""],
"": "", "cap_request_pcd_hash_list_enc_by_shared_secret": [""],
"": "", "deposit_request_pcd_hash_list_enc_by_shared_secret": [""],
"": "", "commitment_request_pcd_hash_list_enc_by_shared_secret": [""],
"": "", "ask_payment_method_enc_by_shared_secret": "",
"": "", "ask_deposit_method_enc_by_shared_secret": "",
"": "", "ask_commitment_method_enc_by_shared_secret": "",
"": "", "certif_key_enc_by_shared_secret": "",
"": "", "device_footprint_enc_by_sp_shared_secret": "",
"": "", "validation_status": "pending|ok|ko"
"": "", }
"": "",
"": "",
"": "",
"": "",
"": "",
"": "",
"": "",
"": "",
"": "",
"": "",
"": "",
"": "",
] ]
``` ```
@ -767,6 +760,7 @@ pseudo-code:
```json ```json
[ [
{ {
"hash_public": "",
"label": "", "label": "",
"keyrecoverSpend": { "keyrecoverSpend": {
"seed_rand_1": "", "seed_rand_1": "",
@ -791,6 +785,7 @@ pseudo-code:
```json ```json
[ [
{ {
"hash_public": "",
"shared_peer": { "shared_peer": {
"domain": "", "domain": "",
"address_ip": "", "address_ip": "",
@ -841,7 +836,7 @@ pseudo-code:
```json ```json
[ [
{ {
"hash": "", "hash_public": "",
"item": { "item": {
"metadata_private": { "metadata_private": {
"metadata": { "metadata": {
@ -949,9 +944,35 @@ pseudo-code:
```json ```json
[{ [{
"pcd_hash": "", "hash_public": "",
"pcd_aes_key_decrypted_list": [""] "pcd_aes_key_list_decrypted": [""]
}] }]
``` ```
### 5.5. <a name='RequestPrd-1'></a>RequestPrd ### 5.5. <a name='RequestPrd-1'></a>RequestPrd
```json
[
{
"hash_public": "",
"sig_value": "",
"request_pcd_reference_keys_role_confidential_list_decrypted": "",
"request_pcd_origin_hash_keys_role_confidential_listdecrypted": "",
"message_public_decrypted": "",
"message_confidential_decrypted": "",
"message_private_decrypted": "",
"payment_method_decrypted": "",
"deposit_method_decrypted": "",
"commitment_method_decrypted": "",
"payment_request_pcd_hash_list_decrypted": [""],
"cap_request_pcd_hash_list_decrypted": [""],
"deposit_request_pcd_hash_list_decrypted": [""],
"commitment_request_pcd_hash_list_decrypted": [""],
"ask_payment_method_decryptedt": "",
"ask_deposit_method_decrypted": "",
"ask_commitment_method_decrypted": "",
"certif_key_decrypted": "",
"device_footprint_decrypted": ""
}
]
```

View File

@ -722,10 +722,11 @@ It specifies private encrypted attributes for `request_pcd` items, protecting th
Encapsulates a detailed request within the system, focusing on the interaction with Portable Request Documents ( RequestPrd) and specifying various levels of message confidentiality and intended service provider (SP) communication details. Encapsulates a detailed request within the system, focusing on the interaction with Portable Request Documents ( RequestPrd) and specifying various levels of message confidentiality and intended service provider (SP) communication details.
| Attribute Name | Type | Option | Description | | Attribute Name | Type | Option | Description |
|----------------------------------------------------------------|-------------------|--------|-----------------------------------------------------------------------------------------------| |----------------------------------------------------------------------------|-------------------|--------|--------------------------------------------------------------------------|
| `request` | ```Request``` | | A predefined struct representing the basic request information. | | `request` | ```Request``` | | A predefined struct representing the basic request information. |
| `sig_value` | ```String``` | | Valeur associée à la signature | | `sig_value` | ```String``` | | Valeur associée à la signature |
| `request_pcd_keys_role_confidential_list_enc_by_shared_secret` | ```String``` | | Encrypted list of RequestPcd keys for role-confidential data, encrypted with a shared secret. | | `request_pcd_reference_keys_role_confidential_list_enc_by_shared_secret` | ```Vec<String>``` | | |
| `request_pcd_origin_hash_keys_role_confidential_list_enc_by_shared_secret` | ```Vec<String>``` | | |
| `message_public` | ```String``` | Yes | Optionally specifies a public message associated with the request. | | `message_public` | ```String``` | Yes | Optionally specifies a public message associated with the request. |
| `message_confidential` | ```String``` | Yes | Optionally specifies a confidential message associated with the request. | | `message_confidential` | ```String``` | Yes | Optionally specifies a confidential message associated with the request. |
| `message_private` | ```String``` | Yes | Optionally specifies a private message associated with the request. | | `message_private` | ```String``` | Yes | Optionally specifies a private message associated with the request. |