From ed95a643a99392278ee5179186f5475bbc4a26c9 Mon Sep 17 00:00:00 2001 From: Mircea Nistor Date: Fri, 2 Aug 2019 12:23:55 +0200 Subject: [PATCH] bump version to 0.5.0 --- README.md | 24 ++++++++++++------- build.gradle | 2 +- .../me/uport/sdk/credentials/Credentials.kt | 2 +- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 260f78e8..b8cfb262 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ allprojects { In your application `build.gradle` file, add: ```groovy -def uport_sdk_version = "v0.4.2" +def uport_sdk_version = "v0.5.0" dependencies { //... // core SDK @@ -146,7 +146,7 @@ val receipt = Networks.rinkeby.awaitConfirmation(txHash) ### off-chain interaction -Off-chain interaction is essentially signing and verifying JWTs using uport-specific JWT algorithms. +Off-chain interaction is essentially signing and verifying JWTs using specific JWT algorithms. Verification of such tokens implies resolving a [Decentralized Identity (DID) document](https://github.com/uport-project/specs/blob/develop/pki/diddocument.md) that will contain the keys or address that should match a JWT signature. @@ -212,11 +212,11 @@ val decryptedMessage = Crypto.decrypt(receivedBundle, recipientSecretKey) ## Dependencies -This library uses [KEthereum](https://github.com/komputing/KEthereum) for a lot of the -ethereum related work. +* These libraries use [KEthereum](https://github.com/komputing/KEthereum) for a lot of the ethereum related work. +* The smart-contract binding code is generated using [bivrost-kotlin](https://github.com/gnosis/bivrost-kotlin) +* The off-chain/JWT interactions rely on [kotlin-did-jwt](https://github.com/uport-project/kotlin-did-jwt) +* Protected Key management is done by [uport-android-signer](https://github.com/uport-project/uport-android-signer) -The smart-contract binding code is generated using -[bivrost-kotlin](https://github.com/gnosis/bivrost-kotlin) Currently there is a transient dependency on [spongycastle](https://rtyley.github.io/spongycastle/) but that may be removed when pure kotlin implementations of the required cryptographic @@ -230,9 +230,15 @@ we use for making changes to this repo. ## Changelog -* 0.5.x - upcoming - * separated signer, common, jwt, did-resolvers - * `Account` is now an interface and the default implementation used is `HDAccount` +* 0.5.0 + * [breaking][bugfix] align JWT signature to spec (#93) + * [breaking][support] externalized did-jwt and signer modules (#97) + * [breaking][feature]`Account` is now an interface and the default implementation used is `HDAccount` (#89) + * [feature] easier configuration of JsonRPC endpoints (#91) + * [feature] add `verifyDisclosure()` method (#96) + * [feature] add `authenticateDisclosureResponse()` (#98) + * [feature] add W3C methods to create Verifiable Credential and Presentation (#100) + * [support] reduce UI test flakyness (#92) * 0.4.2 * updated infura JsonRPC endpoint URLs. diff --git a/build.gradle b/build.gradle index 7548d5d0..68cf3210 100644 --- a/build.gradle +++ b/build.gradle @@ -42,7 +42,7 @@ buildscript { kotlin_common_version = "0.1.1" uport_signer_version = "0.3.0" - uport_sdk_version = "v0.4.2" + uport_sdk_version = "v0.5.0" } repositories { diff --git a/credentials/src/main/java/me/uport/sdk/credentials/Credentials.kt b/credentials/src/main/java/me/uport/sdk/credentials/Credentials.kt index de71ef44..3ffebc8d 100644 --- a/credentials/src/main/java/me/uport/sdk/credentials/Credentials.kt +++ b/credentials/src/main/java/me/uport/sdk/credentials/Credentials.kt @@ -339,7 +339,7 @@ class Credentials( * @param expiresInSeconds _optional_ number of seconds of validity of the JWT. This parameter * is ignored if the [payload] already contains an `exp` field */ - suspend fun signJWT( + internal suspend fun signJWT( payload: Map, expiresInSeconds: Long = DEFAULT_JWT_VALIDITY_SECONDS, algorithm: String? = null