When the SCRATCHFILE_PARSED event is fired CAN should hash the AST¶
CAN should fire a SCRATCHFILE_PARSED event. When this happens, CAN should make a digest of the AST. CAN will use SHA3-512 digests and will use multihash to encode digests. For now no check needs to be performed around which hashing algorithm is used, as there's only one implemented.
This will happen in the address-note handler
CAN should fully stringify the AST before creating a digest. CAN should normalise the AST before it is hashed. CAN should fire a SCRATCHFILE_ADDRESSED event when a note is hashed
Backlinks¶
- CAN should fire a SCRATCHFILE_ADDRESSED event when a note is hashed
- When the SCRATCHFILE_PARSED event is fired CAN should hash the notes AST. Once the note has been hashed properly a SCRATCHFILE_ADDRESSED event should be fired with an object
{ ast: Node, address: Digest }
as an argument.
- When the SCRATCHFILE_PARSED event is fired CAN should hash the notes AST. Once the note has been hashed properly a SCRATCHFILE_ADDRESSED event should be fired with an object