Skip to content

Commit 16b5c88

Browse files
committed
renaming keyos => infra-keystore
1 parent 828fa5e commit 16b5c88

29 files changed

+91
-91
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ programs/infra-cli/config.hpp
5555
programs/eosio-applesedemo/eosio-applesedemo
5656
programs/eosio-launcher/config.hpp
5757
programs/eosio-launcher/eosio-launcher
58-
programs/keosd/keosd
58+
programs/infra-keystore/infra-keystore
5959
programs/nodeos/config.hpp
6060
programs/nodeos/nodeos
6161

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ endif()
4747

4848
set( CLI_CLIENT_EXECUTABLE_NAME infra-cli )
4949
set( NODE_EXECUTABLE_NAME yosemite )
50-
set( KEY_STORE_EXECUTABLE_NAME keyos )
50+
set( KEY_STORE_EXECUTABLE_NAME infra-keystore )
5151
set( LAUNCHER_EXECUTABLE_NAME yoslauncher )
5252
set( ABI_GENERATOR_EXECUTABLE_NAME yosabigen )
5353
set( BLOCKLOG_EXECUTABLE_NAME yosblocklog )

Docker/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,30 +58,30 @@ docker run --name yosemite -v /path-to-data-dir:/opt/yosemite/bin/data-dir -p 88
5858
curl http://127.0.0.1:8888/v1/chain/get_info
5959
```
6060

61-
## Start both yosemite and keyos containers
61+
## Start both yosemite and infra-keystore containers
6262

6363
```bash
6464
docker volume create --name=yosemite-data-volume
65-
docker volume create --name=keyos-data-volume
65+
docker volume create --name=infra-keystore-data-volume
6666
docker-compose up -d
6767
```
6868

69-
After `docker-compose up -d`, two services named `yosemited` and `keyos` will be started. The yosemited service would expose ports 8888 and 9876 to the host. The keyos service does not expose any port to the host, it is only accessible to infra-cli when running infra-cli is running inside the keyos container as described in "Execute infra-cli commands" section.
69+
After `docker-compose up -d`, two services named `yosemited` and `infra-keystore` will be started. The yosemited service would expose ports 8888 and 9876 to the host. The infra-keystore service does not expose any port to the host, it is only accessible to infra-cli when running infra-cli is running inside the infra-keystore container as described in "Execute infra-cli commands" section.
7070

7171
### Execute infra-cli commands
7272

7373
You can run the `infra-cli` commands via a bash alias.
7474

7575
```bash
76-
alias infra-cli='docker-compose exec keyos /opt/yosemite/bin/infra-cli -u http://yosemited:8888 --wallet-url http://localhost:8900'
76+
alias infra-cli='docker-compose exec infra-keystore /opt/yosemite/bin/infra-cli -u http://yosemited:8888 --wallet-url http://localhost:8900'
7777
infra-cli get info
7878
infra-cli get account inita
7979
```
8080

81-
If you don't need keyos afterwards, you can stop the keyos service using
81+
If you don't need infra-keystore afterwards, you can stop the infra-keystore service using
8282

8383
```bash
84-
docker-compose stop keyos
84+
docker-compose stop infra-keystore
8585
```
8686

8787
### Change default configuration
@@ -111,7 +111,7 @@ The data volume created by docker-compose can be deleted as follows:
111111

112112
```bash
113113
docker volume rm yosemite-data-volume
114-
docker volume rm keyos-data-volume
114+
docker volume rm infra-keystore-data-volume
115115
```
116116

117117
### Docker Hub
@@ -135,18 +135,18 @@ services:
135135
volumes:
136136
- yosemite-data-volume:/opt/yosemite/bin/data-dir
137137

138-
keyos:
138+
infra-keystore:
139139
image: yosemitex/yosemite:latest
140-
command: /opt/yosemite/bin/keyos --wallet-dir /opt/yosemite/bin/data-dir --http-server-address=127.0.0.1:8900 --http-alias=localhost:8900 --http-alias=keyos:8900
141-
hostname: keyos
140+
command: /opt/yosemite/bin/infra-keystore --wallet-dir /opt/yosemite/bin/data-dir --http-server-address=127.0.0.1:8900 --http-alias=localhost:8900 --http-alias=infrakeystore:8900
141+
hostname: infrakeystore
142142
links:
143143
- yosemited
144144
volumes:
145-
- keyos-data-volume:/opt/yosemite/bin/data-dir
145+
- infra-keystore-data-volume:/opt/yosemite/bin/data-dir
146146

147147
volumes:
148148
yosemite-data-volume:
149-
keyos-data-volume:
149+
infra-keystore-data-volume:
150150

151151
```
152152

@@ -165,7 +165,7 @@ Note: if you want to use the mongo db plugin, you have to enable it in your `dat
165165
```
166166
# create volume
167167
docker volume create --name=yosemite-data-volume
168-
docker volume create --name=keyos-data-volume
168+
docker volume create --name=infra-keystore-data-volume
169169
# pull images and start containers
170170
docker-compose -f docker-compose-yosemite-latest.yaml up -d
171171
# get chain info

Docker/config.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ producer-name = yosemite
135135
#
136136
# <provider-spec> is a string in the form <provider-type>:<data>
137137
#
138-
# <provider-type> is KEY, or KEYOS
138+
# <provider-type> is KEY, or KEYSTORE
139139
#
140140
# KEY:<data> is a string form of a valid YOSEMITE private key which maps to the provided public key
141141
#
142-
# KEYOS:<data> is the URL where keosd is available and the approptiate wallet(s) are unlocked (eosio::producer_plugin)
142+
# KEYSTORE:<data> is the URL where infra-keystore is available and the appropriate wallet(s) are unlocked (eosio::producer_plugin)
143143
signature-provider = YOS7qFXz5bvLYphF8S8XXTYgExnN2hXRBSMHTXs8oartApBx5upR3=KEY:YPV_5J7MF5bWVzjLczmVFMwiRjD5TVBG1o8UELy4jkaikXETbaMHZSb
144144

145-
# Limits the maximum time (in milliseconds) that is allowd for sending blocks to a keosd provider for signing (eosio::producer_plugin)
146-
keyos-provider-timeout = 5
145+
# Limits the maximum time (in milliseconds) that is allowd for sending blocks to a keystore provider for signing (eosio::producer_plugin)
146+
keystore-provider-timeout = 5
147147

148148
# Lag in number of blocks from the head block when selecting the reference block for transactions (-1 means Last Irreversible Block) (eosio::txn_test_gen_plugin)
149149
txn-reference-block-lag = 0

Docker/docker-compose-latest.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ services:
1616
- IPC_LOCK
1717
stop_grace_period: 10m
1818

19-
keyos:
19+
infra-keystore:
2020
image: yosemitex/yosemite:latest
21-
command: /opt/yosemite/bin/keyos --wallet-dir /opt/yosemite/bin/data-dir --http-server-address=127.0.0.1:8900 --http-alias=keyos:8900 --http-alias=localhost:8900
22-
hostname: keyos
21+
command: /opt/yosemite/bin/infra-keystore --wallet-dir /opt/yosemite/bin/data-dir --http-server-address=127.0.0.1:8900 --http-alias=infrakeystore:8900 --http-alias=localhost:8900
22+
hostname: infrakeystore
2323
links:
2424
- yosemited
2525
volumes:
26-
- keyos-data-volume:/opt/yosemite/bin/data-dir
26+
- infra-keystore-data-volume:/opt/yosemite/bin/data-dir
2727
stop_grace_period: 10m
2828

2929
volumes:
3030
yosemite-data-volume:
3131
external: true
32-
keyos-data-volume:
32+
infra-keystore-data-volume:
3333
external: true

Docker/docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ services:
2323
- IPC_LOCK
2424
stop_grace_period: 10m
2525

26-
keyos:
26+
infra-keystore:
2727
image: yosemitex/yosemite
28-
command: /opt/yosemite/bin/keyos --wallet-dir /opt/yosemite/bin/data-dir --http-server-address=127.0.0.1:8900 --http-alias=keyos:8900 --http-alias=localhost:8900
29-
hostname: keyos
28+
command: /opt/yosemite/bin/infra-keystore --wallet-dir /opt/yosemite/bin/data-dir --http-server-address=127.0.0.1:8900 --http-alias=infrakeystore:8900 --http-alias=localhost:8900
29+
hostname: infrakeystore
3030
links:
3131
- yosemited
3232
volumes:
33-
- keyos-data-volume:/opt/yosemite/bin/data-dir
33+
- infra-keystore-data-volume:/opt/yosemite/bin/data-dir
3434
stop_grace_period: 10m
3535

3636
volumes:
3737
yosemite-data-volume:
3838
external: true
39-
keyos-data-volume:
39+
infra-keystore-data-volume:
4040
external: true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ But the names of programs and scripts are changed.
104104
```
105105
nodeos -> yosemite
106106
cleos -> infra-cli
107-
keosd -> keyos (key + 'yos'emite)
107+
keosd -> infra-keystore (key + 'yos'emite)
108108
```
109109
### Client Tool
110110
infra-cli : https://developers.eos.io/eosio-nodeos/docs/cleos-overview
111111

112112
### Key Store Daemon
113-
keyos : https://developers.eos.io/eosio-nodeos/docs/keosd-overview
113+
infra-keystore : https://developers.eos.io/eosio-nodeos/docs/keosd-overview
114114

115115
## Build and Install
116116
To build YOSEMITE, use `yosemite_build.sh`. To install and unsintall, use `yosemite_install.sh` and `yosemite_uninstall.sh`.

plugins/producer_plugin/producer_plugin.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,11 @@ void producer_plugin::set_program_options(
534534
"Where:\n"
535535
" <public-key> \tis a string form of a vaild YOSEMITE public key\n\n"
536536
" <provider-spec> \tis a string in the form <provider-type>:<data>\n\n"
537-
" <provider-type> \tis KEY, or KEYOS\n\n"
537+
" <provider-type> \tis KEY, or KEYSTORE\n\n"
538538
" KEY:<data> \tis a string form of a valid YOSEMITE private key which maps to the provided public key\n\n"
539-
" KEYOS:<data> \tis the URL where keyos is available and the approptiate wallet(s) are unlocked")
540-
("keyos-provider-timeout", boost::program_options::value<int32_t>()->default_value(5),
541-
"Limits the maximum time (in milliseconds) that is allowd for sending blocks to a keyos provider for signing")
539+
" KEYSTORE:<data> \tis the URL where infra-keystore is available and the appropriate wallet(s) are unlocked")
540+
("keystore-provider-timeout", boost::program_options::value<int32_t>()->default_value(5),
541+
"Limits the maximum time (in milliseconds) that is allowd for sending blocks to a infra-keystore provider for signing")
542542
("greylist-account", boost::program_options::value<vector<string>>()->composing()->multitoken(),
543543
"account that can not access to extended CPU/NET virtual resources")
544544
("produce-time-offset-us", boost::program_options::value<int32_t>()->default_value(0),
@@ -661,7 +661,7 @@ void producer_plugin::plugin_initialize(const boost::program_options::variables_
661661

662662
if (spec_type_str == "KEY") {
663663
my->_signature_providers[pubkey] = make_key_signature_provider(private_key_type(spec_data));
664-
} else if (spec_type_str == "KEYOS") {
664+
} else if (spec_type_str == "KEYSTORE") {
665665
my->_signature_providers[pubkey] = make_keosd_signature_provider(my, spec_data, pubkey);
666666
}
667667

@@ -671,7 +671,7 @@ void producer_plugin::plugin_initialize(const boost::program_options::variables_
671671
}
672672
}
673673

674-
my->_keosd_provider_timeout_us = fc::milliseconds(options.at("keyos-provider-timeout").as<int32_t>());
674+
my->_keosd_provider_timeout_us = fc::milliseconds(options.at("keystore-provider-timeout").as<int32_t>());
675675

676676
my->_produce_time_offset_us = options.at("produce-time-offset-us").as<int32_t>();
677677

plugins/wallet_plugin/wallet_manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ void wallet_manager::own_and_use_wallet(const string& name, std::unique_ptr<wall
276276
}
277277

278278
void wallet_manager::initialize_lock() {
279-
//This is technically somewhat racy in here -- if multiple keyos are in this function at once.
279+
//This is technically somewhat racy in here -- if multiple infra-keystore are in this function at once.
280280
//I've considered that an acceptable tradeoff to maintain cross-platform boost constructs here
281281
lock_path = dir / "wallet.lock";
282282
{
@@ -286,7 +286,7 @@ void wallet_manager::initialize_lock() {
286286
wallet_dir_lock = std::make_unique<boost::interprocess::file_lock>(lock_path.string().c_str());
287287
if(!wallet_dir_lock->try_lock()) {
288288
wallet_dir_lock.reset();
289-
EOS_THROW(wallet_exception, "Failed to lock access to wallet directory; is another keyos running?");
289+
EOS_THROW(wallet_exception, "Failed to lock access to wallet directory; is another infra-keystore running?");
290290
}
291291
}
292292

plugins/wallet_plugin/yubihsm_wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ struct yubihsm_wallet_impl {
249249
FC_THROW_EXCEPTION(chain::wallet_exception, "Cannot create caps mask");
250250

251251
try {
252-
if((rc = api.util_generate_key_ec(session, &new_key_id, "keyos created key", authkey_domains, &creation_caps, YH_ALGO_EC_P256)))
252+
if((rc = api.util_generate_key_ec(session, &new_key_id, "infra-keystore created key", authkey_domains, &creation_caps, YH_ALGO_EC_P256)))
253253
FC_THROW_EXCEPTION(chain::wallet_exception, "yh_util_generate_key_ec failed: ${m}", ("m", api.strerror(rc)));
254254
return populate_key_map_with_keyid(new_key_id)->first;
255255
}

0 commit comments

Comments
 (0)