I am looking to get the bech32 stake address from a bech32 shelley address. I think I have to decode the shelley address, take the stake address part and encode it again.
I looked here: https://github.com/cardano-foundation/CIPs/blob/master/CIP-0019/CIP-0019.md#shelley-addresses
But I did not find enough details to do this. Can anyone give me more exact information?
I am using the javascript bech32 library: https://www.npmjs.com/package/bech32