-
Notifications
You must be signed in to change notification settings - Fork 370
Conversation
we should add some kind of descriptor for "consensus critical" code in the docs. |
We will create a custom annotation (@ConsensusCritical) to put over classes and methods |
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
@@ -87,12 +136,13 @@ | |||
digestTrits); | |||
addressInstance.absorb(digestTrits,0, Curl.HASH_LENGTH); | |||
offset = offsetNext; | |||
} while (++j < instanceTransactionViewModels.size() | |||
} //loop to traverse signature fragments divided between txs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} //loop to traverse signature fragments divided between txs | |
} //loop to traverse signature fragments divided between transactions |
|
||
//verify bundle hash is correct | ||
if (Arrays.equals(instanceTransactionViewModels.get(0).getBundleHash().trits(), bundleHashTrits)) { | ||
//normalizing bundle in preparation for sig verification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//normalizing bundle in preparation for sig verification | |
//normalizing bundle in preparation for signature verification |
@@ -101,23 +151,33 @@ | |||
j++; | |||
} | |||
} | |||
|
|||
//should only be reached after for loop is done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//should only be reached after for loop is done | |
//should only be reached after the above for loop is done |
@@ -51,13 +95,15 @@ | |||
instanceTransactionViewModels.get(0).setValidity(tangle, -1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth adding a comment above that this is where we do the semantic checks?
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
* document bundle validator * bundle validator documentation fixes * Fix grammar Co-Authored-By: GalRogozinski <[email protected]> * Fix sentence Co-Authored-By: GalRogozinski <[email protected]> * Fix Comments * Bundle Validator docs fixes * Update src/main/java/com/iota/iri/BundleValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/BundleValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/BundleValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/BundleValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/BundleValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/BundleValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/BundleValidator.java Co-Authored-By: GalRogozinski <[email protected]> * update bundle validator docs
Description
Adding documentation to bundle validator
Fixes #1107
Type of change