Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use py-ssz package #104

Merged
merged 1 commit into from
May 29, 2024
Merged
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
93 changes: 46 additions & 47 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sw-utils"
version = "0.6.13"
version = "0.6.14"
description = "StakeWise Python utils"
authors = ["StakeWise Labs <[email protected]>"]
license = "GPL-3.0-or-later"
Expand All @@ -13,8 +13,8 @@ py-ecc = "^6.0.0"
ipfshttpclient = "^0.8.0a2"
web3 = "==6.15.1"
tenacity = "==8.2.3"
pyrsistent = "0.19.3"
pyjwt = "==2.8.0"
ssz = "==0.5.0"

[tool.poetry.group.dev.dependencies]
pylint = "^3.0.1"
Expand Down
4 changes: 1 addition & 3 deletions sw_utils/signing.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# pylint: disable=W0511
# TODO: remove once https://github.com/ethereum/py-ssz/issues/127 fixed
import milagro_bls_binding as bls
from eth_typing import BLSPubkey, BLSSignature, HexAddress
from eth_utils import to_canonical_address
from py_ecc.bls import G2ProofOfPossession
from ssz import Serializable, bytes4, bytes32, bytes48, bytes96, uint64

from .ssz import Serializable, bytes4, bytes32, bytes48, bytes96, uint64
from .typings import Bytes32, ConsensusFork

ETH1_ADDRESS_WITHDRAWAL_PREFIX = bytes.fromhex('01')
Expand Down
25 changes: 0 additions & 25 deletions sw_utils/ssz/__init__.py

This file was deleted.

156 changes: 0 additions & 156 deletions sw_utils/ssz/abc.py

This file was deleted.

1 change: 0 additions & 1 deletion sw_utils/ssz/cache/__init__.py

This file was deleted.

Loading
Loading