| 35 | } |
| 36 | |
| 37 | void ComputePreFactor(std::string strPassphrase, std::string strSalt, uint256& prefactor) |
| 38 | { |
| 39 | //passfactor is the scrypt hash of passphrase and ownersalt (NOTE this needs to handle alt cases too in the future) |
| 40 | uint64_t s = uint256(ReverseEndianString(strSalt)).Get64(); |
| 41 | scrypt_hash(strPassphrase.c_str(), strPassphrase.size(), BEGIN(s), strSalt.size() / 2, BEGIN(prefactor), 16384, 8, 8, 32); |
| 42 | } |
| 43 | |
| 44 | void ComputePassfactor(std::string ownersalt, uint256 prefactor, uint256& passfactor) |
| 45 | { |
no test coverage detected