about summary refs log tree commit diff stats
path: root/ntcoin_openbsd_tildeinstitute
diff options
context:
space:
mode:
authorlogin <login@tilde.team>2021-11-20 11:24:07 +0000
committerlogin <login@tilde.team>2021-11-20 11:24:07 +0000
commit337ce90729d3a8d99af5abb02143ab9c67ff74bb (patch)
tree3cd99f7ca3d81050bb680266f04248f7c2a0836a /ntcoin_openbsd_tildeinstitute
parentb9dbe4b703bfbac90b316577220850b6bb7d3400 (diff)
downloadtcoin-337ce90729d3a8d99af5abb02143ab9c67ff74bb.tar.gz
New pcoin function to change pcoin keys
This will allow pcoin accounts to be transferred from one person to another
Diffstat (limited to 'ntcoin_openbsd_tildeinstitute')
-rwxr-xr-xntcoin_openbsd_tildeinstitute2
1 files changed, 2 insertions, 0 deletions
diff --git a/ntcoin_openbsd_tildeinstitute b/ntcoin_openbsd_tildeinstitute
index b0f51cb..24dd89b 100755
--- a/ntcoin_openbsd_tildeinstitute
+++ b/ntcoin_openbsd_tildeinstitute
@@ -18,6 +18,7 @@ then
 #define TCOIN_PROG_ACT_PATH "'`/usr/local/bin/grealpath -s $1`'/tcoin/program_accounting/"
 #define PROG_ACT_W_SLASH "program_accounting/"
 #define LS_PATH "/bin/ls"
+#define PCOIN_NEW_KEY_CMD "/bin/cat /dev/urandom | /usr/local/bin/gbase64 | /usr/local/bin/ghead -c 64 | /usr/bin/tr '+' '-' | /usr/bin/tr '/' '_'"
 #define PIPED_WORD_COUNT_CMD " | /usr/bin/wc -c"
 #define PCOIN_KEY_PATH "'`/usr/local/bin/grealpath -s $1`'/tcoin/secrets/pcoin_keys"
 #define PCOIN_KEY_PATH_W_SLASH "'`/usr/local/bin/grealpath -s $1`'/tcoin/secrets/pcoin_keys/"
@@ -201,6 +202,7 @@ else
 #define TCOIN_PROG_ACT_PATH "'`/usr/local/bin/grealpath -s $1`'/tcoin/program_accounting/"
 #define PROG_ACT_W_SLASH "program_accounting/"
 #define LS_PATH "/bin/ls"
+#define PCOIN_NEW_KEY_CMD "/bin/cat /dev/urandom | /usr/local/bin/gbase64 | /usr/local/bin/ghead -c 64 | /usr/bin/tr '+' '-' | /usr/bin/tr '/' '_'"
 #define PIPED_WORD_COUNT_CMD " | /usr/bin/wc -c"
 #define PCOIN_KEY_PATH "'`/usr/local/bin/grealpath -s $1`'/tcoin/secrets/pcoin_keys"
 #define PCOIN_KEY_PATH_W_SLASH "'`/usr/local/bin/grealpath -s $1`'/tcoin/secrets/pcoin_keys/"
>176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253