How to get adress from privateKey

how to generate sui adress from a keyPair. have any rpc or sdk function about this ?