Questions tagged [pairings]
The pairings tag has no usage guidance.
14
questions
0
votes
1
answer
30
views
Only getting 'Promise { <pending> } when calling getPair on the Quickswap Factory contract with ethers.js?
I'm attempting to get the pair address of the WETH/DAI pair on Quickswap on the Mumbai test net.
I have this quick script:
const ethers = require('ethers');
const Big = require('big.js');
const PATH = ...
0
votes
0
answers
79
views
How to query Uniswap API to get cryptocurrency pair price on ethereum kovan network returns call revert exception error
I am currently trying to request a currency pair price from two tokens published on Uniswap at: https://app.uniswap.org/#/pool/10341?chain=kovan.
Following a tutorial, I managed to successfully ...
1
vote
1
answer
93
views
Why is there a price difference for pair contracts and swap pair contracts in Uniswap?
I created a few bots to pull data from Uniswap. For example, using ETH/DAI. Even though the pairs are the same, the contract ID's are different for pairs and swap. Why is it that the swap price ...
3
votes
0
answers
103
views
Uniswap path generation
The uniswap contract has a function called swapTokensForExactTokens. One of the arguments to this function is an array of addresses called "path" which is the route that the transfer will ...
5
votes
1
answer
3k
views
How to query Uniswap api in order to get the pair ID of a chosen token?
I am using the Uniswap v2 api subgraph but I am running into a bit of an issue that I cannot resolve.
Basically I want to query the api to get the latest token swaps of a chosen token and Eth. Using ...
1
vote
0
answers
43
views
Does Ethereum support bilinear pairing calculation?
Ethereum pre-compiled x08 address can do pairing checks, but if I just want the smart contract to calculate a pairing, such as e(a,b), instead of checking whether the pairing e(a,b) is equal to e(c,d),...
2
votes
0
answers
77
views
Does Ethereum support just bilinear pairing calculation not the pairing check?
I need to implement bilinear pairing calculation on my contract. Specifically, I have uploaded some parameters and need other users to calculate the pairing for me and I will pay for them if their ...
1
vote
0
answers
131
views
How to compute pairing in a smart contract
I am working on the elliptic curve and pairing stuff in Ethereum smart contract. How can I compute pairing such e(p1,p2)?
I know that we have a pre-compile pairing check in Ethereum client which is ...
2
votes
0
answers
271
views
How the following pairing equality be verified in Ethereum Smart contracts?
I have found available precompiled contracts in solidity. For example, this answer enter link description here points out a precompiled contract that can verify BLS signature. However, looking at the ...
2
votes
1
answer
206
views
Errors in when compiling the BLS signature in remix?
Etherum can verify BLS signatures, In this answer Does Ethereum support pairing operations?
There is an example of how to verify BLS in solidity. However, when I tried to test the code in remix,
...
3
votes
1
answer
1k
views
Does Ethereum support pairing operations?
I need to build an application that uses bilinear pairing operations for generating signatures. If I send a message with its signature to Ethereum, can Ethereum verify this message? Does the EVM ...
6
votes
1
answer
1k
views
How can we verify BGLS aggregate signatures in Solidity?
BGLS [1] is an aggregate signature scheme by Boneh et al., that allows aggregation of signatures on n different messages from n different signers. What I want to achieve is to verify such signatures ...
4
votes
1
answer
584
views
How to use Ethereum precompile bn256Pairing to check equality on symmetric groups?
The address 0x8 contains bn256Pairing pre-compiled contract on Byzantium release. I have the following questions :
If I have G_1 = G_2, i.e., a symmetric pairing, is it possible to check e(a_1, b_1) ?...
3
votes
0
answers
393
views
Can the precompiles in Byzantium for pairings be used for implementation of BLS verification?
I am looking into implementing some operations for the BLS signature scheme in Solidity, using the new precompiled contracts for pairing operations released with Byzantium.
In BLS verification, to ...