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

readme example for Tiered Sharing looks buggy #19

Description

@simbo1905

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions