-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I followed this guide to prepare a dataset: https://swiftpackageindex.com/apple/pir-service-example/main/documentation/pirservice/testinginstructionslivecalleridlookup#Preparing-the-dataset
Actually, because of the regional data privacy, I should not store the raw phone numbers of users. So, I am thinking of hashing the phone numbers and store them as a keys. For example:
- Instead of:
identities {
key: "+123"
value {
name: "Adam"
cache_expiry_minutes: 8
category: IDENTITY_CATEGORY_PERSON
}
}
identities {
key: "+1234"
value {
name: "Bob"
cache_expiry_minutes: 7
block: true
}
}
identities {
key: "+12345"
value {
name: "Grocery Store"
cache_expiry_minutes: 18
block: false
category: IDENTITY_CATEGORY_BUSINESS
}
}
- Can I store hashed phone numbers as keys?
identities {
key: "1b245e45ea4b2d81792ddafa2320359aef1533de84b75e88d13148c83bd198ae"
value {
name: "Adam"
cache_expiry_minutes: 8
category: IDENTITY_CATEGORY_PERSON
}
}
identities {
key: "41395a6b882cda8c37cae2ce9f9d35e8327109aab27da52ae3ee50482b74a86d"
value {
name: "Bob"
cache_expiry_minutes: 7
block: true
}
}
identities {
key: "90a73f096e89e5bc9f0d0a6a387f0c27e5f16ff72233b9be192b6229606e88e2"
value {
name: "Grocery Store"
cache_expiry_minutes: 18
block: false
category: IDENTITY_CATEGORY_BUSINESS
}
}
If possible, where could I customize the logic of PIR query?
I would appreciate it if you have any ideas to help me.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels