type hinting for fork version

Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
This commit is contained in:
Danny Ryan 2019-05-22 16:52:44 -04:00 committed by GitHub
parent 2c79e584c2
commit c13421a9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -633,7 +633,7 @@ The `hash` function is SHA256.
### `bls_domain`
```python
def bls_domain(domain_type: int, fork_version=b'\x00\x00\x00\x00') -> int:
def bls_domain(domain_type: int, fork_version: bytes=b'\x00\x00\x00\x00') -> int:
"""
Return the bls domain given by the ``domain_type`` and optional 4 byte ``fork_version`` (defaults to zero).
"""