mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-11-28 15:45:51 +00:00
formatting
This commit is contained in:
@@ -160,7 +160,8 @@ const fetchUnl = (url, master_public_key) => {
|
||||
} else {
|
||||
signing_key = secp256k1.keyFromPublic(publicKey, 'hex');
|
||||
const computedHash = createHash("sha512").update(manifest.without_signing_fields).digest().toString("hex").slice(0, 32);
|
||||
assert(signing_key.verify(computedHash, manifest.MasterSignature), "Validation manifest " + idx + " signature verification failed with secp256k1");
|
||||
assert(signing_key.verify(computedHash, manifest.MasterSignature),
|
||||
"Validation manifest " + idx + " signature verification failed with secp256k1");
|
||||
}
|
||||
|
||||
blob.validators[idx].validation_public_key = Buffer.from(blob.validators[idx].validation_public_key, 'hex')
|
||||
|
||||
Reference in New Issue
Block a user