mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-22 07:18:10 +00:00
Merge pull request #1285 from decanus/patch-24
Update 0_beacon-chain.md
This commit is contained in:
commit
57c0eee197
@ -49,9 +49,9 @@
|
|||||||
- [`BeaconState`](#beaconstate)
|
- [`BeaconState`](#beaconstate)
|
||||||
- [Helper functions](#helper-functions)
|
- [Helper functions](#helper-functions)
|
||||||
- [Math](#math)
|
- [Math](#math)
|
||||||
- [`int_to_bytes`](#int_to_bytes)
|
|
||||||
- [`integer_squareroot`](#integer_squareroot)
|
- [`integer_squareroot`](#integer_squareroot)
|
||||||
- [`xor`](#xor)
|
- [`xor`](#xor)
|
||||||
|
- [`int_to_bytes`](#int_to_bytes)
|
||||||
- [`bytes_to_int`](#bytes_to_int)
|
- [`bytes_to_int`](#bytes_to_int)
|
||||||
- [Crypto](#crypto)
|
- [Crypto](#crypto)
|
||||||
- [`hash`](#hash)
|
- [`hash`](#hash)
|
||||||
@ -540,8 +540,6 @@ class BeaconState(Container):
|
|||||||
|
|
||||||
### Math
|
### Math
|
||||||
|
|
||||||
#### `int_to_bytes`
|
|
||||||
|
|
||||||
#### `integer_squareroot`
|
#### `integer_squareroot`
|
||||||
|
|
||||||
```python
|
```python
|
||||||
@ -567,6 +565,8 @@ def xor(bytes1: Bytes32, bytes2: Bytes32) -> Bytes32:
|
|||||||
return Bytes32(a ^ b for a, b in zip(bytes1, bytes2))
|
return Bytes32(a ^ b for a, b in zip(bytes1, bytes2))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### `int_to_bytes`
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def int_to_bytes(n: uint64, length: uint64) -> bytes:
|
def int_to_bytes(n: uint64, length: uint64) -> bytes:
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user