실행 변경 사항에 대한 BLS

소개

비콘 체인 검증자가 실행 계층(Eth1) 주소(으)로 잔액을 자동으로 인출할 수 있게 하려면 도구를 사용하여 SignedBLSToExecutionChange 메시지 JSON 파일을 생성할 수 있습니다. 이 메시지에는 이전 BLS 출금 자격 증명을 실행 주소 형식의 새 출금 자격 증명으로 변경하도록 안내하는 요청이 포함됩니다.이 메시지를 메인넷에 포함시키려면 이 메시지를 카펠라/상하이 하드 포크 비콘 노드의 풀에 업로드해야 합니다.

설치

옵션 1: 바이너리 파일

스테이킹 입금 CLI 릴리스에서 바이너리 파일을 찾을 수 있습니다.

옵션 2: 소스 코드 + virtualenv

Download master branch:git clone https://github.com/earthwallet/staking-deposit-cli.gitvirtualenv 설치 및 설정:pip3 install virtualenv
virtualenv venv
source venv/bin/activate
설치 종속성:python3 setup.py install
pip3 install -r requirements.txt

bls_to_execution_change-*.json 파일 생성

EIP-2334 형식으로 입금을 생성했으며 BLS 출금 자격 증명이 있다고 가정합니다. 그렇지 않은 경우 문서에 따라 생성할 수 있습니다.

매개변수로 실행

여기에서 전체 인수 문서 확인을(를) 찾을 수 있습니다.

옵션 1: 바이너리 파일

대화형 모드./deposit generate-bls-to-execution-change플래그가 포함된 명령줄./deposit --language=english generate-bls-to-execution-change \
--chain=mainnet \
--mnemonic="<귀하의 니모닉>" \
--bls_withdrawal_credentials_list="<이전 BLS 출금 자격 증명>" \
--validator_start_index=<EIP-2334의 키 시작 인덱스> \
--validator_indices="<검증자 인덱스>" \
--execution_address="<출금 실행 주소>"
[Example]./deposit --language=english generate-bls-to-execution-change \
--chain=mainnet \
--mnemonic="sister protect peanut hill ready work profit fit wish want small inflict flip member tail between sick setup bright duck morning sell paper worry" \
--bls_withdrawal_credentials_list="0x00bd0b5a34de5fb17df08410b5e615dda87caf4fb72d0aac91ce5e52fc6aa8de,0x00a75d83f169fa6923f3dd78386d9608fab710d8f7fcf71ba9985893675d5382" \
--validator_start_index=0 \
--validator_indices="50000, 50001" \
--execution_address="0x3434343434343434343434343434343434343434"

옵션 2: 소스 코드 + virtualenv

대화형 모드python ./staking_deposit/deposit.py generate-bls-to-execution-change플래그가 포함된 명령줄python ./staking_deposit/deposit.py --language=english generate-bls-to-execution-change \
--chain=mainnet \
--mnemonic="<귀하의 니모닉>" \
--bls_withdrawal_credentials_list="<이전 BLS 출금 자격 증명>" \
--validator_start_index=<EIP-2334의 키 시작 인덱스> \
--validator_indices="<검증자 인덱스>" \
--execution_address="<출금 실행 주소>"
[Example]python ./staking_deposit/deposit.py --language=english generate-bls-to-execution-change \
--chain=mainnet \
--mnemonic="sister protect peanut hill ready work profit fit wish want small inflict flip member tail between sick setup bright duck morning sell paper worry" \
--bls_withdrawal_credentials_list="0x00bd0b5a34de5fb17df08410b5e615dda87caf4fb72d0aac91ce5e52fc6aa8de,0x00a75d83f169fa6923f3dd78386d9608fab710d8f7fcf71ba9985893675d5382" \
--validator_start_index=0 \
--validator_indices="50000, 50001" \
--execution_address="0x3434343434343434343434343434343434343434"
데브넷의 경우 다음과 같은 매개변수를 추가할 수 있습니다.--devnet_chain_setting='{ "network_name": "<네트워크 이름>", "genesis_fork_version": "<제네시스 포크 버전>", "genesis_validator_root": "<제네시스 검증자 루트>" }'[예: withdrawal-mainnet-shadowfork-1]--devnet_chain_setting='{ "network_name": "withdrawal-msf-1", "genesis_fork_version": "0x10000043", "genesis_validator_root": "0xe9ec351d158fd3b89b6afd2e6033bcae8d8adc2dd4c560c4bbf852d47ed0410e" }'

예상 결과

**[Warning] you are setting an Eth1 address as your withdrawal address. Please ensure that you have control over this address.**

Verifying your BLSToExecutionChange file: [####################################] N/N

Success!
Your SignedBLSToExecutionChange JSON file can be found at: /.../staking-deposit-cli/bls_to_execution_changes

Press any key.
기본적으로 ./bls_to_execution_changes 폴더에서 bls_to_execution_changes-*.json 파일을 찾을 수 있습니다.

비콘 노드 BLSToExecutionChange 풀에 업로드

curl 명령을 사용하여 명령줄에서 서명된 메시지를 브로드캐스트할 수 있습니다.curl -X POST -H “Content-type: application/json” -d @<@파일명 대상> \
http://<BEACON_NODE_HTTP_API_URL>/eth/v1/beacon/pool/bls_to_execution_changes
Beaconcha.in 브로드캐스팅 도구를 사용하여 웹 사용자 인터페이스를 통해 메시지를 업로드할 수도 있습니다.Beaconcha.in 브로드캐스트 도구