nucypher.characters.control.specifications

Subpackages

Submodules

class PolicyBaseSchema(*, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = , many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = , dump_only: types.StrSequenceOrSet = , partial: bool | types.StrSequenceOrSet = False, unknown: str | None = 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: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = , many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = , dump_only: types.StrSequenceOrSet = , partial: bool | types.StrSequenceOrSet = False, unknown: str | None = None)

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

opts = <marshmallow.schema.SchemaOpts object>
class GrantPolicy(*, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = , many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = , dump_only: types.StrSequenceOrSet = , partial: bool | types.StrSequenceOrSet = False, unknown: str | None = None)

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

opts = <marshmallow.schema.SchemaOpts object>
class DerivePolicyEncryptionKey(*, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = , many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = , dump_only: types.StrSequenceOrSet = , partial: bool | types.StrSequenceOrSet = False, unknown: str | None = None)

Bases: nucypher.control.specifications.base.BaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class Revoke(*, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = , many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = , dump_only: types.StrSequenceOrSet = , partial: bool | types.StrSequenceOrSet = False, unknown: str | None = None)

Bases: nucypher.control.specifications.base.BaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class Decrypt(*, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = , many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = , dump_only: types.StrSequenceOrSet = , partial: bool | types.StrSequenceOrSet = False, unknown: str | None = None)

Bases: nucypher.control.specifications.base.BaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class PublicKeys(*, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = , many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = , dump_only: types.StrSequenceOrSet = , partial: bool | types.StrSequenceOrSet = False, unknown: str | None = None)

Bases: nucypher.control.specifications.base.BaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class RetrieveAndDecrypt(*, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = , many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = , dump_only: types.StrSequenceOrSet = , partial: bool | types.StrSequenceOrSet = False, unknown: str | None = None)

Bases: nucypher.control.specifications.base.BaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class PublicKeys(*, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = , many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = , dump_only: types.StrSequenceOrSet = , partial: bool | types.StrSequenceOrSet = False, unknown: str | None = None)

Bases: nucypher.control.specifications.base.BaseSchema

opts = <marshmallow.schema.SchemaOpts object>
class EncryptMessage(*, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = , many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = , dump_only: types.StrSequenceOrSet = , partial: bool | types.StrSequenceOrSet = False, unknown: str | None = 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>