mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 18:24:59 -05:00
BLS domain => domain
This commit is contained in:
@@ -776,7 +776,7 @@ def compute_activation_exit_epoch(epoch: Epoch) -> Epoch:
|
||||
```python
|
||||
def compute_domain(domain_type: uint64, fork_version: bytes=b'\x00' * 4) -> int:
|
||||
"""
|
||||
Return the BLS domain for the ``domain_type`` and ``fork_version``.
|
||||
Return the domain for the ``domain_type`` and ``fork_version``.
|
||||
"""
|
||||
return bytes_to_int(int_to_bytes(domain_type, length=4) + fork_version)
|
||||
```
|
||||
|
||||
@@ -5,9 +5,9 @@ A BLS compressed-hash to G2.
|
||||
## Test case format
|
||||
|
||||
```yaml
|
||||
input:
|
||||
input:
|
||||
message: bytes32,
|
||||
domain: uint64 -- the BLS domain
|
||||
domain: uint64 -- the domain
|
||||
output: List[bytes48] -- length of two
|
||||
```
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# Test format: BLS hash-uncompressed
|
||||
|
||||
A BLS uncompressed-hash to G2.
|
||||
A BLS uncompressed-hash to G2.
|
||||
|
||||
## Test case format
|
||||
|
||||
```yaml
|
||||
input:
|
||||
input:
|
||||
message: bytes32
|
||||
domain: uint64 -- the BLS domain
|
||||
domain: uint64 -- the domain
|
||||
output: List[List[bytes48]] -- 3 lists, each a length of two
|
||||
```
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Test format: BLS sign message
|
||||
|
||||
Message signing with BLS should produce a signature.
|
||||
Message signing with BLS should produce a signature.
|
||||
|
||||
## Test case format
|
||||
|
||||
@@ -8,7 +8,7 @@ Message signing with BLS should produce a signature.
|
||||
input:
|
||||
privkey: bytes32 -- the private key used for signing
|
||||
message: bytes32 -- input message to sign (a hash)
|
||||
domain: uint64 -- the BLS domain
|
||||
domain: uint64 -- the domain
|
||||
output: bytes96 -- expected signature
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user