CRYPTO NEWS

How to generate logn instances of 1 out of 2 OT from a single instance of 1 out of n OT?

I’m reading the paper Improved OT extension. The author said that in semi-honest model, a single instance of 1 out of n OT may be used to generate $log n$ instances of 1 out of 2 OT. More precisely, the cost of $text{OT}_{l}^m$ is exactly equal to the cost of 1 out of n $text{OT}_{llog n}^{m/log n}$.

I wonder why it is so. Are there any references about this?

Is it possible to fetch an Owner of an NFT by providing Smart Contract address and NFT ID

I am developing a smart contract which requires users to upload a specific information about their NFTs. I somehow need to verify whether they are the actual owner of that NFT before uploading information about it. Can you advice me how to do that? I saw that I can use APIs of Opensea, Alchemy, etc.::Listen

I am developing a smart contract which requires users to upload a specific information about their NFTs. I somehow need to verify whether they are the actual owner of that NFT before uploading information about it. Can you advice me how to do that? I saw that I can use APIs of Opensea, Alchemy, etc. But I was wondering is it possible to do it directly inside my smart contract?

I need something like this:

function approve(uint memory _id, address memory _contractAddress) external {  address owner = return Owner(_id, _contractAddress);  require (msg.sender = owner, "not the same owner");  } 

A function which takes the NFT contract address and NFT id and returns the owner address. Then I need to compare whether the owner address is equal to the msg.sender. If they are equal then the user who is calling that function is the owner the the queried NFT.

Is that possible at all or I have to use some API?

How to generate logn instances of 1 out of 2 OT from a single instance of 1 out of n OT?

Shopping cart
There are no products in the cart!
Continue shopping
0