@@ -125,32 +125,13 @@ export function getCurrentPublicKey(web3, did) {
125125 return transaction
126126}
127127
128- /**
129- * TODO: ELIMINAR???
130- * THIS METHOD WILL BE DEPREATED, USE INSTEAD getPublicKeyStatusHash
131- * function getPublicKeyStatus(address subject, bytes32 publicKeyHash) view public
132- * @param did ethereum connection
133- * @param publicKey the public key.
134- */
135- export function getPublicKeyStatus ( web3 , did , publicKey ) {
136- const subjectAddr = AIdUtils . getProxyAddress ( did )
137- const transaction = Object . assign ( { } , config . basicTransaction )
138- transaction . data = web3 . eth . abi . encodeFunctionCall (
139- config . contractsAbi . AlastriaPublicKeyRegistry . getPublicKeyStatus ,
140- [ subjectAddr , AddressUtils . getAddressWithoutHexPrefix ( publicKey ) ]
141- )
142- transaction . to = config . alastriaPublicKeyRegistry
143- transaction . gasLimit = 600000
144- return transaction
145- }
146-
147128/**
148129 * function getPublicKeyStatus(address subject, bytes32 publicKeyHash) view public
149130 * @param web3 ethereum connection
150131 * @param did alastri Id
151132 * @param publicKeyHash the hash of the publickey. should have 32 bytes
152133 */
153- export function getPublicKeyStatusHash ( web3 , did , publicKeyHash ) {
134+ export function getPublicKeyStatus ( web3 , did , publicKeyHash ) {
154135 const subjectAddr = AIdUtils . getProxyAddress ( did )
155136 const transaction = Object . assign ( { } , config . basicTransaction )
156137 transaction . data = web3 . eth . abi . encodeFunctionCall (
0 commit comments