Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
enumatech
sprites-python
Repository navigation
Code
Issues
3
(3)
Pull requests
3
(3)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
fea/sprite-eth
Breadcrumbs
sprites-python
/
bin
/
keystore.sh
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
33 lines (26 loc) · 1.08 KB
fea/sprite-eth
Breadcrumbs
sprites-python
/
bin
/
keystore.sh
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
33 lines (26 loc) · 1.08 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!
/usr/bin/env bash
if
[
-z
"
$1
"
]
;
then
KEYSTORE_DIR=
$(
dirname
"
$0
"
)
/../keystore
else
KEYSTORE_DIR=
"
$1
"
fi
MNEMONIC=
"
network gain army age zebra tuna bracket fire fall section direct stay
"
DEPLOYER_PK=e33292da27178504b848586dcee3011a7e21ee6ed96f9df17487fd6518a128c7
ALICE_PK=d8ae722d3a6876fd27907c434968e7373c6fbb985242e545a427531132ef3a71
BOB_PK=28e58f2f6a924d381e243ec1ca4a2239d2b35ebd9a44cec11aead6848a52630b
CHARLIE_PK=8e1733c6774268aee3db54901086b1f642f51e60300674ae3b33f1e1217ec7f5
DEPLOYER=d124b979f746be85706daa1180227e716eafcc5c
ALICE=a49aad37c34e92236690b93e291ae5f10daf7cbe
BOB=b357fc3dbd4cdb7cbd96aa0a0bd905dbe56cab77
CHARLIE=cBE431FF3fdcd4d735df5706e755D0f8726549f0
for
PK
in
DEPLOYER_PK ALICE_PK BOB_PK CHARLIE_PK
;
do
echo
Importing private key:
$PK
>
/dev/stderr
geth --verbosity 2 \
account import \
--keystore
"
$KEYSTORE_DIR
"
\
--password /dev/null \
<(
echo
${
!
PK}
)
\
>
/dev/null
done
#
Print comma separated account list for `geth --unlock ...`
echo
$(
ls
"
$KEYSTORE_DIR
"
|
sort
|
head -n 4
|
awk -F
'
--
'
'
{print$3}
'
)
|
tr
'
'
,
You can’t perform that action at this time.