Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
198 changes: 111 additions & 87 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions nucypher-core-python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version = "0.15.0"
edition = "2018"

[lib]
name = "_nucypher_core"
crate-type = ["cdylib"]

[dependencies]
Expand All @@ -13,6 +14,8 @@ nucypher-core = { path = "../nucypher-core" }
umbral-pre = { version = "0.11.0", features = ["bindings-python"] }
ferveo = { package = "ferveo-nucypher", version = "0.4.0", features = ["bindings-python"] }
derive_more = { version = "0.99", default-features = false, features = ["from", "as_ref"] }
hex = "0.4"
serde_json = "1.0"

[build-dependencies]
pyo3-build-config = "*"
24 changes: 24 additions & 0 deletions nucypher-core-python/nucypher_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,28 @@
SessionStaticSecret,
SessionSecretFactory,
encrypt_for_dkg,
EIP191SignatureRequest,
SignedEIP191SignatureRequest,
UserOperation,
UserOperationSignatureRequest,
PackedUserOperation,
SignedPackedUserOperation,
PackedUserOperationSignatureRequest,
SignatureResponse,
deserialize_signature_request,
)

# Constants for signature request types
class SignatureRequestType:
"""Constants for signature request types."""
USEROP = 0
PACKED_USER_OP = 1
EIP_191 = 2
EIP_712 = 3


# Constants for AA versions
class AAVersion:
"""Constants for AA (Account Abstraction) versions."""
V08 = "0.8.0"
MDT = "mdt"
Loading
Loading