Skip to content

Commit

Permalink
Update GetPublicKeyStatushash
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniRumpi committed May 21, 2024
1 parent 7794100 commit 8e9fc2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 26 deletions.
17 changes: 0 additions & 17 deletions src/txFactory/publicKeyRegistryTransactionFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,23 +121,6 @@ export function getCurrentPublicKey(web3, did) {
return transaction
}

/**
* @param web3
* @param did
* @param publicKeyHash
*/
export function getCurrentPublicKeyHash(web3, did, publicKeyHash) {
const subjectAddr = AIdUtils.getProxyAddress(did)
const transaction = Object.assign({}, config.basicTransaction)
transaction.data = web3.eth.abi.encodeFunctionCall(
config.contractsAbi.AlastriaPublicKeyRegistry.getCurrentPublicKey,
[subjectAddr, publicKeyHash]
)
transaction.to = config.alastriaPublicKeyRegistry
transaction.gasLimit = 600000
return transaction
}

/**
* THIS METHOD WILL BE DEPREATED
* @param web3
Expand Down
16 changes: 7 additions & 9 deletions src/txFactory/transactionFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import {
delegateCall,
prepareAlastriaID,
createAlastriaIdentity,
createAlastriaIdentityHash,
addIdentityIssuer,
updateIdentityIssuerEidasLevel,
deleteIdentityIssuer,
getEidasLevel,
addIdentityServiceProvider,
deleteIdentityServiceProvider,
isIdentityServiceProvider,
isIdentityIssuer,
createAlastriaIdentityHash
isIdentityIssuer
} from './identityManagerTransactionFactory'

import {
Expand All @@ -45,19 +45,18 @@ import {

import {
addKey,
addPublicKey,
revokePublicKey,
revokePublicKeyHash,
deletePublicKey,
deletePublicKeyHash,
getCurrentPublicKey,
getPublicKeyStatus,
getPublicKeyStatusHash,
getPublicKeyStatusDecodedAsJSON,
getPublicKeyStatusDecodedAsJSONHash,
isPublicKeyValidForDate,
isPublicKeyValidForDateHash,
getPublicKeyStatusDecodedAsJSONHash,
getPublicKeyStatusHash,
deletePublicKeyHash,
revokePublicKeyHash,
addPublicKey,
getCurrentPublicKeyHash
} from './publicKeyRegistryTransactionFactory'

export const transactionFactory = {
Expand Down Expand Up @@ -110,7 +109,6 @@ export const transactionFactory = {
deletePublicKey: deletePublicKey,
deletePublicKeyHash: deletePublicKeyHash,
getCurrentPublicKey: getCurrentPublicKey,
getCurrentPublicKeyHash: getCurrentPublicKeyHash,
getPublicKeyStatus: getPublicKeyStatus,
getPublicKeyStatusHash: getPublicKeyStatusHash,
getPublicKeyStatusDecodedAsJSON: getPublicKeyStatusDecodedAsJSON,
Expand Down

0 comments on commit 8e9fc2e

Please sign in to comment.