Skip to content

Commit

Permalink
docs: improved comments in the prologue MASM
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbinth committed Jul 27, 2024
1 parent 828d734 commit 069b265
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions miden-lib/asm/miden/kernels/tx/prologue.masm
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,15 @@ proc.validate_new_account
# => []
end

#! Validates that account procedures match account code commitment.
#! Validates that account procedures match account code commitment and saves procedure information
#! into memory.
#!
#! This is achieved by reading account procedures from AdviceMap and sequentially hashing them
#! before comparing the final hash to the account code commitment. This procedure also populates memory
#! with these account procedures.
#! This is achieved by reading account procedure information from the advice map, saving it into
#! memory, and sequentially hashing them before comparing the final hash to the account code
#! commitment.
#!
#! Information for each saved procedure consists of the procedure's MAST root and the storage
#! offset associated with this procedure.
#!
#! Stack: [CODE_COMMITMENT]
#! Output: []
Expand Down

0 comments on commit 069b265

Please sign in to comment.