Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.

readme example for Tiered Sharing looks buggy #19

Open
simbo1905 opened this issue Jul 2, 2019 · 0 comments
Open

readme example for Tiered Sharing looks buggy #19

simbo1905 opened this issue Jul 2, 2019 · 0 comments

Comments

@simbo1905
Copy link

The example code on the readme declares admin twice and doesn't declare 'users`.

    final Map<Integer, byte[]> admins = adminScheme.split(secret);

    final Map<Integer, Map<Integer, byte[]>> admins =
        users.entrySet()
            .stream()
            .collect(Collectors.toMap(Map.Entry::getKey, e -> userScheme.split(e.getValue())));

then we see users used but not declared.

    System.out.printf("%d = %s\n", 1, Arrays.toString(users.get(3).get(1)));

I have sent a PR to fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant