@@ -125,32 +125,13 @@ export function getCurrentPublicKey(web3, did) {
125
125
return transaction
126
126
}
127
127
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
-
147
128
/**
148
129
* function getPublicKeyStatus(address subject, bytes32 publicKeyHash) view public
149
130
* @param web3 ethereum connection
150
131
* @param did alastri Id
151
132
* @param publicKeyHash the hash of the publickey. should have 32 bytes
152
133
*/
153
- export function getPublicKeyStatusHash ( web3 , did , publicKeyHash ) {
134
+ export function getPublicKeyStatus ( web3 , did , publicKeyHash ) {
154
135
const subjectAddr = AIdUtils . getProxyAddress ( did )
155
136
const transaction = Object . assign ( { } , config . basicTransaction )
156
137
transaction . data = web3 . eth . abi . encodeFunctionCall (
0 commit comments