Skip to content

NIP-A2: Persona #1709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions A2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
NIP-A2
======

Persona
-------------------

`draft` `optional`

This NIP defines how to create personae for a user. A persona represents an account owned by the base account but serving a distinct purpose. It is not intended to function as a master-subkey system or a form of delegation. The relationship between the base account and the persona account is expressed using `kind 0` events with a few tags.

## `kind 0` event

### Base account

```jsonc
{
"kind": 0,
"tags": [
["p", "<persona account pubkey>", "<optional description>"],
],
// ...
}
```

- The `p` tag contains a persona account pubkey. The optional description can be added.
- It MAY have multiple `p` tags.


### Persona account

```jsonc
{
"kind": 0,
"tags": [
["P", "<base account pubkey>"],
],
// ...
}
```

- The `P` tag contains the base account pubkey.
- It MUST NOT have multiple `P` tags.