@dashevo/dashcore-lib
Advanced tools
Comparing version 0.18.6 to 0.18.7
@@ -194,8 +194,18 @@ /* eslint-disable */ | ||
$.checkArgument(isSha256(this.quorumHash), 'Expected quorumHash to be a sha256 hex string'); | ||
$.checkArgument(utils.isHexaString(this.signers), 'Expect signers to be a hex string'); | ||
$.checkArgument(utils.isHexaString(this.validMembers), 'Expect validMembers to be a hex string'); | ||
if (this.signers) { | ||
$.checkArgument(utils.isHexaString(this.signers), 'Expect signers to be a hex string'); | ||
} | ||
if (this.validMembers) { | ||
$.checkArgument(utils.isHexaString(this.validMembers), 'Expect validMembers to be a hex string'); | ||
} | ||
$.checkArgument(isHexStringOfSize(this.quorumPublicKey, BLS_PUBLIC_KEY_SIZE * 2), 'Expected quorumPublicKey to be a bls pubkey'); | ||
$.checkArgument(isHexStringOfSize(this.quorumVvecHash, SHA256_HASH_SIZE * 2), `Expected quorumVvecHash to be a hex string of size ${SHA256_HASH_SIZE}`); | ||
$.checkArgument(isHexStringOfSize(this.quorumSig, BLS_SIGNATURE_SIZE * 2), 'Expected quorumSig to be a bls signature'); | ||
$.checkArgument(isHexStringOfSize(this.membersSig, BLS_SIGNATURE_SIZE * 2), 'Expected membersSig to be a bls signature'); | ||
if (this.quorumVvecHash) { | ||
$.checkArgument(isHexStringOfSize(this.quorumVvecHash, SHA256_HASH_SIZE * 2), `Expected quorumVvecHash to be a hex string of size ${SHA256_HASH_SIZE}`); | ||
} | ||
if (this.quorumSig) { | ||
$.checkArgument(isHexStringOfSize(this.quorumSig, BLS_SIGNATURE_SIZE * 2), 'Expected quorumSig to be a bls signature'); | ||
} | ||
if (this.membersSig) { | ||
$.checkArgument(isHexStringOfSize(this.membersSig, BLS_SIGNATURE_SIZE * 2), 'Expected membersSig to be a bls signature'); | ||
} | ||
}; | ||
@@ -202,0 +212,0 @@ |
{ | ||
"name": "@dashevo/dashcore-lib", | ||
"version": "0.18.6", | ||
"version": "0.18.7", | ||
"description": "A pure and powerful JavaScript Dash library.", | ||
@@ -5,0 +5,0 @@ "author": "Dash Core Group, Inc. <dev@dash.org>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3736918
57487