You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const seedPhrase ='fence tongue sell large master side flock bronze ice accident what humble bring heart swear record valley party jar caution horn cushion endorse position';
@@ -109,12 +110,12 @@ The following example demonstrates how a credential deployment transaction is cr
109
110
import java.util.Collections
110
111
import java.util.EnumMap
111
112
112
-
fun createCredentialDeploymentTransaction(): CredentialDeploymentDetails {
113
+
fun createCredentialDeploymentTransaction(identityIndex: Int, credentialCounter: Int): CredentialDeploymentDetails {
113
114
// The identity object created previously. See the identity creation section.
114
115
val identity: IdentityObject = ...
115
116
116
-
// The identity provider that was used for creating the identity.
117
-
val ipIdentity = ...
117
+
// The index of the identity provider that was used for creating the identity.
118
+
val identityProviderIndex = ...
118
119
119
120
val connection = Connection.newBuilder()
120
121
.host(nodeAddress)
@@ -125,7 +126,7 @@ The following example demonstrates how a credential deployment transaction is cr
125
126
126
127
val anonymityRevokers = Iterable { client.getAnonymityRevokers(BlockQuery.BEST) }.associateBy { it.arIdentity.toString() }
127
128
val providers = client.getIdentityProviders(BlockQuery.BEST)
val global = client.getCryptographicParameters(BlockQuery.BEST)
130
131
131
132
val seedPhrase = "fence tongue sell large master side flock bronze ice accident what humble bring heart swear record valley party jar caution horn cushion endorse position"
@@ -136,24 +137,24 @@ The following example demonstrates how a credential deployment transaction is cr
136
137
val attributeRandomness: MutableMap<AttributeType, String> = EnumMap(AttributeType::class.java)
137
138
for (attrType in identity.attributeList.chosenAttributes.keys) {
@@ -118,7 +117,7 @@ The first step is to create the actual identity request. To do this, you need th
118
117
val seedPhrase = "fence tongue sell large master side flock bronze ice accident what humble bring heart swear record valley party jar caution horn cushion endorse position"
119
118
@OptIn(ExperimentalStdlibApi::class)
120
119
val seedAsHex = Mnemonics.MnemonicCode(seedPhrase.toCharArray()).toSeed().toHexString()
121
-
val wallet = ConcordiumHdWallet.fromHex(seedAsHex, Network.TESTNET)
120
+
val wallet = ConcordiumHdWallet.fromHex(seedAsHex, Network.TESTNET) // Or Network.MAINNET, if working on mainnet.
122
121
123
122
val identityProviderIndex = identityProvider.ipInfo.ipIdentity.value
124
123
val idCredSec = wallet.getIdCredSec(identityProviderIndex, identityIndex)
0 commit comments