user82411: I want to parse a script with c++ to gain an output address from it.
can anybody introduce a suitable library or a sample code which extract addresses from scripts ?

user3697: Have a look at libbtc (https://github.com/libbtc/libbtc). 
There is a function btc_script_classify() which will return what script type it is (P2PK, P2PKH, P2SH, P2WPKH, P2WSH) and it will return data elements (usually the RIPEMD160 of the pubkey).

82411: <p>I want to parse a script with <code>c++</code> to gain an output address from it.
can anybody introduce a suitable library or a sample code which extract addresses from scripts ?</p>
 3697: <p>Have a look at libbtc (<a href="https://github.com/libbtc/libbtc" rel="nofollow noreferrer">https://github.com/libbtc/libbtc</a>). </p>

<p>There is a function <code>btc_script_classify()</code> which will return what script type it is (P2PK, P2PKH, P2SH, P2WPKH, P2WSH) and it will return data elements (usually the RIPEMD160 of the pubkey).</p>
