Skip to content

Update validation bip#5

Draft
kcalvinalvin wants to merge 1 commit intoutreexo:mainfrom
kcalvinalvin:2024-08-29-update-validation-bip
Draft

Update validation bip#5
kcalvinalvin wants to merge 1 commit intoutreexo:mainfrom
kcalvinalvin:2024-08-29-update-validation-bip

Conversation

@kcalvinalvin
Copy link
Contributor

No description provided.

@kcalvinalvin kcalvinalvin force-pushed the 2024-08-29-update-validation-bip branch 2 times, most recently from e52bc26 to 3825ebb Compare August 30, 2024 08:14
@kcalvinalvin kcalvinalvin force-pushed the 2024-08-29-update-validation-bip branch from 3825ebb to 5c7afa0 Compare August 30, 2024 08:18
@kcalvinalvin kcalvinalvin changed the title Updatea validation bip Update validation bip Aug 30, 2024
@@ -65,7 +65,7 @@ string, it's "5574726565786f5631". (The resulting 64 byte output is
5b832db8ca26c25be1c542d6cceddda8c145615cff5c35727fb3462610807e20ae534dc3f64299199931772e03787d18156eb3151e0ed1b3098bdc8445861885)
Copy link
Member

@Davidson-Souza Davidson-Souza Sep 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems right

$ echo -n UtreexoV1 | sha512sum 

5b832db8ca26c25be1c542d6cceddda8c145615cff5c35727fb3462610807e20ae534dc3f64299199931772e03787d18156eb3151e0ed1b3098bdc8445861885

variations here will result in Utreexo nodes with incompatible proofs.

##### Provably unspendable transaction outputs
## Provably unspendable transaction outputs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section and the one below it should be inside the previous one, no? Like three # since this lists the outputs that are excluded.

defined in bip ???. Deletions are order-independent.
2: Batch add all non-excluded outputs in the order they're included in the
Bitcoin block.
1. Verify that the UTXOs that were spent in the block. Raise error if the verification fails.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This phrase sounds weird. It tells us to validate the scripts for transactions spending those outputs?


#### Hash function
## Hash function
The leaf data is hashed with SHA-512/256, which gives us a 32 byte hash.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should have a link to a benchmark here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants