compute_deposit_data_root
Compute deposit data root hash for validator deposits
Overview
Signature
def compute_deposit_data_root(
*,
node_pubkey: bytes,
consensus_pubkey: bytes,
withdrawal_credentials: bytes,
node_signature: bytes,
consensus_signature: bytes,
amount_gwei: int,
) -> bytesImport
from seismic_web3 import compute_deposit_data_rootParameters
Parameter
Type
Required
Description
Returns
Type
Description
Examples
Basic Usage
Complete Deposit Flow
Varying Deposit Amounts
Verifying Deposit Data
How It Works
Parameter Requirements
node_pubkey (32 bytes)
consensus_pubkey (48 bytes)
withdrawal_credentials (32 bytes)
node_signature (64 bytes)
consensus_signature (96 bytes)
amount_gwei (integer)
Error Handling
Validation
Parameter
Expected Length
Error if Wrong
Security Considerations
Signature Verification
Amount Consistency
Root Uniqueness
Key Reuse
Common Pitfalls
Wrong Unit Conversion
Mismatched Transaction Value
Wrong Byte Length
When to Use
See Also
Last updated

