package Ġcom . trust wallet . core . app . block chains . nul s Ċ Ċ import Ġcom . trust wallet . core . app . utils . to Hex Ċ import Ġcom . trust wallet . core . app . utils . to Hex ByteArray Ċ import Ġcom . trust wallet . core . app . utils . Numeric Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Test Ċ import Ġwallet . core . jni . N UL S Address Ċ import Ġwallet . core . jni . PrivateKey Ċ import Ġwallet . core . jni . PublicKey Ċ import Ġwallet . core . jni . PublicKey Type Ċ Ċ class ĠTest N UL S Address Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ ĠSystem . load Library (" Trust Wallet Core ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Address () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpri Key Ġ= ĠPrivate Key ( Numeric . hex StringTo ByteArray (" a 1 2 6 9 0 3 9 e 4 ff df 4 3 6 8 7 8 5 2 d 7 2 4 7 a 2 9 5 f 0 b 5 bc 5 5 e 6 dda 0 3 1 cff aa 3 2 9 5 ca 0 a 9 d 7 a ")) ĊĠĠĠĠĠĠĠ Ġval Ġpub key Ġ= Ġpri Key . get PublicKey Sec p 2 5 6 k 1 ( true ) ĊĠĠĠĠĠĠĠ Ġval Ġaddress Ġ= ĠN UL S Address ( pubkey ) ĊĠĠĠĠĠĠĠ Ġval Ġexpected Ġ= ĠN UL S Address (" N UL Sd 6 H gh Wa 4 CN 5 q dx q M wY V ik Qx R Zy j 5 7 Jn 4 L ") ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( address . description (), Ġexpected . description ()) ĊĠĠĠ Ġ} Ċ } Ċ