Skip to content

Commit

Permalink
updated RecordKey enum with raw values
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjohnson committed Jun 25, 2021
1 parent a0d858f commit fecbff7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
Binary file not shown.
9 changes: 3 additions & 6 deletions BTCPhotonKit/CloudStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ enum CloudstoreError: Error {
}

enum RecordKey: String {
case phone
case email
case keyId
case phone = "1_photon_phone"
case email = "1_photon_email"
case keyId = "1_photon_key_id"
case shortKeyID
case ciphertext
case timeValue
Expand All @@ -46,9 +46,6 @@ public class CloudStore {

init(store:CloudDAO = CloudKitDAO() ) {
self.store = store
KEY_ID = "\(VERSION)_photon_key_id"
PHONE = "\(VERSION)_photon_phone"
EMAIL = "\(VERSION)_photon_email"
}

/// Encrypted key storage
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ Copy the contents of [BTCPhotonKit](./BTCPhotonKit) to your xcode project.
* ##### Using Xcode automatically manage signing
Follow [Apple documentaion](https://developer.apple.com/documentation/cloudkit/enabling_cloudkit_in_your_app) or follow the images below

![alt text](./images/a.png)
![alt text](./images/b.png)
![alt text](./images/c.png)
![alt text](./images/d.png)
![Alt text](./images/a.png?raw=true)
![Alt text](./images/b.png?raw=true)
![Alt text](./images/c.png?raw=true)
![Alt text](./images/d.png?raw=true)

## Example usage

Expand Down

0 comments on commit fecbff7

Please sign in to comment.