Seal

Seal(self, mapping, seed)

The secret that maps blinded labels back to true tool names.

Attributes

Name Type Description
mapping dict[str, str] Blinded label to true tool name, one entry per tool.
seed int The seed that produced the row permutation, recorded so the blinding can be reproduced.

Methods

Name Description
from_dict Build a seal from the dictionary produced by to_dict.
to_dict Return a JSON-serializable view of the seal.
translate Return the true tool names for a sequence of blinded labels.
true_name Return the true tool name for one blinded label.

from_dict

Seal.from_dict(data)

Build a seal from the dictionary produced by to_dict.

to_dict

Seal.to_dict()

Return a JSON-serializable view of the seal.

translate

Seal.translate(labels)

Return the true tool names for a sequence of blinded labels.

true_name

Seal.true_name(blinded_label)

Return the true tool name for one blinded label.