CRYPTO NEWS

How can I pass an array of addresses from one contract into another?

I have a contract A that has a mapping and an array of addresses. I want to pass them into contract B, and perform some calculations with them every time contract B receives money.

How can I do that?

contract A {   mapping (address => uint256) _balances;   address[] internal _holders; }  contract B {   receive () {      for (let i = 0; i < _holders.length; i++) {       if (_balances[_holders[i]] > 100) {          //do something       }     }    } } 

Thank you.

How to break RSA when $c = (secret * e) pmod n $?

In a challenge I participated recently, I was given: $n = p * q$ $e = 463671$ $c = (secret * e) pmod n $ The $e$ has a comment attatched that said "fermat" and nothing more. Maybe it could be decrypted with some Fermat theorem? Note however, that $p$ and $q$ are strong primes::Listen

In a challenge I participated recently, I was given:

$n = p * q$

$e = 463671$

$c = (secret * e) pmod n $

The $e$ has a comment attatched that said "fermat" and nothing more. Maybe it could be decrypted with some Fermat theorem? Note however, that $p$ and $q$ are strong primes and not
close since both are obtained using python’s p = getPrime(2048)

Any ideas?

How can I pass an array of addresses from one contract into another?

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