package Ġcom . coin ninja . coin keeper . util . crypto Ċ Ċ import Ġandroid . content . Context Ċ import Ġapp . coin ninja . cn . lib bitcoin . Address Util Ċ import Ġapp . drop bit . annotations . Mock able Ċ import Ġcom . coin ninja . coin keeper . R . array Ċ import Ġcom . coin ninja . coin keeper . di . interfaces . ApplicationContext Ċ import Ġjava . util .* Ċ import Ġjavax . inject . Inject Ċ Ċ @ Mock able Ċ class ĠBitcoin Util Ġ@ Inject Ġconstructor ( ĊĠĠĠĠĠĠĠ Ġ@ ApplicationContext Ġinternal Ġval Ġcontext : ĠContext , ĊĠĠĠĠĠĠĠ Ġinternal Ġval Ġaddress Util : ĠAddress Util Ċ ) Ġ{ ĊĊĠĠĠ Ġfun ĠisValid B IP 3 9 Words ( seed Words : ĠArray < String >): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( seed Words . size Ġ!= Ġ 1 2 ) Ġreturn Ġfalse ĊĠĠĠĠĠĠĠ Ġval Ġwords : ĠList < String > Ġ= ĠArrays . asList (* context . resources . getString Array ( array . recovery _ words )) ĊĠĠĠĠĠĠĠ Ġreturn Ġwords . contains All ( Arrays . asList < String >(* seed Words )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun ĠisValid BTC Address ( address : ĠString ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ( address Util . is Seg wit ( address ) Ġ|| Ġaddress Util . is Base 5 8 ( address )) ĊĠĠĠ Ġ} Ċ }