BLS domain => domain

This commit is contained in:
Justin Drake
2019-07-01 00:36:19 +01:00
parent aeba6ee8fb
commit 1698263621
4 changed files with 8 additions and 8 deletions

View File

@@ -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)
```

View File

@@ -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
```

View File

@@ -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
```

View File

@@ -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
```