Skip to content

Commit 8e9fc2e

Browse files
committed
Update GetPublicKeyStatushash
1 parent 7794100 commit 8e9fc2e

File tree

2 files changed

+7
-26
lines changed

2 files changed

+7
-26
lines changed

src/txFactory/publicKeyRegistryTransactionFactory.ts

-17
Original file line numberDiff line numberDiff line change
@@ -121,23 +121,6 @@ export function getCurrentPublicKey(web3, did) {
121121
return transaction
122122
}
123123

124-
/**
125-
* @param web3
126-
* @param did
127-
* @param publicKeyHash
128-
*/
129-
export function getCurrentPublicKeyHash(web3, did, publicKeyHash) {
130-
const subjectAddr = AIdUtils.getProxyAddress(did)
131-
const transaction = Object.assign({}, config.basicTransaction)
132-
transaction.data = web3.eth.abi.encodeFunctionCall(
133-
config.contractsAbi.AlastriaPublicKeyRegistry.getCurrentPublicKey,
134-
[subjectAddr, publicKeyHash]
135-
)
136-
transaction.to = config.alastriaPublicKeyRegistry
137-
transaction.gasLimit = 600000
138-
return transaction
139-
}
140-
141124
/**
142125
* THIS METHOD WILL BE DEPREATED
143126
* @param web3

src/txFactory/transactionFactory.ts

+7-9
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ import {
1212
delegateCall,
1313
prepareAlastriaID,
1414
createAlastriaIdentity,
15+
createAlastriaIdentityHash,
1516
addIdentityIssuer,
1617
updateIdentityIssuerEidasLevel,
1718
deleteIdentityIssuer,
1819
getEidasLevel,
1920
addIdentityServiceProvider,
2021
deleteIdentityServiceProvider,
2122
isIdentityServiceProvider,
22-
isIdentityIssuer,
23-
createAlastriaIdentityHash
23+
isIdentityIssuer
2424
} from './identityManagerTransactionFactory'
2525

2626
import {
@@ -45,19 +45,18 @@ import {
4545

4646
import {
4747
addKey,
48+
addPublicKey,
4849
revokePublicKey,
50+
revokePublicKeyHash,
4951
deletePublicKey,
52+
deletePublicKeyHash,
5053
getCurrentPublicKey,
5154
getPublicKeyStatus,
55+
getPublicKeyStatusHash,
5256
getPublicKeyStatusDecodedAsJSON,
57+
getPublicKeyStatusDecodedAsJSONHash,
5358
isPublicKeyValidForDate,
5459
isPublicKeyValidForDateHash,
55-
getPublicKeyStatusDecodedAsJSONHash,
56-
getPublicKeyStatusHash,
57-
deletePublicKeyHash,
58-
revokePublicKeyHash,
59-
addPublicKey,
60-
getCurrentPublicKeyHash
6160
} from './publicKeyRegistryTransactionFactory'
6261

6362
export const transactionFactory = {
@@ -110,7 +109,6 @@ export const transactionFactory = {
110109
deletePublicKey: deletePublicKey,
111110
deletePublicKeyHash: deletePublicKeyHash,
112111
getCurrentPublicKey: getCurrentPublicKey,
113-
getCurrentPublicKeyHash: getCurrentPublicKeyHash,
114112
getPublicKeyStatus: getPublicKeyStatus,
115113
getPublicKeyStatusHash: getPublicKeyStatusHash,
116114
getPublicKeyStatusDecodedAsJSON: getPublicKeyStatusDecodedAsJSON,

0 commit comments

Comments
 (0)