iOS/macOS Safari 用 NIP-07 の Nostore のソースを読んでみた。

- 秘密鍵は平文で browser.storage.local に保存 (nos2xと同じ)

多分 iCloud バックアップで平文のままコピーされると思います。

```

const storage = browser.storage.local;

(中略)

async function savePrivateKey([index, privKey]) {

if (privKey.startsWith('nsec')) {

privKey = nip19.decode(privKey).data;

}

let profiles = await get('profiles');

profiles[index].privKey = privKey;

await storage.set({ profiles });

return true;

}

```

https://github.com/ursuscamp/nostore/blob/c68f91923aa87ae31d8d7de41368d1ea04a3323f/Shared%20(Extension)/Resources/background.js#L180

https://github.com/ursuscamp/nostore/blob/c68f91923aa87ae31d8d7de41368d1ea04a3323f/Shared%20(Extension)/Resources/background.js#L21

Reply to this note

Please Login to reply.

Discussion

No replies yet.