Skip to content

Commit

Permalink
Release v1.3.2 (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Youngjoon Lee authored Nov 13, 2020
1 parent de429d9 commit 28f149b
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitbook/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
## Specifications

* [AOL](specifications/aol.md)
* [DID](specifications/did.md)
* [Token](specifications/token.md)

44 changes: 44 additions & 0 deletions .gitbook/guide/interaction-with-the-network-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,50 @@ You can query the record with this:
panaceacli query aol get-record <owner_panacea> <topic> <offset>
```

### DID

#### Create(Issue) a DID

```bash
panaceacli tx did create-did --chain-id=<chain-id> --from=<address>
```
This doesn't require any parameter except `chain-id` and `from`.
That is, it generates a Secp256k1 key-pair and derive a DID and a DID Document.
The DID Document is stored in Panacea.

To store the key-pair safely in your local, the command will prompt you to enter a passphrase.
The encrypted key-pair file will be stored in your `~/.panaceacli/did_keystore` directory.

#### Resolve a DID

```bash
panaceacli query did get-did <did> --chain-id=<chain-id>
```
This returns a DID Document in JSON corresponding to that DID.
If the DID doesn't exist, or was already deactivated, an error will be returned.

#### Update a DID

```bash
panaceaacli tx did update-did <did> <key-id> <did-doc-path> --chain-id=<chain-id> --from=<address>
```
A DID Document will be replaced to the new one written in a JSON file: `<did-doc-path>`.
To prove that you are the DID owner, you must pass a `<key-id>` that is one of `verificationMethod`s in the DID Document.
Also, that command will prompt you to enter a passphrase of that key if the key-pair is stored in your keystore: `~/.panaceacli/did_keystore`.
The key-pair will be used to make a signature so that Panacea can verify that you are the DID owner.

#### Deactivate a DID

```bash
panaceacli tx did deactivate-did <did> <key-id> --chain-id=<chain-id> --from=<address>
```

Like updating a DID, a `<key-id>` must be specified and the corresponding key-pair should be used to make a signature
so that Panacea can verify that you are the DID owner.

Deactivating a DID is not the same as deleting a DID. DIDs cannot be deleted permanently. They can just be deactivated.
And DIDs cannot be reused to create another DID Documents forever.

### Token

#### Issue a new token
Expand Down
3 changes: 3 additions & 0 deletions .gitbook/specifications/did.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# DID

Please see the [Official Panacea DID Specification](https://github.com/medibloc/panacea-core/blob/master/docs/did.md).
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@

## Unreleased

TBD


## [v1.3.2](https://github.com/medibloc/panacea-core/releases/tag/v1.3.2) - 2020-11-13

### Features

- [\#80](https://github.com/medibloc/panacea-core/pull/80) Add the `x/token` module for issuing new tokens

## [v1.3.2](https://github.com/medibloc/panacea-core/releases/tag/v1.3.2) - 2020-11-04
- [\#81](https://github.com/medibloc/panacea-core/pull/81) Add private considerations for the DID specification

### Bug fixes

- [\#73](https://github.com/medibloc/panacea-core/pull/73) Make LCD use the latest height or the height specified in the URL query
- [\#74](https://github.com/medibloc/panacea-core/pull/74) Fix parsing keeper keys of `x/aol` and `x/did`
- [\#76](https://github.com/medibloc/panacea-core/pull/76) Return 404 when DID is not found or deactivated


## [v1.3.1](https://github.com/medibloc/panacea-core/releases/tag/v1.3.1) - 2020-10-19

### Features
Expand Down
2 changes: 1 addition & 1 deletion client/lcd/statik/statik.go

Large diffs are not rendered by default.

0 comments on commit 28f149b

Please sign in to comment.