Skip to content

Commit

Permalink
use null_hash instead of zero variable to avoid conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Taaki committed Dec 8, 2018
1 parent 6432906 commit a7ffe44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/ec_scalar.cpp
Expand Up @@ -41,7 +41,7 @@ ec_scalar::ec_scalar(const ec_secret& secret)
ec_scalar::ec_scalar(uint64_t value)
: valid_(true)
{
secret_ = zero;
secret_ = null_hash;
auto serial = make_unsafe_serializer(secret_.end() - 4);
serial.write_4_bytes_big_endian(value);
}
Expand Down

0 comments on commit a7ffe44

Please sign in to comment.