Skip to content

Best way to handle latitude, longitude data #1

@j0x0j

Description

@j0x0j

Problem

The latlng (latitude, longitude) parameter is passed in plain text to the newPolicy method HurricaneGuardNewPolicy.sol#L80 and saved to the Database Contract HurricaneGuardDatabase.sol#L147. This may be considered personally identifiable information, it should not be public.

Possible Solutions

  • Use Oraclize Encrypted Queries
    Solves the transit problem but still saves the the plain bytes in the Database Contract
  • Encrypt the parameter off-chain.
    Does the API server hold the private key? What happens when a user interacts directly with the contract using meta mask, do we encrypt in the front end using a public key?
  • Don't save latlng in Database Contract?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions