# Is it necessary that maintainer key always been a party?

**URL:** <https://forum.canton.network/t/is-it-necessary-that-maintainer-key-always-been-a-party/649>\
**Category:** App Development\
**Tags:** daml\
**Created:** [June 15, 2020, 7:09pm UTC](https://forum.canton.network/t/is-it-necessary-that-maintainer-key-always-been-a-party/649 "2020-06-15T19:09:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stephen/32/102_2.png) [@Stephen](https://forum.canton.network/u/Stephen)\
**Post date:** [June 15, 2020, 7:18pm UTC](https://forum.canton.network/t/is-it-necessary-that-maintainer-key-always-been-a-party/649/2 "2020-06-15T19:18:12Z")

</div>

edit: To the question in the subject, _yes_. Maintainers play [a specific semantic role in the contract key model](https://docs.daml.com/daml/reference/contract-keys.html#specifying-maintainers) that may not simply be carried out by arbitrary data.

You need to tell DAML how to get the `Party`s from your `CitizenKey`.

If this is the only place, you could just write `maintainer key._1.citizen`.

If you generally want `CitizenKey` to work, you could add the missing instance. If I add this line to the file:

```haskell
instance IsParties CitizenKey where

```

I get the error

```haskell
Test.daml:63:10: error:
  • No explicit implementation for
  ‘toParties’
  • In the instance declaration for ‘IsParties CitizenKey’

```

So I can add

```haskell
instance IsParties CitizenKey where
  toParties = ()

```

Now I get

```haskell
Test.daml:64:15: error:
  • Couldn't match expected type ‘CitizenKey -> [Party]’
  with actual type ‘()’
  • In the expression: ()
  In an equation for ‘toParties’: toParties = ()
  In the instance declaration for ‘IsParties CitizenKey’

```

Now just implement that signature. There are a few ways; since what I want is “just recur on the `IsParties` instance for the `citizen` field”, I would write:

```haskell
instance IsParties CitizenKey where
  toParties = toParties . citizen

```

But this is almost a stylistic choice at this point.

---

_[View the full topic](https://forum.canton.network/t/is-it-necessary-that-maintainer-key-always-been-a-party/649)._
