Skip to content

Commit 9870c95

Browse files
authored
Merge branch 'master' into credentials-param
2 parents f54f573 + 88dcc41 commit 9870c95

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

doc/how-tos/issue-credential/java/IssueCredential.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,15 @@ static void demo() throws Exception {
102102
claimDef, masterSecretName).get();
103103
System.out.println("Claim Request:\n" + claimRequestJSON);
104104

105-
// 1
105+
// 16
106106
System.out.println("\n16. Issuer (Trust Anchor) creates Claim for Claim Request\n");
107-
String claimAttributesJson = "{\n" +
108-
" \"sex\":[\"male\",\"5944657099558967239210949258394887428692050081607692519917050011144233115103\"],\n" +
109-
" \"name\":[\"Alex\",\"1139481716457488690172217916278103335\"],\n" +
110-
" \"height\":[\"175\",\"175\"],\n" +
111-
" \"age\":[\"28\",\"28\"]\n" +
112-
" }";
107+
// Encoded value of non-integer attribute is SHA256 converted to decimal
108+
String credAttribsJson = "{\n" +
109+
" \"sex\":[\"male\",\"5944657099558967239210949258394887428692050081607692519917050011144233115103\"],\n" +
110+
" \"name\":[\"Alex\",\"99262857098057710338306967609588410025648622308394250666849665532448612202874\"],\n" +
111+
" \"height\":[\"175\",\"175\"],\n" +
112+
" \"age\":[\"28\",\"28\"]\n" +
113+
" }";
113114
AnoncredsResults.IssuerCreateClaimResult createClaimResult = issuerCreateClaim(walletHandle, claimRequestJSON,
114115
claimAttributesJson, - 1).get();
115116
String claimJSON = createClaimResult.getClaimJson();

doc/how-tos/issue-credential/java/step4.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
System.out.println("Cred Request:\n" + credRequestJSON);
99

1010
System.out.println("\n16. Issuer (Trust Anchor) creates Credential for Credential Request\n");
11+
// Encoded value of non-integer attribute is SHA256 converted to decimal
1112
String credAttribsJson = "{\n" +
1213
" \"sex\":[\"male\",\"5944657099558967239210949258394887428692050081607692519917050011144233115103\"],\n" +
13-
" \"name\":[\"Alex\",\"1139481716457488690172217916278103335\"],\n" +
14+
" \"name\":[\"Alex\",\"99262857098057710338306967609588410025648622308394250666849665532448612202874\"],\n" +
1415
" \"height\":[\"175\",\"175\"],\n" +
1516
" \"age\":[\"28\",\"28\"]\n" +
1617
" }";

doc/mac-build.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
brew install autoconf
1111
brew install cmake
1212
brew install openssl
13+
brew install zeromq
1314
```
1415

1516

@@ -34,4 +35,4 @@
3435
# Note on running local nodes
3536

3637
In order to run local nodes on MacOS, it may be necessary to set up port mapping between the Docker container
37-
and local host. Follow the instructions in [Indy SDK README](https://github.com/hyperledger/indy-sdk#how-to-start-local-nodes-pool-with-docker)
38+
and local host. Follow the instructions in [Indy SDK README](https://github.com/hyperledger/indy-sdk#how-to-start-local-nodes-pool-with-docker)

0 commit comments

Comments
 (0)