|
@@ -182,47 +182,47 @@ PayloadType will allow E-PASA's to be deterministically decoded by the recipient
|
|
|
/// <summary>
|
|
|
/// Payload encryption and encoding method not specified.
|
|
|
/// </summary>
|
|
|
- NonDeterministic = 0x00000000,
|
|
|
+ NonDeterministic = 0b00000000,
|
|
|
|
|
|
/// <summary>
|
|
|
/// Unencrypted, public payload.
|
|
|
/// </summary>
|
|
|
- Public = 0x00000001,
|
|
|
+ Public = 0b00000001,
|
|
|
|
|
|
/// <summary>
|
|
|
/// ECIES encrypted using recipient accounts public key.
|
|
|
/// </summary>
|
|
|
- RecipientKeyEncrypted = 0x00000010,
|
|
|
+ RecipientKeyEncrypted = 0b00000010,
|
|
|
|
|
|
/// <summary>
|
|
|
/// ECIES encrypted using sender accounts public key.
|
|
|
/// </summary>
|
|
|
- SenderKeyEncrypted = 0x00000100,
|
|
|
+ SenderKeyEncrypted = 0b00000100,
|
|
|
|
|
|
/// <summary>
|
|
|
/// AES encrypted using pwd param
|
|
|
/// </summary>
|
|
|
- PasswordEncrypted = 0x00001000,
|
|
|
+ PasswordEncrypted = 0b00001000,
|
|
|
|
|
|
/// <summary>
|
|
|
/// Payload data encoded in ASCII
|
|
|
/// </summary>
|
|
|
- AsciiFormatted = 0x00010000,
|
|
|
+ AsciiFormatted = 0b00010000,
|
|
|
|
|
|
/// <summary>
|
|
|
/// Payload data encoded in HEX
|
|
|
/// </summary>
|
|
|
- HexFormatted = 0x00100000,
|
|
|
+ HexFormatted = 0b00100000,
|
|
|
|
|
|
/// <summary>
|
|
|
/// Payload data encoded in Base58
|
|
|
/// </summary>
|
|
|
- Base58Formatted = 0x01000000,
|
|
|
+ Base58Formatted = 0b01000000,
|
|
|
|
|
|
/// <summary>
|
|
|
/// E-PASA addressed by account name (not number).
|
|
|
/// </summary>
|
|
|
- AddressedByName = 0x10000000,
|
|
|
+ AddressedByName = 0b10000000,
|
|
|
|
|
|
}
|
|
|
```
|
|
@@ -383,7 +383,7 @@ For Layer-2 applications the ability for a receiver to auto-decode the E-PASA vi
|
|
|
* Ugochukwu Mmaduekwe for assistance developing payload length validation rules
|
|
|
* Benjamin Ansbach for regular feedback, assistance and insightful suggestions
|
|
|
* UrbanCohort for elegancy-improving suggestion
|
|
|
-
|
|
|
+
|
|
|
## Reference Implementation
|
|
|
|
|
|
The following regex parses an e-pasa:
|
|
@@ -638,4 +638,4 @@ A recursive-descent implementation can be found [here][2].
|
|
|
|
|
|
[1]: https://github.com/Sphere10/NPascalCoin/blob/master/src/NPascalCoin/Common/Text/RegexEPasaParser.cs
|
|
|
[2]: https://github.com/Sphere10/NPascalCoin/blob/master/src/NPascalCoin/Common/Text/RecursiveDescentEPasaParser.cs
|
|
|
-
|
|
|
+
|