批量生成Substrate密钥对儿的脚本

简介

  • 需要在本地编译安装,Subkey 工具,安装方法参考:https://docs.substrate.io/v3/tools/subkey/

脚本

  • 脚本正文:
#!/bin/bash

SECRET='你的助记词seed'

for i in 1 2 3 4 5 6; do for j in stash controller; do subkey inspect --scheme sr25519 "$SECRET//$i//$j"; done; done
for i in 1 2 3 4 5 6; do for j in babe; do subkey inspect --scheme sr25519 "$SECRET//$i//$j"; done; done
for i in 1 2 3 4 5 6; do for j in grandpa; do subkey inspect --scheme ed25519 "$SECRET//$i//$j"; done; done
for i in 1 2 3 4 5 6; do for j in im_online; do subkey inspect --scheme sr25519 "$SECRET//$i//$j"; done; done
  • 保存成 .sh 脚本即可,比如 account-gen.private.sh
  • 执行即可 sh account-gen.private.sh

结束

  • 感谢阅读。

你可能感兴趣的:(批量生成Substrate密钥对儿的脚本)