diff --git a/rfc/0013_Duniter_Encrypted_Wallet_Import_Format.md b/rfc/0013_Duniter_Encrypted_Wallet_Import_Format.md index bb1611b94afc565dc11e7dc8e2e1aba5c4cf9f7b..71259105e4bdded565ff41dc4c5468988da31b87 100644 --- a/rfc/0013_Duniter_Encrypted_Wallet_Import_Format.md +++ b/rfc/0013_Duniter_Encrypted_Wallet_Import_Format.md @@ -45,7 +45,7 @@ This base64 string encodes a sequence of bytes whose structure is defined below. |:---------|:-----------| | None | 0x00000000 | | Ğ1 | 0x00000001 | -| Ğ1-Test | 0x01000001 | +| Ğ1-Test | 0x10000001 | ## encrypted datas @@ -72,21 +72,22 @@ The public key serves as a checksum. To check that the `.dewif` file is not corr Example 1: Seed generated from scrypt with the following parameters: -password: "password" -salt: "salt" +password: "user password" +salt: "user salt" N : 4096 r: 16 p: 1 ```txt 0x000000001 #v1 -0x22a91d9afa1dd13e96cecfa38d3f3655ca2726818ba5aa84e6b7dee1a036fc0f # seed -0xecdaab8f7ea0ea6f4b9f4e930cef2a1bb277736f64c971c43ca5d73cfb4bb80f # public key +0x100000001 #g1-test +0xbfa3f6e322cf21d0e652f79a69df9498fdf5347665e5646d9041f756496a1143 # seed +17df9d2b059cdd2825955691e3a783e6da403148ddebb1144d1a9b9e545f2371 # public key ``` -DEWIF base 64 string (with zeroing aes key): +DEWIF base 64 string (with aes key `"toto titi tata"`): -`AAFTQgEdcnSqvdxZW9Q+37b1RpiC5lsd/kjT01xUq122obU8R2IyyAVqpAsC2s7dwOX9xJ4r9WRnNrcpjLt3Mnq3` +`AAAAARAAAAGfFDAs+jVZYkfhBlHZZ2fEQIvBqnG16g5+02cY18wSOjW0cUg2JV3SUTJYN2CrbQeRDwGazWnzSFBphchMmiL0` ### v2