(requestId: string, data: string)
| 80 | } |
| 81 | |
| 82 | export function signWithRequestId(requestId: string, data: string) { |
| 83 | const airnodeWallet = getAirnodeWalletFromPrivateKey(); |
| 84 | |
| 85 | return airnodeWallet.signMessage( |
| 86 | ethers.utils.arrayify( |
| 87 | ethers.utils.keccak256(ethers.utils.solidityPack(['bytes32', 'bytes'], [requestId, data || '0x'])) |
| 88 | ) |
| 89 | ); |
| 90 | } |
| 91 | |
| 92 | export function signWithTemplateId(templateId: string, timestamp: string, data: string) { |
| 93 | const airnodeWallet = getAirnodeWalletFromPrivateKey(); |
no test coverage detected