Thanks to visit codestin.com
Credit goes to github.com

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

@simbo1905

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.

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