CRYPTO NEWS

Gas usage for 1155 vs 721a

A client is looking to optimize gas usage for an nft contract. Which uses less gas for minting/transfers (deployment isn’t really a concern but input on it is definitely welcome)? The collection in entirely non fungible but is expected to be mainly used/transferred/burned in batches

AES CBC: When to use new IV

I am trying to figure out when to use a new IV for an AES-CBC communication and whether my approach is safe. Here is a quote from Thomas Pornin from a similar question: So, to sum up: you must choose a new, random IV (with a cryptographically strong generator) whenever you are about to encrypt::Listen

I am trying to figure out when to use a new IV for an AES-CBC communication and whether my approach is safe.

Here is a quote from Thomas Pornin from a similar question:

So, to sum up: you must choose a new, random IV (with a
cryptographically strong generator) whenever you are about to encrypt
plaintext data which was obtained after having sent over the wire the
previous encrypted block.

I need clarification on this. My current setup are two devices which communicate with each other using a command/answer scheme (master and slave). The slave has a true random number generator.

My idea is, that the master requests an IV from the slave which it then uses to encrypt a command. The slave decrypts the command and then uses the last ciphertext of the command as an IV for its encryption, basically seeing command and answer as a continuous stream. After transmitting the answer, the slave creates a new IV which can then again be requested by the master.

Is this safe? Thanks!

Gas usage for 1155 vs 721a

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