Skip to content
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sw-utils"
version = "v0.13.2"
version = "v0.13.3"
description = "StakeWise Python utils"
authors = ["StakeWise Labs <info@stakewise.io>"]
license = "GPL-3.0-or-later"
Expand Down
4 changes: 4 additions & 0 deletions sw_utils/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def private_key(self) -> int:
private_key = G2ProofOfPossession.KeyGen(seed)
return private_key

def private_key_hex(self) -> HexStr:
# 32-byte private key as 0x-prefixed hex string
return Web3.to_hex(random.randbytes(32))

def eth_address(self) -> ChecksumAddress:
account = w3.eth.account.create()
return account.address
Expand Down
Loading