nucypher.characters.control.specifications

Subpackages

Submodules

class PolicyBaseSchema(*, only: Union[Sequence[str], Set[str], None] = None, exclude: Union[Sequence[str], Set[str]] = , many: bool = False, context: Optional[Dict] = None, load_only: Union[Sequence[str], Set[str]] = , dump_only: Union[Sequence[str], Set[str]] = , partial: Union[bool, Sequence[str], Set[str]] = False, unknown: Optional[str] = None)

Bases: nucypher.control.specifications.base.BaseSchema

check_valid_n_and_m(data, **kwargs)
check_rate_or_value_not_both(data, **kwargs)
opts = <marshmallow.schema.SchemaOpts object>
class CreatePolicy(*, only: Union[Sequence[str], Set[str], None] = None, exclude: Union[Sequence[str], Set[str]] = , many: bool = False, context: Optional[Dict] = None, load_only: Union[Sequence[str], Set[str]] = , dump_only: Union[Sequence[str], Set[str]] = , partial: Union[bool, Sequence[str], Set[str]] = False, unknown: Optional[str] = None)

Bases: nucypher.characters.control.specifications.alice.PolicyBaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class GrantPolicy(*, only: Union[Sequence[str], Set[str], None] = None, exclude: Union[Sequence[str], Set[str]] = , many: bool = False, context: Optional[Dict] = None, load_only: Union[Sequence[str], Set[str]] = , dump_only: Union[Sequence[str], Set[str]] = , partial: Union[bool, Sequence[str], Set[str]] = False, unknown: Optional[str] = None)

Bases: nucypher.characters.control.specifications.alice.PolicyBaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class DerivePolicyEncryptionKey(*, only: Union[Sequence[str], Set[str], None] = None, exclude: Union[Sequence[str], Set[str]] = , many: bool = False, context: Optional[Dict] = None, load_only: Union[Sequence[str], Set[str]] = , dump_only: Union[Sequence[str], Set[str]] = , partial: Union[bool, Sequence[str], Set[str]] = False, unknown: Optional[str] = None)

Bases: nucypher.control.specifications.base.BaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class Revoke(*, only: Union[Sequence[str], Set[str], None] = None, exclude: Union[Sequence[str], Set[str]] = , many: bool = False, context: Optional[Dict] = None, load_only: Union[Sequence[str], Set[str]] = , dump_only: Union[Sequence[str], Set[str]] = , partial: Union[bool, Sequence[str], Set[str]] = False, unknown: Optional[str] = None)

Bases: nucypher.control.specifications.base.BaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class Decrypt(*, only: Union[Sequence[str], Set[str], None] = None, exclude: Union[Sequence[str], Set[str]] = , many: bool = False, context: Optional[Dict] = None, load_only: Union[Sequence[str], Set[str]] = , dump_only: Union[Sequence[str], Set[str]] = , partial: Union[bool, Sequence[str], Set[str]] = False, unknown: Optional[str] = None)

Bases: nucypher.control.specifications.base.BaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class PublicKeys(*, only: Union[Sequence[str], Set[str], None] = None, exclude: Union[Sequence[str], Set[str]] = , many: bool = False, context: Optional[Dict] = None, load_only: Union[Sequence[str], Set[str]] = , dump_only: Union[Sequence[str], Set[str]] = , partial: Union[bool, Sequence[str], Set[str]] = False, unknown: Optional[str] = None)

Bases: nucypher.control.specifications.base.BaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class RetrieveAndDecrypt(*, only: Union[Sequence[str], Set[str], None] = None, exclude: Union[Sequence[str], Set[str]] = , many: bool = False, context: Optional[Dict] = None, load_only: Union[Sequence[str], Set[str]] = , dump_only: Union[Sequence[str], Set[str]] = , partial: Union[bool, Sequence[str], Set[str]] = False, unknown: Optional[str] = None)

Bases: nucypher.control.specifications.base.BaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class PublicKeys(*, only: Union[Sequence[str], Set[str], None] = None, exclude: Union[Sequence[str], Set[str]] = , many: bool = False, context: Optional[Dict] = None, load_only: Union[Sequence[str], Set[str]] = , dump_only: Union[Sequence[str], Set[str]] = , partial: Union[bool, Sequence[str], Set[str]] = False, unknown: Optional[str] = None)

Bases: nucypher.control.specifications.base.BaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class EncryptMessage(*, only: Union[Sequence[str], Set[str], None] = None, exclude: Union[Sequence[str], Set[str]] = , many: bool = False, context: Optional[Dict] = None, load_only: Union[Sequence[str], Set[str]] = , dump_only: Union[Sequence[str], Set[str]] = , partial: Union[bool, Sequence[str], Set[str]] = False, unknown: Optional[str] = None)

Bases: nucypher.control.specifications.base.BaseSchema

format_method_arguments(data, **kwargs)

input can be through either the file input or a raw message, we output one of them as the “plaintext” arg to enrico.encrypt_message

opts = <marshmallow.schema.SchemaOpts object>