blockchain-certificates / BlockcertsFramework-iOS

An iOS wallet for viewing, validating, and sharing certs
MIT License
20 stars 15 forks source link

update keychain creation and save unusedKeyIndex as new index tracker #34

Closed kimdhamilton closed 7 years ago

kimdhamilton commented 7 years ago

Problem description is in #33.

This phase of the fix addresses the immediate concern of initializing keychains properly.

This saves index state in under a new name (even for existing implementations), which will enable existing wallets (that have already used keys from the former derivation) to know the max index that was used. This is intended as a future-proofing step for such wallets: this will help us recover ownership, for example when the wallet supports features such as proving ownership of keys.