Puffer 백서

Puffer

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 14쪽 중 9쪽

ainnet Easy Mode ​ There are some great open-source projects that make it easy to run an Ethereum full node and a validator. Here are some of the popular ones: Eth Docker : Docker automation for Ethereum nodes. 🍄 Stereum : Ethereum Node Setup & Manager Dappnode : Operating System for running Ethereum nodes and more. Manual Installation ​ You may want to run the clients separately, in which case you can follow the installation instructions for each client below. Execution Clients ​ Nethermind installation documentation ↗ Geth installation documentation ↗ Besu installation documentation ↗ Erigon installation documentation ↗️ Consensus Clients ​ Nimbus installation documentation ↗ Teku installation documentation ↗ Lodestar installation documentation ↗️ Lighthouse installation documentation ↗ Prysm installation documentation ↗ Setup Coral-CLI ​ The Coral-CLI is used to generate validator keys, prepare registration payloads, and sign voluntary exit messages. Pre-built binary ​ Download the Coral-CLI binary Docker ​ Run using Docker Build from source ​ Dependencies: Rust git clone https://github.com/PufferFinance/coral cd coral cargo build --release Setup Beacon Node and Execution Node Easy Mode Manual Installation Setup Coral-CLI Pre-built binary Docker Build from source ## /yield/nodes/registration On this page The Puffer Dashboard provides an interface for users to: Prepare Coral-CLI command to generate their validator registration payload Mint pufETH and Validator Tickets Register their validator View their validators caution The Puffer Dashboard UI is subject to change as more features are added Registering a Validator The Puffer Dashboard supports launching both testnet and mainnet validators depending on the RPC that your wallet is connected to. Step 1: Setup Wallet ​ Follow the instructions to add the Holesky network to your wallet. If you're using mainnet, the default mainnet wallet config can be used or an RPC can be added here . Step 2: Get Coral-CLI Command ​ Navigate to https://launchpad.puffer.fi/setup-validators to copy the Coral-CLI command. Run the command where you installed the Coral-CLI . Copy the displayed command Edit <PATH_TO_A_KEYSTORE_PASSWORD_FILE> and <PATH_TO_REGISTRATION_JSON> The following example command will create a local validator keystore file in the ./etc/keys/bls_keys directory. The keystore is encrypted using the password contained in password.txt . The command will create a registration payload called registration.json . cargo run --bin coral-cli validator keygen --guardian-threshold 1 --module-name 0x5055464645525f4d4f44554c455f300000000000000000000000000000000000 --withdrawal-credentials 0x0100000000000000000000005ee9246f01e95c08ee767029c1d18765bb1779d0 --guardian-pubkeys 0x049cc1fbaa3cffd3e4c1f935c47720d013938ccb822a9cbd20c5f09ab65ae8300e7986b6ce75e916d3b59599ece72134adf2972d06a76a8ba5f3747d356117c342 --fork-version 0x01017000 --password-file password.txt --output-file registration.json Fetching the registration payload ​ If you ran the Coral-CLI on a remote server you can fetch the registration payload by substituting your information in the following command: scp your-server@XX.XXX.XXX.XX:/path/to/coral/registration.json ~/my/local/computer/registration.json Step 3: Mint pufETH or VTs ​ Users must deposit 2 ETH worth of pufETH to register A minimum of 28 Validator Tickets (VTs) are required to be deposited when registering a validator. The Guardians will exit validators if their VTs expire after 28 days without being refilled. Step 4: Register Validator ​ Drag and drop your registration payload. Sign a Permit message to deposit your VTs to the PufferProtocol contract Sign a Permit message to deposit your pufETH bond to the PufferProtocol contract Sign the final transaction to register your validator Step 5: Await Provisioning ​ The Guardians will provision pending validators when there is 32 ETH of liquidity in the PufferVault. Invalid registrations will be skipped by the Guardians. The NoOp's bond will be returned but 10 VTs will be penalized to prevent griefing. Step 6: Prepare your Validator ​ Import your validator keys to your beacon/validator client. You can find your generated keystore files in the coral/etc/keys/bls_keys/ directory where each keystore file name is your BLS public key. The contents are encrypted using your supplied password file adhering to ERC-2335 . Import your validator keys to Nimbus ↗ Import your validator keys to Teku ↗ Import your validator keys to Lodestar ↗ Import your validator keys to Lighthouse ↗ Import your validator keys to Prysm ↗ tip Make sure to set your fee_recipient value to your own wallet. Remember, Puffer takes no execution reward fees because of Validator Tickets ! Step 7: View your validators ​ Proceed to the Dashboard to view the validators registered to your wallet. Batch Registering Validators ​ For operators interested in running many Puffer validators a convenience script has been provided to register create keys and register multiple validators in one batch. Clone the PufferPool repo: git clone https://github.com/PufferFinance/PufferPool.git cd PufferPool Install Foundry curl -L https://foundry.paradigm.xyz | bash Install Coral-CLI cargo install -f --git https://github.com/PufferFinance/coral.git The batch registration script requires a local Eth keystore file to run. You can create a keystore file by importing an existing private key as follows: cast wallet import -i puffer-test Enter private key: Enter password: `puffer-test` keystore was saved successfully. Address: 0x4D42ABfB6D4bEDaf64dF8BE054676149BDfa224d This command created a keystore file named puffer-test in the ls ~/.foundry/keystores directory. More instructions on working with Foundry keystores can be found in their docs . Fund the wallet with sufficient VTs, pufETH, and ETH to cover gas. These can be purchased as described above . Inside the PufferPool repo, install the batch registration script dependencies: forge install Edit the validator-keystore-password.txt file. This will be the password used to encrypt your validator BLS keystore files. Create the registration-data directory for your output registration JSONs mkdir -p registration-data Simulate the batch registration script: Replace with your RPC URL (either for mainnet or holesky) Set the keystore --account to the name of your keystore located in ~/.foundry/keystores (from step 4) Set --sender to the keystore wallet address with your pufETH, VTs, and gas money (from step 4) Set --password to your keystore password (from step 4) Example Holesky command: forge script script/GenerateBLSKeysAndRegisterValidators.s.sol:GenerateBLSKeysAndRegisterValidators --rpc-url=https://ethereum-holesky.publicnode.com --account puffer-test -vvv --sender=0x4D42ABfB6D4bEDaf64dF8BE054676149BDfa224d --ffi Example Mainnet command: forge script script/GenerateBLSKeysAndRegisterValidators.s.sol:GenerateBLSKeysAndRegisterValidators --rpc-url=https://eth.llamarpc.com --account puffer-test -vvv --sender=0x4D42ABfB6D4bEDaf64dF8BE054676149BDfa224d --ffi Rerun the command with the --slow and --broadcast flags to send the transaction on chain. Note that the command may take several minutes to run. Example Holesky command: forge script script/GenerateBLSKeysAndRegisterValidators.s.sol:GenerateBLSKeysAndRegisterValidators --rpc-url=https://ethereum-holesky.publicnode.com --account puffer-test -vvv --sender=0x4D42ABfB6D4bEDaf64dF8BE054676149BDfa224d --ffi --slow --broadcast Example Mainnet command: forge script script/GenerateBLSKeysAndRegisterValidators.s.sol:GenerateBLSKeysAndRegisterValidators --rpc-url=https://eth.llamarpc.com --account puffer-test -vvv --sender=0x4D42ABfB6D4bEDaf64dF8BE054676149BDfa224d --ffi --slow --broadcast Your validator keys will be generated locally in the folder: PufferPool/etc/keys/bls_keys/ and can be added to your validator client as described here . Batch Registering Validators Using Gnosis SAFE ​ A similar flow exists for operators that use SAFE . The process involves running a convenience script to generate the inputs, then executing a single SAFE transaction to batch register validator keys. Prereq : Make sure the SAFE multisig wallet is funded with sufficient VTs and pufETH. Clone the puffer-contracts repo: git clone https://github.com/PufferFinance/puffer-contracts.git cd puffer-contracts Install Contract Dependencies yarn install Install Foundry curl -L https://foundry.paradigm.xyz | bash Install Coral-CLI cargo install -f --git https://github.com/PufferFinance/coral.git Enter the utility-scripts directory cd utility-scripts Edit the validator-keystore-password.txt file. This will be the password used to encrypt your validator BLS keystore files. Run the script: forge script script/GenerateBLSKeysAndRegisterValidatorsCalldata.s.sol:GenerateBLSKeysAndRegisterValidatorsCalldata --rpc-url=$RPC_URL -vvv --ffi Two things will happen: A new file safe-registration-file.json is created Your validator keys are created in the utility-scripts/etc/keys/bls_keys directory caution Re-running the script will overwrite this safe-registration-file.json caution To avoid hitting the gas limit, limit registrations to batches of 50 validators. Sign the transaction using the SAFE UI Craft a transaction using the SAFE Transaction Builder Upload safe-registration-file.json > Create a batch Send the batch and sign the transaction Upon success, your pending validators will be viewable on the Dashboard . Your validator keys will be generated locally in the folder: utility-scripts/etc/keys/bls_keys/ and can be added to your validator client as described here . Step 1: Setup Wallet Step 2: Get Coral-CLI Command Step 3: Mint pufETH or VTs Step 4: Register Validator Step 5: Await Provisioning Step 6: Prepare your Validator Step 7: View your validators Batch Registering Validators Batch Registering Validators Using Gnosis SAFE ## /yield/nodes/rewards On this page Withdrawing Consensus Layer Rewards ​ Node Operators receive rewards in the same way as any other validator on Ethereum. However, while Execution Layer rewards are earned normally and sent to the fee recipient address configured in the Beacon Node client, Consensus Layer rewards flow through the EigenLayer contracts and normally incur a delay. To make the rewards withdrawal process fast and gas-efficient, Puffer has created a way for withdrawing rewards on Base L2. It requires a minimal amount of gas to withdraw rewards, and it allows validators to receive their rewards as quickly as possible and as often as they need. Node Operator Consensus Layer rewards are automatically bridged to Base L2 using Everclear , which validators can withdraw in the form of pufETH. To withdraw rewards, Node Operators need to sign a transaction on Base by following these steps on the Puffer Dashboard : Click the "Claim" button Switch your wallet's network to Base. This step is necessary as the claiming process occurs on Base, and you'll need to sign a transaction there. Ensure you have sufficient ETH for gas. Click the "Claim" button again Review the transaction details carefully, then sign it using your wallet. Wait for the transaction confirmation. Once confirmed, you'll receive your rewards on Base. After claiming the rewards, Node Operators can either bridge them back to Ethereum L1 or utilize them on Base L2. How Rewards Are Calculated Rewards are distributed weekly, with the exception of the first distribution, which includes all rewards accumulated since Puffer's mainnet launch. For each weekly interval, Puffer's Guardians perform the following steps: Compute individual rewards for each Node Operator (sum of all of their associated validators) Calculate the total rewards for the previous intervals Create and publish a Merkle tree of rewards, storing it on AWS S3 Mint pufETH tokens and transfer them to the Base Layer 2 network Enforce a mandatory waiting period to revert in case of a security vulnerability Once the waiting period ends, Node Operators can claim their rewards through the L2RewardManager contract on Base using the Puffer Dashboard Rewards Epochs and accounting ​ Current Rewards Epoch — this is the epoch up to which rewards have been calculated and posted to Base. Next Rewards Epoch — this is the epoch up to which rewards will be calculated in the upcoming accounting event. We execute accounting automatically once a week on Monday, but this period of time can be changed in the future. note We only mint and send to Base the rewards that have been successfully withdrawn from your validator on the Beacon Chain. How to check if the rewards calculation is correct ​ Take the Current Rewards Epoch from the dashboard. Go to beaconcha.in (or any other similar website) and find all withdrawals that occurred with your validators BEFORE this epoch, STARTING from your last Puffer rewards claim. Sum up these withdrawals. This total represents your expected rewards in ETH, which will need to be converted using the exchange rate at the epoch from Step 1. Changing Your Rewards Recipient Address ​ caution Node Operators who used a smart contract (such as a multisig wallet) to register their validators on Ethereum Mainnet MUST set a specific rewards claimer address on Base. This step is crucial; without it, they may be unable to claim their rewards on Base. The reason for this requirement is that addresses on Ethereum Mainnet do not automatically correspond to the same addresses on Base. Therefore, to ensure you can access your rewards, you need to explicitly specify which address on Base should be authorized to claim them. To change your rewards claimer address on Base, a Node Operator should follow these steps: Navigate to your SAFE account Select New transaction Select Transaction Builder Enter the L1RewardManager contract proxy address: 0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b Select Use Implementation ABI Set the Contract Method Selector to setL2RewardClaimer Set the ETH value amount to a small number, e.g., 0.001 , this is the relayer fee to pay the bridge who will broadcast the transaction to Base. Don't worry excess ETH will be refunded back to the caller. Enter your new rewards claimer address that you control on Base Click Add transaction and then sign the generated SAFE transaction note If the To Address field doesn't auto-populate, it should be set to the L1RewardManager proxy contract address: 0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b . Wait for the transaction to be bridged from Ethereum Mainnet to Base Layer 2. This process typically takes between 5-10 minutes. You can track your transaction on Layerzero scan: https://layerzeroscan.com/ After the transaction is confirmed on Base, the Node Operator can now claim rewards using the specified rewards claimer address on Base. note Externally Owned Accounts (EOAs) do not need to perform this step. For EOAs, rewards will automatically be sent to the same Node Operators address that registered the validators on Ethereum Mainnet. Withdrawing Consensus Layer Rewards Rewards Epochs and accounting How to check if the rewards calculation is correct Changing Your Rewards Recipient Address ## /yield/nodes/purchase-vts On this page This guide will walk you through the process of purchasing Validator Tickets (VT) using the Puffer Dashboard. Prerequisites ​ A wallet with sufficient ETH Access to the Puffer Dashboard Steps ​ Navigate to the Puffer Dashboard Click on the "Buy VT" button Select the currency you want to purchase VT with Select the amount of VT you want to purchase Review the transaction details and click "Confirm" Wait for the transaction to be confirmed on the blockchain Once confirmed, you can verify your VT balance on the Puffer Dashboard Notes ​ The amount of VT you can purchase is limited by your ETH balance The transaction will fail if you don't have enough ETH to cover the gas fees The transaction will fail if you try to purchase more VT than your ETH balance allows Prerequisites Steps Notes ## /yield/protocol/purchase-vt-through-using-safe On this page info This guide will help you purchase Validator Tickets using your Safe multisig wallet. Introduction ​ Validator Tickets (VTs) allow you to participate in the Puffer Protocol as a node operator. This guide will walk you through the process of connecting your Safe multisig wallet to our dashboard and purchasing VTs using either ETH or pufETH. Connecting Your Safe Multisig to Puffer LaunchPad ​ Navigate to the Puffer Launchpad . On the Puffer LaunchPad, You will be prompted to connect your wallet. Select WalletConnect from the list of options. Click on OPEN to get the official WalletConnect modal. Copy the WalletConnect link by clicking on the Copy button. In your Safe interface, click on the WalletConnect icon in the top right in the bar. Paste the WalletConnect link from Puffer LaunchPad into the popup window and confirm the connection. Return to the Puffer LaunchPad. You should now see your Safe wallet connected and ready to purchase VTs. Click on Continue to move to the next step. Purchasing VTs with ETH ​ Navigate to the Top Up section on the LaunchPad. Select Validator Ticket option. Select ETH as the payment currency, enter the amount of VT you want to purchase and Submit Transaction . You'll be redirected to your Safe interface where you can review the transaction details. Verify the amount of ETH being spent and the number of VTs you're purchasing. You can also simulate the transaction. Click on Sign to approve the transaction. Other owners of the Safe will need to sign the transaction as well, according to your Safe's signature requirements. Once executed, you can view the transaction on the Puffer LaunchPad. And your VT will be added to your account. Purchasing VTs with pufETH ​ When using pufETH, you'll need to complete two separate transactions: Navigate to the Validator Ticket purchase section on the LaunchPad. Select Validator Ticket option, select pufETH as the payment currency, enter the amount of VT you want to purchase and Submit Transaction . The first transaction will ask for approval to spend your pufETH: Review the approval amount and address of the spender contract which should be ValidatorTicket contract address : 0x7D26AD6F6BA9D6bA1de0218Ae5e20CD3a273a55A Click "Add to Batch" to add the transaction to the batch. After the approval transaction is added to the batch, a second transaction will appear: This transaction is for the actual VT purchase Verify the number of VTs you're purchasing Click "Add to Batch" to add the transaction to the batch. Wait for other Safe owners to sign Once batch is signed, get it signed by other owners of the Safe and execute the batch. After successful execution, you'll see the transaction on the Puffer LaunchPad. And your VT will be added to your account. Transaction Batching (Optional) ​ With Safe, you have the option to: Execute transactions individually as they are signed Or batch multiple signed transactions together and execute them in a single transaction to save on gas fees In this guide, we've shown how to batch the transactions together. Important Notes ​ Ensure you have sufficient ETH or pufETH balance in your Safe wallet before initiating these transactions. The minimum purchase is 1 VT. You can track all your transactions in the "Activity" section of your Safe. If you encounter any issues, please contact Puffer team. Introduction Connecting Your Safe Multisig to Puffer LaunchPad Purchasing VTs with ETH Purchasing VTs with pufETH Transaction Batching (Optional) Important Notes ## /yield/nodes/ejection-scenarios On this page info This document outline
프로젝트로 돌아가기