(txt)
| 352 | } |
| 353 | |
| 354 | function parseMetaInfo(txt) { |
| 355 | const result = {}; |
| 356 | txt.replace(/\r/g, '').split('\n').forEach(row => { |
| 357 | if (row.length) { |
| 358 | const keyValue = row.split(/:\s/); |
| 359 | result[keyValue[0]] = keyValue[1]; |
| 360 | } |
| 361 | }); |
| 362 | return result; |
| 363 | } |
| 364 | |
| 365 | export async function restorePrivateKeyBackup(armoredBlock, code) { |
| 366 | let message = await pgpReadMessage({armoredMessage: armoredBlock}); |
no outgoing calls
no test coverage detected