libsodium
This commit is contained in:
parent
da9ab4538f
commit
4c5bf4c018
|
@ -24,16 +24,17 @@ __) _|_ |_ |\ /--\ \_|
|
|||
'
|
||||
mkdir -p ~/.zen
|
||||
sudo apt update || true
|
||||
sudo apt install build-essential -y
|
||||
libs=$(sudo apt-cache search libsodium | awk '{print $1}' | grep libsodium2)
|
||||
sudo apt install build-essential $libs -y
|
||||
sudo pip3 install base58
|
||||
sudo apt install python3-pip python3-setuptools python3-wheel -y
|
||||
pip3 install silkaj --user
|
||||
echo 'PATH=$PATH:.local/bin' >> ~/.bashrc && source ~/.bashrc
|
||||
echo 'PATH=$PATH:~/.local/bin' >> ~/.bashrc && source ~/.bashrc
|
||||
fi
|
||||
|
||||
|
||||
if [[ -d ~/.ssb ]]; then
|
||||
echo "ScuttleButt is already installed..."
|
||||
echo "ScuttleButt is already installed...??"
|
||||
echo "Do you want to create a new ~/.ssb identity ? (y)/n"
|
||||
read isitok
|
||||
if [[ "$isitok" == "y" ]]; then
|
||||
|
@ -96,7 +97,7 @@ fi
|
|||
|
||||
# CREATE ~/.ssb/secret.dunikey
|
||||
python3 $MY_PATH/key_create_dunikey.py "$salt" "$pepper"
|
||||
mv /tmp/secret.dunikey ~/.ssb/secret.dunikey
|
||||
[[ -f /tmp/secret.dunikey ]] && mv /tmp/secret.dunikey ~/.ssb/secret.dunikey || exit 1
|
||||
|
||||
# CREATE SSB secret
|
||||
g1pub=$(cat ~/.ssb/secret.dunikey | grep "pub" | cut -d ' ' -f 2)
|
||||
|
|
Loading…
Reference in New Issue