hyperledger-archives / indy-sdk

indy-sdk
https://wiki.hyperledger.org/display/indy
Apache License 2.0
668 stars 735 forks source link

Plans to support Predicate p_types other than GE #923

Closed xtrycatchx closed 6 years ago

xtrycatchx commented 6 years ago

This is more of a question and not really a bug/limitation. Is there a plan to support p_type's other than Greater-Than-Or-Equal-To in predicates?

{"attr_name": "age", "p_type": "OTHER_THAN_GE", "value": 18} 

Or are there other ways/tricks to switch attribute vs. value in a way that GE is also reversed, something like

{"value": 18, "p_type": "GE", "attr_name": "age" } 
xtrycatchx commented 6 years ago

I just learned about the roadmap which Evernym Indy-SDK Team includes this plan and can be found here : https://wiki.hyperledger.org/projects/indy/roadmap

May i know where to find the list of these Additional Predicates in the future?

jovfer commented 6 years ago

@xtrycatchx Current anoncreds algorithm allows to operate with ordering predicates. So in the future <, <= and > will be added. @esplinr @vimmerru I think we should update our roadmap and explain that we just plan to support all ordering predicates, not string predicate like or something similar.

xtrycatchx commented 6 years ago

Thank you @jovfer and to the Indy SDK team. I will patiently wait for the updated sdk in the future :)