Skip to content

Commit f7a483b

Browse files
authored
Merge pull request hyperledger-indy#735 from jovfer/feature/rc_1_4_0
Back-merge Stable 1.4.0
2 parents 57674d7 + 1c21543 commit f7a483b

File tree

17 files changed

+128
-31
lines changed

17 files changed

+128
-31
lines changed

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# 1.4.0
2+
3+
* Indy CLI tool added.
4+
* Switching from DID-based crypto to keys-based crypto:
5+
* All DID-based crypto functions (`signus` module) are removed.
6+
* Added key-based `crypto` module.
7+
* Added functions to resolve keys for DIDs.
8+
* Agent API moved into `crypto` module.
9+
* Support the latest version of CL crypto (through `indy-crypto` library):
10+
* Added nonce for all protocol steps.
11+
* Added consistency proofs for protocol steps.
12+
* Representation of Proofs changed (sub-proofs now are ordered).
13+
* Support of complete Credentials Revocation workflow in Anoncreds API:
14+
* Support large Tails handling through BlobStorage API.
15+
* Support new Revocation transactions.
16+
* Add calls for remote Witness calculation.
17+
* State-less approach in Credential issuance process.
18+
* Unified reference approach for Anoncreds entities.
19+
* Extend DID API: added some methods for iteration over entities in the wallet.
20+
* Bugfixes.
21+
22+
Notes:
23+
* There is [migration guide](doc/migration-guide.md) about API changes.
24+
* The changes for Credential Revocation invalidates any Anoncreds made with SDK 1.3. They must be reissued.
25+
* This release is intended for development purposes only. The 1.5.0 release of the SDK will contain changes to the wallet format. If you plan to put durable artifacts in the wallet, let us know so we can discuss migration to the future format.
26+
27+
# 1.3.0
28+
29+
* Encryption option for default wallet is added.
30+
31+
# 1.2.0
32+
33+
* indy_key_for_local_did added.
34+
35+
# 1.1.0
36+
37+
* Replaced Agent2Agent API.
38+
* New Crypto API.
39+
* Updated Signus API.
40+
41+
# 1.0.0
42+
43+
* Initial release.

Jenkinsfile.cd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,11 @@ def publishingRCtoStable() {
550550
echo 'Moving RC artifacts to Stable: Checkout csm'
551551
checkout scm
552552

553+
echo 'Moving RC artifacts to Stable: Download packaging utils'
554+
dir('sovrin-packaging') {
555+
downloadPackagingUtils()
556+
}
557+
553558
version = getSrcVersion()
554559

555560
echo 'Moving Windows RC artifacts to Stable: libindy'
@@ -629,10 +634,9 @@ def publishLibindyCliDebRCtoStable(testEnv, version) {
629634

630635
def uploadDebianFilesToStable() {
631636
withCredentials([file(credentialsId: 'SovrinRepoSSHKey', variable: 'sovrin_key')]) {
632-
downloadPackagingUtils()
633637
path = sh(returnStdout: true, script: 'pwd').trim()
634638

635-
sh "./upload_debs.py $path $SOVRIN_SDK_REPO_NAME stable --host $SOVRIN_REPO_HOST --ssh-key $sovrin_key"
639+
sh "./sovrin-packaging/upload_debs.py $path $SOVRIN_SDK_REPO_NAME stable --host $SOVRIN_REPO_HOST --ssh-key $sovrin_key"
636640
}
637641
}
638642

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Please refer to our [release workflow](doc/release-workflow.md) for more details
4949
### Ubuntu based distributions (Ubuntu 16.04)
5050
It is recommended to install the SDK packages with APT:
5151

52-
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88
52+
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88
5353
sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb xenial {release channel}"
5454
sudo apt-get update
5555
sudo apt-get install -y libindy
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "libindy-objc",
3+
"version": "1.4.0",
4+
"summary": "Summary TODO.",
5+
"homepage": "TODO",
6+
"license": {
7+
"type": "Apache License 2.0",
8+
"file": "LICENSE"
9+
},
10+
"authors": {
11+
"Daniel Hardman": "[email protected]"
12+
},
13+
"source": {
14+
"http": "https://repo.sovrin.org/ios/libindy/stable/indy-objc/1.4.0/libindy-objc.zip"
15+
},
16+
"platforms": {
17+
"ios": "10.0"
18+
},
19+
"ios": {
20+
"vendored_frameworks": "libindy-objc/Indy.framework"
21+
},
22+
"module_name": "Indy"
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "libindy",
3+
"version": "1.4.0",
4+
"summary": "Summary TODO.",
5+
"description": "Description TODO.",
6+
"homepage": "TODO",
7+
"license": {
8+
"type": "Apache License 2.0",
9+
"file": "LICENSE"
10+
},
11+
"authors": {
12+
"Daniel Hardman": "[email protected]"
13+
},
14+
"platforms": {
15+
"ios": "10.0"
16+
},
17+
"source": {
18+
"http": "https://repo.sovrin.org/ios/libindy/stable/libindy-core/1.4.0/libindy.tar.gz"
19+
},
20+
"source_files": "*.h",
21+
"vendored_libraries": "*.a",
22+
"requires_arc": false
23+
}

cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Pre-Built binaries can be downloaded from https://repo.sovrin.org/:
1414

1515
On Ubuntu it is recommended to install packages with APT (change stable to `master` or `rc` if needed):
1616
```
17-
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88
17+
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88
1818
sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb xenial stable"
1919
sudo apt-get update
2020
sudo apt-get install -y indy-cli

cli/src/commands/ledger.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,9 @@ pub mod pool_config_command {
627627
pub mod pool_restart_command {
628628
use super::*;
629629

630-
command!(CommandMetadata::build("pool-restart", "Send instructions to nodes to update themselves.")
630+
command!(CommandMetadata::build("pool-restart", "Send instructions to nodes to restart themselves.")
631631
.add_required_param("action", "Restart type. Either start or cancel.")
632-
.add_optional_param("datetime", "Node restart datetime. Datetime is mandatory for action=start.")
632+
.add_optional_param("datetime", "Node restart datetime (only for action=start).")
633633
.add_example(r#"ledger pool-restart action=start datetime=2020-01-25T12:49:05.258870+00:00"#)
634634
.add_example(r#"ledger pool-restart action=cancel"#)
635635
.finalize()
@@ -643,7 +643,7 @@ pub mod pool_restart_command {
643643
let (wallet_handle, wallet_name) = ensure_opened_wallet(&ctx)?;
644644

645645
let action = get_str_param("action", params).map_err(error_err!())?;
646-
let datetime = get_str_param("datetime", params).map_err(error_err!())?;
646+
let datetime = get_opt_str_param("datetime", params).map_err(error_err!())?;
647647

648648
let response = Ledger::indy_build_pool_restart_request(&submitter_did, action, datetime)
649649
.and_then(|request| Ledger::sign_and_submit_request(pool_handle, wallet_handle, &submitter_did, &request));

cli/src/libindy/ledger.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,12 @@ impl Ledger {
223223
super::results::result_to_string(err, receiver)
224224
}
225225

226-
pub fn indy_build_pool_restart_request(submitter_did: &str, action: &str, datetime: &str) -> Result<String, ErrorCode> {
226+
pub fn indy_build_pool_restart_request(submitter_did: &str, action: &str, datetime: Option<&str>) -> Result<String, ErrorCode> {
227227
let (receiver, command_handle, cb) = super::callbacks::_closure_to_cb_ec_string();
228228

229229
let submitter_did = CString::new(submitter_did).unwrap();
230230
let action = CString::new(action).unwrap();
231-
let datetime = CString::new(datetime).unwrap();
231+
let datetime = datetime.map(|s| CString::new(s).unwrap()).unwrap_or(CString::new("").unwrap());
232232

233233
let err = unsafe {
234234
indy_build_pool_restart_request(command_handle,

doc/migration-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1982,5 +1982,5 @@ The Wallet API has not been changed.
19821982
Here you can find integration tests that demonstrates basic revocation scenario using Libindy and Ledger
19831983
* [Rust](https://github.com/hyperledger/indy-sdk/blob/master/libindy/tests/interaction.rs)
19841984
* [Java](https://github.com/hyperledger/indy-sdk/blob/master/wrappers/java/src/test/java/org/hyperledger/indy/sdk/interaction/AnoncredsRevocationInteractionTest.java)
1985-
* [Pyton](https://github.com/hyperledger/indy-sdk/blob/master/wrappers/python/tests/interation/interaction.py)
1985+
* [Python](https://github.com/hyperledger/indy-sdk/blob/master/wrappers/python/tests/interation/interaction.py)
19861986
* [XCode](https://github.com/hyperledger/indy-sdk/blob/master/wrappers/ios/libindy-pod/Indy-demoTests/Demo%20Tests/Interaction.mm)

doc/windows-build.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Follow to https://http://zeromq.org/intro.
8686
- execute "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
8787
- Point path to this directory using environment variables:
8888
- set INDY_PREBUILT_DEPS_DIR=C:\BIN\x64
89+
- set INDY_CRYPTO_PREBUILT_DEPS_DIR=C:\BIN\x64
8990
- set MILAGRO_DIR=C:\BIN\x64
9091
- set LIBZMQ_PREFIX=C:\BIN\x64
9192
- set SODIUM_LIB_DIR=C:\BIN\x64

0 commit comments

Comments
 (0)