Browse Source

PIP-0027: finalize and propose

Herman Schoenfeld 6 years ago
parent
commit
ac3f412950
1 changed files with 5 additions and 3 deletions
  1. 5 3
      PIP/PIP-0027.md

+ 5 - 3
PIP/PIP-0027.md

@@ -109,21 +109,23 @@ The following validation rules must be applied to Payload lends
 ### With ASCII payloads 
 ### With ASCII payloads 
 
 
 | Rule                                      | Explanation                                                                                                     |
 | Rule                                      | Explanation                                                                                                     |
-| ----------------------------------------: | :-------------------------------------------------------------------------------------------------------------- |
+| :---------------------------------------- | :-------------------------------------------------------------------------------------------------------------- |
 | 123456-77                                 | Backwards compatible to PASA 123456-77 This is a layer-2 address, fully backwards compatible as Layer-1 address |
 | 123456-77                                 | Backwards compatible to PASA 123456-77 This is a layer-2 address, fully backwards compatible as Layer-1 address |
 | 123456-77["Hello World!"]                 | Public ASCII payload "Hello World!", no checksum protection                                                     |
 | 123456-77["Hello World!"]                 | Public ASCII payload "Hello World!", no checksum protection                                                     |
 | 123456-77["Hello World!"]:10cb            | Same but checksum protected                                                                                     |
 | 123456-77["Hello World!"]:10cb            | Same but checksum protected                                                                                     |
 | 123456-77("Hello World!"):7ba2            | ECIES encrypted payload using **recipient's public key** and checksum protected                                 |
 | 123456-77("Hello World!"):7ba2            | ECIES encrypted payload using **recipient's public key** and checksum protected                                 |
 | 123456-77<"Hello World!">:b51f            | ECIES encrypted payload using **senders public key** and checksum protected                                     |
 | 123456-77<"Hello World!">:b51f            | ECIES encrypted payload using **senders public key** and checksum protected                                     |
 | 123456-77{"Hello World!":!43lp|-d|a%@#!}  | AES256 encrypted payload using password **!43lp|-d|a%@#!**                                                      |
 | 123456-77{"Hello World!":!43lp|-d|a%@#!}  | AES256 encrypted payload using password **!43lp|-d|a%@#!**                                                      |
-TODO: add escaped password examples
+| 123456-77{"Hello World!":\\\\\\"\\}}:24bc | AES256 encrypted payload using password **\\"}** and checksum protected  (note escaping of reserved chars)      |
 
 
 **NOTE**: Text payload and passwords are restricted to ANSI charset subset 32..126;
 **NOTE**: Text payload and passwords are restricted to ANSI charset subset 32..126;
 
 
+**NOTE**: The characters that need escaping in text payloads or passwords are **\\**, **"**, and **}**.
+
 ### With hexadecimal payloads 
 ### With hexadecimal payloads 
 
 
 | Rule                                      | Explanation                                                                                                     |
 | Rule                                      | Explanation                                                                                                     |
-| ----------------------------------------: | :-------------------------------------------------------------------------------------------------------------- |
+| :---------------------------------------- | :-------------------------------------------------------------------------------------------------------------- |
 | 77-44                                     | Backwards compatible to PASA 123456-77 This is a layer-2 address, fully backwards compatible as Layer-1 address |
 | 77-44                                     | Backwards compatible to PASA 123456-77 This is a layer-2 address, fully backwards compatible as Layer-1 address |
 | 77-44[0x416c70686124]                     | Public hexadecimal payload 0x123abc, no checksum protection                                                     |
 | 77-44[0x416c70686124]                     | Public hexadecimal payload 0x123abc, no checksum protection                                                     |
 | 77-44[0x416c70686124]:10cb                | Same but checksum protected                                                                                     |
 | 77-44[0x416c70686124]:10cb                | Same but checksum protected                                                                                     |