package Ġorg . trust note . super wallet . network . pojo Ċ Ċ import Ġorg . trust note . super wallet . biz . wallet . Wallet Manager Ċ import Ġorg . trust note . super wallet . network . Hub Manager Ċ import Ġorg . trust note . super wallet . network . Hub Model Ċ import Ġorg . trust note . super wallet . network . Hub Msg Factory Ċ import Ġorg . trust note . super wallet . network . Hub Msg Factory . CMD _ UPDATE _ MY _ TEMP _ PUB KEY Ċ Ċ class ĠReq Temp Pub key ( val Ġpub : ĠString , Ġval Ġpriv : ĠString ) Ġ: ĠHub Request ( CMD _ UPDATE _ MY _ TEMP _ PUB KEY , Ġtag Ġ= ĠHub Model . instance . getRandom Tag ()) Ġ{ ĊĊĠĠĠ Ġ// ĠĠĠ Ġ[" request ", {" command ":" hub / temp _ pubkey ", ĊĠĠĠ Ġ// Ġ" params ":{" temp _ pubkey ":" A 8 q 7 mm Q Ep S 1 og vic DR q 5 xp Zv K YZ 9 4 Bh O ux p K Nu 2 d U qo 7 ", ĊĠĠĠ Ġ// Ġ" pubkey ":" A ki 0 PI 8 ou Q au 9 u U AT p GM w JV CF y Z Bw + t Ok cf w 3 4 K io q TS ", ĊĠĠĠ Ġ// Ġ" signature ":" N PU J 6 vy E IB 0 q L 3 8 JP 6 y 7 z 5 TX RW 6 L 6 G / f U Zj ht HK Kt Vg pr 3 v 1 fc IO I 4 k Tc M By u Xd 3 8 T 0 u N bd K sz 6 WD / 4 h / j Km IQ ==" }, ĊĠĠĠ Ġ// Ġ" tag ":" CF 7 R He Nx 5 S 3 8 t Z Aw H De Nw C nk / EX 6 e K 7 R CO pq w 8 u Ev 0 g =" }] ĊĊĠĠĠ Ġ// [" response ", {" tag ":" mg db m Kt QB ft J Fb ht J 1 + 5 DV 6 H lm K + np CZ 3 Du J 8 u 4 LD u A =" ," response ":" updated "}] ĊĠĠĠ Ġoverride Ġfun Ġhandle Response (): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresp Ġ= Ġget Response () ĊĠĠĠĠĠĠĠ Ġif Ġ(" updated " Ġ== Ġresp . response Json . asString ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// TODO : ĠThread Ġsecurity Ġin Ġcase Ġmodel Ġupdate Ġat Ġthis Ġmoment . ĊĠĠĠĠĠĠĠĠĠĠĠ ĠHub Manager . is Already Update My Temp Pub key Ġ= Ġtrue ĊĠĠĠĠĠĠĠĠĠĠĠ ĠWallet Manager . model . update My Temp Priv key ( pub , Ġpriv ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġtrue ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġparams Ġ= ĠHub Msg Factory . sign One String (" temp _ pubkey ", Ġpub ) ĊĠĠĠĠĠĠĠ Ġset Req Params ( params ) ĊĠĠĠ Ġ} Ċ Ċ }