Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CeFi事業者にも嬉しいPectraアップグレード

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.
Avatar for yushi yushi
August 27, 2024

 CeFi事業者にも嬉しいPectraアップグレード

Avatar for yushi

yushi

August 27, 2024
Tweet

Other Decks in Programming

Transcript

  1. 3 Pectra upgrades Prague (EL) + Electra (CL) upgrades combined

    Expected 2024 Q4 ~ 2025 Q1 EIPs being considered of inclusion: • EIP-2537: Precompile for BLS12-381 curve operations • EIP-2935: Save historical block hashes in state • EIP-6110: Supply validator deposits on chain • EIP-7002: Execution layer triggerable exits • EIP-7251: Increase the MAX_EFFECTIVE_BALANCE • EIP-7549: Move committee index outside Attestation • EIP-7594: PeerDAS - Peer Data Availability Sampling • EIP-7685: General purpose execution layer requests • EIP-7692: EVM Object Format (EOFv1) Meta • EIP-7702: Set EOA account code
  2. 4 Pectra upgrades Prague (EL) + Electra (CL) upgrades combined

    Expected 2024 Q4 ~ 2025 Q1 EIPs being considered of inclusion: • EIP-2537: Precompile for BLS12-381 curve operations • EIP-2935: Save historical block hashes in state • EIP-6110: Supply validator deposits on chain • EIP-7002: Execution layer triggerable exits • EIP-7251: Increase the MAX_EFFECTIVE_BALANCE • EIP-7549: Move committee index outside Attestation • EIP-7594: PeerDAS - Peer Data Availability Sampling • EIP-7685: General purpose execution layer requests • EIP-7692: EVM Object Format (EOFv1) Meta • EIP-7702: Set EOA account code
  3. 6 EIP-7251 Increase the MAX_EFFECTI VE_BALANCE EIP-7002 Execution layer triggerable

    exits EIP-7702 Set EOA account code Institutional Staking Crypto Deposit
  4. 8 EIP-7002: Execution layer triggerable exits TL;DR • Exiting of

    the validator can be initiated from the execution layer. • The transaction is signed with Withdrawal Credentials Motivation and Benefit • No ways for a validator to unstake if the BLS key is lost, receiving penalties until being ejected automatically (16 ETH is lost). • Real owner of the staked asset can control over the Exit operation.
  5. 9 EIP-7251: Increase the MAX_EFFECTIVE_BALANCE TL;DR • Increase maximum staking

    deposit amount from 32 ETH to 2048 ETH • Partial withdrawals from the deposit • Removal of Initial Slashing Penalty (Still being discussed) Motivation and Benefit • Staking service providers with large customer asset base needed to maintain many nodes. (= Total ETH staked / 32 nodes) • Partial withdrawal to rebalance customer’s ETH liquidity. • Current slashing penalty has two phases ◦ Initial Penalty = 1 ETH constant ◦ Correlation Penalty = variable based on total slashings at around the same time
  6. 11 EIP-7702: Set EOA account code TL;DR • Improved proposal

    of EIP-3074. Future-proof solution even after Account Abstraction. • You can temporarily deploy smart contract to EOA during transaction execution context. Motivation and Benefit • No EVM opcodes are added while achieving the same functionalities enabled by EIP-3074.
  7. 12 …Before EIP-7702: naive approach Customer A Deposit address for

    A Deposit address for B Cold Exchange Frontend Wallet Exchange Backend Wallet Withdrawal Customer B External Gas Station 😢Needs gas to forward deposit
  8. 13 …Before EIP-7702: forward contract approach Customer A Forward Contract

    A Forward Contract B Cold Exchange Frontend Wallet Exchange Backend Wallet Withdrawal Customer B External 😢ETH only 😢Expensive deploy cost 😢Not flexible 😢Contract vulnerability
  9. 14 After EIP-7702 Customer A Deposit address for A Deposit

    address for B Cold Exchange Frontend Wallet Exchange Backend Wallet Caller Customer B External Withdrawal Any Contract ✅Flexible logic (ERC20, NFT and anything!) ✅No gas station