cryptoconditions icon indicating copy to clipboard operation
cryptoconditions copied to clipboard

GET/UPDATE/DELETE of subcondition

Open diminator opened this issue 9 years ago • 1 comments

We want to update a single subcondition hence try to find the path of the subcondition or better ways to navigate subconditions

example

GET/DEL/UPDATE fulfillment.subcondition_by_path([(type_id=cc.types.THRESHOLD, args=[branch_nb]), (type_id=cc.types.ED25519, args=[public_key]))]

the args list

[(type_id=cc.types.THRESHOLD, args=[branch_nb]), (type_id=cc.types.ED25519, args=[public_key])]

is an ordered selector for each depth in the tree so at depth=0 you will look for a THRESHOLD and select subcondition with branch_nb

diminator avatar Aug 16 '16 08:08 diminator

will move to bdb extension of cc

diminator avatar Oct 12 '16 12:10 diminator