from 1 sha256 private key i can create WIF private key and public kay pair which is
5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf 1EHNa6Q4Jz2uvNExL497mE43ikXhwF6kZm
That is NOT a public key.
That is a bitcoin address. Specifically, that is an uncompressed key P2PKH bitcoin address.
From that SAME WIF private key, you could also generate a compressed key P2PKH bitcoin address:
1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH
Furthermore, you could create 2
160 different P2SH bitcoin addresses. Here are a few of them:
38fEX6RbBBMmpu3nbbuULku1xyrrzqqqnE
3Q2iKGxFppUJEZUTUMmahjwUoLNRqDY9o3
3CZj1DTSHD4vhr3zALL3pgs6acyw1deYDt
how would i get p2sh address for something like that ?
Build a bitcoin output script. Hash it. Concatenate a byte value of 0x05 in front of the hash value. Encode the result with base64check encoding.
or am i missing again something .
Probably.
does the p2sh address's private key also falls in
int range
1 - 115792089237316195423570985008687907852837564279074904382605163141518161494336
if so then how can i generate a pair ?
P2SH means "pay to script hash". It doesn't necessarily need a key, but is it is safer to build a script that requires a signature (in which case a signature would be required).