You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This appears to be intended behavior. On-chain and off-chain privacy groups have different behavior.
For off-chain groups, find returns the visible groups that have exactly the specified members, or the empty list.
For on-chain groups, find returns the visible groups filtered by the specified list of members. Passing the empty list does no filtering, and returns all the groups the node's Orion public key belongs to. Passing a list with keys [A, B] filters this list for groups containing all the specified members.
If groups [A], [A,B], and [B] exist, then
find(A, []) -> [A], [A, B] (no filter)
find(A, [A]) -> [A], [A, B] (groups containing A, equivalent to no filter)
find(A, [B]) -> [A, B] (groups containing B)
find(A, [A, B]) -> [A, B] (groups containing A and B)
find(B, []) -> [B], [A, B] (no filter)
find(B, [A]) -> [A, B] (groups containing A)
find(B, [B]) -> [B], [A, B] (groups containing B, equivalent to no filter)
find(B, [A, B]) -> [A, B] (groups containing A and B)
Instead of returning the privacy groups with the given member, it seems to return all privacy groups including the given member.
Steps to Reproduce (Bug)
[A]
[A, B]
privx_findOnChainPrivacyGroup
with members[A]
from member Aprivx_findOnChainPrivacyGroup
with members[A]
from member BExpected behavior:
3. should return a single privacy group with members
[A]
4. should return an empty list
[]
Actual behavior:
3. returns both the group with members
[A]
and the group with members[A, B]
4. returns the group with members
[A, B]
Versions (Add all that apply)
openjdk version "13.0.2" 2020-01-14
OpenJDK Runtime Environment (build 13.0.2+8)
OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
Additional Information
Test script output
The text was updated successfully, but these errors were encountered: