Skip to content

Commit

Permalink
Modify reademe
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungBaeJeon committed Sep 4, 2020
1 parent e92182b commit cf1bb43
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add dependency
<dependency>
<groupId>com.github.METADIUM</groupId>
<artifactId>did-sdk-java</artifactId>
<version>0.1.0</version>
<version>0.1.1</version>
</dependency>
```
### Gradle
Expand All @@ -39,7 +39,7 @@ Add dependency

```gradle
dependencies {
implementation 'com.github.METADIUM:did-sdk-java:0.1.0'
implementation 'com.github.METADIUM:did-sdk-java:0.1.1'
}
```

Expand All @@ -57,7 +57,8 @@ MetadiumWallet wallet = MetadiumWallet.createDid(delegator);
String did = wallet.getDid(); // Getting did
String kid = wallet.getKid(); // Getting key id
MetadiumKey key = wallet.getKey(); // Getting key
BigInteger privateKey = wallet..getKey().getPrivateKey(); // Getting ec private key
BigInteger privateKey = wallet.getKey().getPrivateKey(); // Getting ec private key. bigint
ECPrivateKey ecPrivateKey = wallet.getKey().getECPrivateKey(); // Getting ec private key. ECPrivateKey

// serialize / deserialize
String walletJson = wallet.toJson();
Expand Down

0 comments on commit cf1bb43

Please sign in to comment.