@@ -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 ("\n 16. 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 ();
0 commit comments