mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-13 12:25:09 -05:00
class Bytes32
This commit is contained in:
@@ -390,6 +390,22 @@ class BytesN(bytes, metaclass=BytesNMeta):
|
||||
return hash_tree_root(self, self.__class__)
|
||||
|
||||
|
||||
class Bytes4(BytesN):
|
||||
length = 4
|
||||
|
||||
|
||||
class Bytes32(BytesN):
|
||||
length = 32
|
||||
|
||||
|
||||
class Bytes48(BytesN):
|
||||
length = 48
|
||||
|
||||
|
||||
class Bytes96(BytesN):
|
||||
length = 96
|
||||
|
||||
|
||||
# SSZ Defaults
|
||||
# -----------------------------
|
||||
def get_zero_value(typ):
|
||||
|
||||
Reference in New Issue
Block a user