Makefile: Add subjects for storage and client wallets to FrostfsID #75
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -85,7 +85,12 @@ up/bootstrap: get vendor/hosts
|
|||
&& ./vendor/frostfs-adm -c frostfs-adm.yml morph refill-gas --storage-wallet $${f} --gas 10.0 \
|
||||
|| die "Failed to transfer GAS to alphabet wallets"; \
|
||||
done
|
||||
@echo "FrostFS sidechain environment is deployed"
|
||||
@echo "Create frostfsid subject for ./wallets/wallet.json" \
|
||||
|
||||
&& subj_key=`docker container exec -it morph_chain neo-go wallet dump-keys -w /wallets/wallet.json | tail -1 | tr -d ' \r\n'` \
|
||||
&& echo "Subject key: $${subj_key}" \
|
||||
&& ./vendor/frostfs-adm -c frostfs-adm.yml morph frostfsid create-subject --namespace "" --subject-key $${subj_key} --subject-name walletsubject \
|
||||
|| die "Failed to create subject for the wallet"; \
|
||||
echo "FrostFS sidechain environment is deployed"
|
||||
|
||||
aarifullin marked this conversation as resolved
Outdated
aarifullin
commented
We've got no The alternative way to get parsed script is:
(returns the same result) WDYT? We've got no `neo-go` in `.vendor`. So, it assumes that `neo-go` is installed separately.
Probably, this is not right for `frostfs-dev-env` bootup
The alternative way to get parsed script is:
```
cat wallets/wallet.json | jq -r '.accounts[0].contract.script' | base64 -d | tail -c+3 | xxd -p
```
(returns the same result)
WDYT?
dstepanov-yadro
commented
FrostfID subject is required to create containers. Neo-go or Frostfs-storage should not to create containers. So their wallets are not required to be stored in FrostfsID contract. FrostfID subject is required to create containers. Neo-go or Frostfs-storage should not to create containers. So their wallets are not required to be stored in FrostfsID contract.
aarifullin
commented
Okay, I'll leave it only for client wallet. But the problem is that we need to get a subject key for this wallet Okay, I'll leave it only for client wallet. But the problem is that we need to get a subject key for this wallet
aarifullin
commented
Fixed Fixed
|
||||
# Build up certain service
|
||||
.PHONY: up/%
|
||||
|
|
Loading…
Reference in a new issue
I think storage nodes are ok not being in the frostfsid, we have user wallet for containers.
OK.
But still WDYT about
neo-go
?using neo-go is more robust than
jq + tail c+3
Got
neo-go
away, please, checkWhy, though? "robust" is a good thing.
Then neo-go should be vendored.
neo-go
binary in.env
along withto get it vendored
So, we need to upload it to somewhere. Once, we had a discussion and we didn't agree on uploading to
http.t5.fs.neo.org
(I may mistake)We already have a docker image for neo-go, right?
Can we use it?
That's really a brilliant idea. Fixed that