Skip to content
CCPEDIAby Unity Nodes
App Development

Change display Name of a Party?

5 posts176 views2 likesLast activity Jul 2022

  1. StephenOTTOP

    Is it possible to change the display name of a party?

  2. cocreature 1

    No, the display name is immutable. That said, I also recommend to not rely on the display name. It still exists for backwards compatibility but is rarely the right solution.

  3. StephenOTT

    Great to know!
    Okay so does that mean any sort of party contextual information should be stored out of band? I was looking at using the display name to identify it was a “role” party.

  4. cocreature 1

    Yeah, one example is the Alias contracts in create-daml-app. By actually storing it as contracts you get a lot more flexibility & control over the information you want to store, who can see it, ….

  5. StephenOTT

    yes i was looking at re-using the ledger. But it started to become more boilerplate code than the actual business function. But yes i understand where you are coming from!

    Thanks!