From f1931c030fe4d5cb712b6c075d86b199627c8e21 Mon Sep 17 00:00:00 2001 From: Justin Drake Date: Sun, 30 Jun 2019 20:56:55 +0100 Subject: [PATCH] Fix --- specs/core/0_beacon-chain.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 81b02c9ab..bcd0737c3 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1734,10 +1734,7 @@ def process_transfer(state: BeaconState, transfer: Transfer) -> None: state.balances[transfer.sender] >= transfer.amount + transfer.fee + MAX_EFFECTIVE_BALANCE ) # Verify that the pubkey is valid - assert ( - state.validators[transfer.sender].withdrawal_credentials == - int_to_bytes(BLS_WITHDRAWAL_PREFIX, length=1) + hash(transfer.pubkey)[1:] - ) + assert state.validators[transfer.sender].withdrawal_credentials == BLS_WITHDRAWAL_PREFIX + hash(transfer.pubkey)[1:] # Verify that the signature is valid assert bls_verify(transfer.pubkey, signing_root(transfer), transfer.signature, get_domain(state, DOMAIN_TRANSFER)) # Process the transfer