Split ragger ethereum client into multiple smaller files
This commit is contained in:
14
tests/ragger/ethereum_client/response_parser.py
Normal file
14
tests/ragger/ethereum_client/response_parser.py
Normal file
@@ -0,0 +1,14 @@
|
||||
class EthereumRespParser:
|
||||
def sign(self, data: bytes):
|
||||
assert len(data) == (1 + 32 + 32)
|
||||
|
||||
v = data[0:1]
|
||||
data = data[1:]
|
||||
|
||||
r = data[0:32]
|
||||
data = data[32:]
|
||||
|
||||
s = data[0:32]
|
||||
data = data[32:]
|
||||
|
||||
return v, r, s
|
||||
Reference in New Issue
Block a user