Skip to content

Operation Encoding: Split Operation and Parameters #15

@johnx25bd

Description

@johnx25bd

Priority: Medium

Description

The within operation returns operation: "within:50000" and resolvers are told to use prefix matching. This is a footgun:

  • Easy to implement incorrectly
  • Makes schema evolution brittle
  • Requires string parsing in smart contracts

Fix Direction

Consider splitting fields in the attested payload:

operation = "within"
params = { radius_cm: 50000 }

Or add radiusCm as a separate numeric field.

  • Document the rationale for current encoding
  • If changing, create migration guide
  • Update resolver examples to handle edge cases robustly

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium prioritydocumentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions