Skip to content

Commit

Permalink
IS-1468: Release Indy SDK 1.14.2
Browse files Browse the repository at this point in the history
Signed-off-by: artem.ivanov <[email protected]>
  • Loading branch information
Artemkaaas committed Jan 27, 2020
1 parent 3dc9748 commit 505b9a2
Show file tree
Hide file tree
Showing 25 changed files with 220 additions and 49 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 1.14.2 - 2020-01-31
* LibVCX Aries support:
* Implemented Basic Message RFC (IS-1189)
* Indy-CLI changes:
* Added new command `pool set-protocol-version` to set a protocol version that will be used for ledger requests (IS-1391).
* Added new command `payment-address new` that does exactly the same work as the existing `payment-address create` command.
The new command was added to match the naming of `did new` command. The `payment-address create` command will be removed in future releases (IS-1415).
* Bugfixes
* Updated behavior of `indy_store_their_did` function to allow updating of existing `theirDID` record`. It can be used to rotate a pairwise key (IS-1166).
* Enhanced validation of `schema_json`: added check that `id` is consistent with `name` and `version` values (IS-1430).
* Updated Vcx library to support "names" parameter in Proof Request Revealed Attributes (IS-1381)
* Added support of the additional format of `rev_states_json` which is used for proof creation. Both `rev_reg_def_id` and `credential_id` can be used as map keys.
`credential_id` must be used in case of proving that two credentials matching the same `rev_reg_def_id` are not revoked at the same timestamp (IS-1447).
* others minor bugfixes

## 1.14.1 - 2019-12-30
* Bugfixes

Expand Down
23 changes: 23 additions & 0 deletions Specs/libindy/1.14.2/libindy.podspec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "libindy",
"version": "1.14.2",
"summary": "Summary TODO.",
"description": "Description TODO.",
"homepage": "TODO",
"license": {
"type": "Apache License 2.0",
"file": "LICENSE"
},
"authors": {
"Daniel Hardman": "[email protected]"
},
"platforms": {
"ios": "10.0"
},
"source": {
"http": "https://repo.sovrin.org/ios/libindy/stable/libindy-core/1.14.2/libindy.tar.gz"
},
"source_files": "*.h",
"vendored_libraries": "*.a",
"requires_arc": false
}
10 changes: 5 additions & 5 deletions cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "indy-cli"
version = "1.14.1"
version = "1.14.2"
authors = ["Hyperledger Indy Contributors <[email protected]>"]
edition = "2018"

Expand Down Expand Up @@ -29,4 +29,4 @@ serde_json = "1.0.40"
serde_derive = "1.0.97"
term = "0.4.6"
rpassword = "1.0.0"
indy = { version = "1.14.1", path = "../wrappers/rust/" }
indy = { version = "1.14.2", path = "../wrappers/rust/" }
7 changes: 6 additions & 1 deletion cli/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
indy-cli (1.14.1) unstable; urgency=medium
indy-cli (1.14.2) unstable; urgency=medium

[ Hyperledger ]

## 1.14.2
* Added new command `pool set-protocol-version` to set a protocol version that will be used for ledger requests (IS-1391).
* Added new command `payment-address new` that does exactly the same work as the existing `payment-address create` command.
The new command was added to match the naming of `did new` command. The `payment-address create` command will be removed in future releases (IS-1415).

## 1.14.1
* Bugfixes

Expand Down
77 changes: 75 additions & 2 deletions docs/migration-guides/migration-guide-1.13.0-1.14.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ version you can check migration guides history:
* [Notes](#notes)
* [Libindy 1.13 to 1.14 migration](#libindy-113-to-114-migration)
* [Ledger API](#ledger-api)

* [Libindy 1.13.0 to 1.13.1 migration](#libindy-1130-to-1131-migration-guide)
* [Libindy 1.13.1 to 1.13.2 migration](#libindy-1131-to-1132-migration-guide)

## Libindy 1.13 to 1.14 migration

#### Ledger API
Expand All @@ -45,4 +47,75 @@ There are two changes related to Libindy Ledger API:
* added a new function `indy_build_disable_all_txn_author_agreements_request` to build DISABLE_ALL_TXN_AUTHR_AGRMTS request.
Request to disable all Transaction Author Agreement on the ledger.

More details regarding updated transaction author agreement workflow you can find in this [file](../how-tos/transaction-author-agreement.md).
More details regarding updated transaction author agreement workflow you can find in this [file](../how-tos/transaction-author-agreement.md).

## Libindy 1.14.0 to 1.14.1 migration Guide

The Libindy 1.14.1 release contains fixes that don't affect API functions.

## Libindy 1.14.1 to 1.14.2 migration Guide

The Libindy 1.14.1 release contains fixes that don't affect API functions.

##### Changes
* Updated behavior of `indy_store_their_did` function to allow updating of existing `theirDID` record.
It can be used to rotate a pairwise key (IS-1166).

This example works now but threw `WalletItemAlreadyExists` error in previous versions:
```
let identity_json = json!({"did": DID, "verkey": VERKEY}).to_string();
did::store_their_did(setup.wallet_handle, &identity_json).unwrap();

let identity_json = json!({"did": DID, "verkey": VERKEY_TRUSTEE}).to_string();
did::store_their_did(setup.wallet_handle, &identity_json).unwrap();

let verkey = did::key_for_local_did(setup.wallet_handle, DID).unwrap();
assert_eq!(VERKEY_TRUSTEE, verkey);
```


* Enhanced validation of `schema_json`: added check that `id` is consistent with `name` and `version` values (IS-1430).
```
valid:
{
"id":"schema:sov:did:sov:NcYxiDXkpYi6ov5FcYDi1e:2:gvt:1.0",
"name":"gvt",
"version":"1.0",
"attrNames":["aaa","bbb","ccc"],
"ver":"1.0"
}
invalid:
{
"id":"schema:sov:did:sov:NcYxiDXkpYi6ov5FcYDi1e:2:gvt:1.0",
"name":"other_name",
"version":"1111.0",
"attrNames":["aaa","bbb","ccc"],
"ver":"1.0"
}
```
* Added support of the additional format of `rev_states_json` which is used for proof creation.
Both `rev_reg_def_id` and `credential_id` can be used as map keys.
```
1)
{
rev_reg_id: {
timestamp: rev_reg_state,
..
},
...
}
2)
{
credential_id: {
timestamp: rev_reg_state,
...
},
...
}
```
`credential_id` must be used in case of proving that two credentials matching the same `rev_reg_id` are not revoked at the same timestamp (IS-1447).
* others minor bugfixes
12 changes: 6 additions & 6 deletions libindy/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libindy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libindy"
version = "1.14.1"
version = "1.14.2"
authors = ["Hyperledger Indy Contributors <[email protected]>"]
edition = "2018"

Expand Down
10 changes: 9 additions & 1 deletion libindy/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
libindy (1.14.1) unstable; urgency=medium
libindy (1.14.2) unstable; urgency=medium

[ Hyperledger ]

## 1.14.2
* Bugfixes
* Updated behavior of `indy_store_their_did` function to allow updating of existing `theirDID record`. It can be used to rotate a pairwise key (IS-1166).
* Enhanced validation of `schema_json`: added check that `id` is consistent with `name` and `version` values (IS-1430).
* Added support of the additional format of `rev_states_json` which is used for proof creation. Both `rev_reg_def_id` and `credential_id` can be used as map keys.
`credential_id` must be used in case of proving that two credentials matching the same `rev_reg_def_id` are not revoked at the same timestamp (IS-1447).
* others minor bugfixes

## 1.14.1
* Bugfixes

Expand Down
10 changes: 5 additions & 5 deletions libnullpay/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions libnullpay/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "null-payment-method"
version = "1.14.1"
version = "1.14.2"
authors = ["Hyperledger Indy Contributors <[email protected]>"]
build = "build.rs"

Expand All @@ -26,7 +26,7 @@ serde_derive = "1.0.97"

[dev-dependencies]
dirs = "1.0.4"
indy = { version="1.14.1", path="../wrappers/rust" }
indy = { version="1.14.2", path="../wrappers/rust" }

[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.5"
2 changes: 1 addition & 1 deletion libnullpay/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
libnullpay (1.14.1) unstable; urgency=medium
libnullpay (1.14.2) unstable; urgency=medium

[ Hyperledger ]
* Initial release
42 changes: 42 additions & 0 deletions vcx/docs/migration-guide-0.5.x-0.6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ to simplify their transition to LibVCX 0.5 from LibVCX 0.6.x.

* [API]()
* [Vcx API](#vcx-api)
* [Libvcx 0.6.0 to 0.6.1 migration](#libvcx-060-to-061-migration-guide)
* [Libvcx 0.6.1 to 0.6.2 migration](#libvcx-061-to-062-migration-guide)

#### Vcx API

Expand Down Expand Up @@ -52,3 +54,43 @@ This setting is used within Discover Features protocol to specify the set of pro
The following actors are implemented by default: `[inviter, invitee, issuer, holder, prover, verifier, sender, receiver]`.

You need to edit this list in case application supports the less number of actors.

## Libvcx 0.6.0 to 0.6.1 migration Guide

The Libvcx 0.6.1 release contains fixes that don't affect API functions and behaviour.

## Libvcx 0.6.1 to 0.6.2 migration Guide

We extended the support for Aries protocols:
* Basic Message (https://github.com/hyperledger/aries-rfcs/tree/master/features/0095-basic-message)
* Updated `vcx_connection_send_message` function to send any kind of messages:
* if the message is matched to a known aries message - send as is.
* if the message isn't known - wrap and send as `basic` message.
* Accept incoming messages with `basicmessage` type. Use `download_message` to download messages from an agency.


Updated library to support "names" parameter in Proof Request Revealed Attributes (IS-1381).
Here is the current format of `revealed_attrs` parameter accepting by `vcx_proof_create` function:
```
requested_attrs: Describes requested attribute
{
"name": Optional<string>, // attribute name, (case insensitive and ignore spaces)
"names": Optional<[string, string]>, // attribute names, (case insensitive and ignore spaces)
// NOTE: should either be "name" or "names", not both and not none of them.
// Use "names" to specify several attributes that have to match a single credential.
"restrictions": (filter_json) {
"schema_id": string, (Optional)
"schema_issuer_did": string, (Optional)
"schema_name": string, (Optional)
"schema_version": string, (Optional)
"issuer_did": string, (Optional)
"cred_def_id": string, (Optional)
},
"non_revoked": {
"from": Optional<(u64)> Requested time represented as a total number of seconds from Unix Epoch, Optional
"to": Optional<(u64)>
//Requested time represented as a total number of seconds from Unix Epoch, Optional
}
}
```
Note: Use `names` to request from Prover several attributes that must correspond to a single credential.
Loading

0 comments on commit 505b9a2

Please sign in to comment.