# Validator 验证人教程
# 概述
- 创建 Bifrost 地址 查看教程 (opens new window)
- 运行节点,查看教程 (opens new window)
- 设置 Validator
- 生成 Session Key 绑定
- 抵押提名
- 当选 Validator
# 设置 Validator
- 打开 Bifrost Dash (opens new window) 点击 Network / Staking

- 进入 Staking 页面 / Account Action

- 点击 + Validator
- Stash Account (存放 ASG 的地址)
- Controller Account (控制节点的地址)
- 输入自抵押的 ASG 数量

Stash 和 Controller Account 推荐使用两个不同地址,更加安全
- 下一步
- 输入 Session Key(如何生成看下方说明)
- 输入节点佣金费率百分比(目前测试网络 ASG 无价值,随意填写)

- 创建 Validator
# 生成 Session Key
- 开启 9933 端口和 RPC 权限,关闭节点后重新用下方命令启动节点
docker run -it -p 30333:30333 -p 9944:9944 -p 9933:9933 bifrostnetwork/bifrost:asgard-v0.5.0 --name "NodeName" --rpc-cors 'all' --unsafe-ws-external --rpc-methods 'Unsafe' --unsafe-rpc-external --validator
1
- 执行,生成 Session Key
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933
1

- 将生成的 Session Key 复制到页面中进行设置
- SessionKey 生成完毕,关闭 9933、9944 端口和 RPC 权限(开放 RPC 权限有一定安全风险,不建议公开开放)
docker run -it -p 30333:30333 bifrostnetwork/bifrost:asgard-v0.5.0 --name "NodeName" --validator
1