Well, since writing the original post I did find out some more about the format being used here. As you said the "linked_accounts" seems to be an array of accounts that the keys in either the "wallet" or "private_keys" happen to control. The idea I had that these could be an array of accounts controlling another account doesn't seem to be the correct one.
Still even though I managed to create a backup file that the web wallet will successfully import and list, it is not yet working. Mainly because it doesn't look like the web wallet is being able to actually read the private keys from the file. I'm not sure where the problem might be, and I do recognize there are a couple of fields missing in my backup file, but none of these ("password_pubkey" and "brainkey_pubkey") should be needed in order to retrieve the private keys.
Here's what I'm creating so far:
{
"linked_accounts": [
{
"chainId": "4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8",
"name": "bilthon-5"
}
],
"private_keys": [
{
"brainkey_sequence": 0,
"encrypted_key": "81e68ca372d1c7596bbf0e462992cbb84f35cb62b3a615d1bb5b8d7af082672029f9ad7f4c273ac21ed5436bec08bd30",
"id": 0,
"pubkey": "BTS8DuGHXpHYedq7qhT65BEEdQPvLT8nxZ862Hf8NgvSZUMuwUFkn"
}
],
"wallet": [
{
"backup_date": "2017-02-19T22:49:01",
"brainkey_backup_date": "2017-02-19T22:49:01",
"brainkey_sequence": 0,
"chain_id": "4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8",
"created": "2017-02-19T22:49:01",
"encrypted_brainkey": "f22f5c4bbae9620a11bdc3794dec73ad9ef2c16c3a822cd7f3e5851e34623ee1085291f65a88dd7a714bffadcd81ab9ddabcc1c35871f5795cb68d79f628e503395ac8a657f38d063144b703b46ab50d604679eada05f1a31696066025fb50b4",
"encryption_key": "ae00c24d22b507893841ff67770976b84bbd97259814b92641ad7caf2d37730d0861a3561cd5590d92d0759596f428a2",
"id": "bilthon-5",
"last_modified": "2017-02-19T22:49:01",
"public_name": "bilthon-5"
}
]
}
And to add more information to the discussion, here's the decrypted and decompressed contents of the backup file the web wallet is generating.
{
"linked_accounts": [
{
"name": "bilthon83",
"chainId": "4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8"
}
],
"private_keys": [
{
"brainkey_sequence": 0,
"encrypted_key": "19a787f3c6c1c848e20f9e69a233c7d7d44db44170ed539e1d2349378698e4ea226958a887927f81e56fe491599db2be",
"id": 1,
"pubkey": "BTS5WMHRj65FK3KyRpS3wJp5iC1WWnScHunRLGoCMM4A2NCLDKy6i"
},
{
"brainkey_sequence": 1,
"encrypted_key": "9e3f5a5484bfb4563fe6177a93994f6412d96f956b29f9a86a743fcdfe209a2d1a6748bbaab55ef5efed8d376b2a326c",
"id": 2,
"pubkey": "BTS59LjmiQ3hh9ZMK5gYyj7EjFvuf3YJFCbU5pEQ1gzatBsPycwoJ"
}
],
"wallet": [
{
"public_name": "default",
"password_pubkey": "BTS7bq4tVD5CLBTPowT4WJJHmSh8YumfoDYMiZHiCzNWQMq8DcGFX",
"encryption_key": "3fe90371fa1d8306a12fa2b96e14424650a4747c05d118f534f5aa28342e24d6b2c7d3d7f6123fd5b49d0f57758c49fc",
"encrypted_brainkey": "90d601625c32118e16ad87721593ecfb82c6afe01f4424f1aae640d5c2202cb8051921b9e1499104e8c55b6f11452484c05fcc3f143f7fd91c5aed96982a5fed491dde5f30f2144d22d23eb242c3df0d6168ea1382186154c011a588244599da07151862a5f5a0cb9aec5dad0a08c583",
"brainkey_pubkey": "BTS4xgzQXHK96ojeTHWCNGZpERCL8wi359y7KgiR2EmUfp9KdHsGm",
"brainkey_sequence": 2,
"brainkey_backup_date": null,
"created": "2016-07-22T17:48:18.639Z",
"last_modified": "2017-02-19T21:58:17.560Z",
"chain_id": "4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8",
"id": "default",
"backup_date": "2017-02-19T22:35:40.599Z",
"deposit_keys": {
"openledger": {
"[1][bilthon83][agrs][open.agrs]": [
{
"address": "13Kevab5ZKVYCAfbHbSaEaAUDCW4vwXgEw",
"memo": null
},
{
"address": "1HmaSdGSAkwJ9ajPe1cVybzhHrZm14GGVy",
"memo": null
},
{
"address": "1D5tKoMeBS82d2QvM8nzwXzoJnGpFMLLPH",
"memo": null
}
],
"[1][bilthon83][btc][open.btc]": [
{
"address": "1NY76B7Ames7sLw2wp3HwM3nCJR3o9E3oE",
"memo": null
},
{
"address": "1AZqqYVirxpRSJJgZGzUGimk9QdEzZwEpj",
"memo": null
},
{
"address": "1Mzcxk3bVThTWR7ywDEHzJujEAMdGYrPMm",
"memo": null
}
]
}
}
}
]
}
As you can see, here we not only have the 2 previously mentioned fields in the wallet object ("password_pubkey" and "brainkey_pubkey") but also this "deposit_keys" with a bunch of BTC addresses (?!). This just added more questions to my head.
Anyone can help answer some of them?
Best regards
Nelson R. Pérez