cardano-client-lib icon indicating copy to clipboard operation
cardano-client-lib copied to clipboard

Add new helper function to get stake address from account pub key

Open iTanChi opened this issue 1 year ago • 0 comments

From the discussion below, it would be great to have a built-in function to support this usecase

Discussed in https://github.com/bloxbean/cardano-client-lib/discussions/255

Originally posted by iTanChi June 5, 2023 I want to get the stake address from account pub key, which can be generated from Cardano wallet: eternl, ...

  • The account pub key format can be one of: acct_vk, acct_xvk, xpub https://cips.cardano.org/cips/cip5/ The flow to generate I'm understating is:
  • Get stake pub key from account pub key
  • Get stake address from stake pub key

But currently I don't know how to use the lib to get stake pub key from account pub key. The only way I see is CIP1852

iTanChi avatar Jun 06 '23 05:06 iTanChi