mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-03 22:03:06 +00:00
replace serilization in key_management secret holder
This commit is contained in:
parent
59e6ee8240
commit
6066554a7a
@ -1,4 +1,3 @@
|
||||
use elliptic_curve::group::GroupEncoding;
|
||||
use elliptic_curve::PrimeField;
|
||||
use k256::{AffinePoint, FieldBytes, Scalar};
|
||||
use rand::{rngs::OsRng, RngCore};
|
||||
@ -105,8 +104,8 @@ impl UTXOSecretKeyHolder {
|
||||
|
||||
let mut hasher = sha2::Sha256::new();
|
||||
|
||||
hasher.update(npk.to_bytes());
|
||||
hasher.update(vpk.to_bytes());
|
||||
hasher.update(serde_json::to_vec(&npk).unwrap());
|
||||
hasher.update(serde_json::to_vec(&vpk).unwrap());
|
||||
|
||||
<TreeHashType>::from(hasher.finalize_fixed())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user