Returns the key that should be used for PDA derivation. For migrated streams, the aligned proxy PDA was derived from the original (old) metadata key, so we need to use that instead of the current stream pubkey.

  • Parameters

    • streamPubkey: PublicKey
    • oldMetadata: PublicKey

    Returns PublicKey