Skip to content

Commit

Permalink
updates and cleanup should be working :)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhatt-jumptrading committed May 22, 2024
1 parent 1fb55ba commit 3b71a42
Show file tree
Hide file tree
Showing 2 changed files with 336 additions and 219 deletions.
2 changes: 1 addition & 1 deletion src/flamenco/runtime/fd_pubkey_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fd_pubkey_derive_pda( fd_pubkey_t const * program_id,
fd_sha256_t sha;
fd_sha256_init( &sha );
for ( ulong i=0UL; i<seeds_cnt; i++ ) {
fd_sha256_append( &sha, *(seeds + i*32UL), 32UL );
fd_sha256_append( &sha, *(seeds + i*32UL), 32UL );
fd_sha256_append( &sha, bump_seed, 1UL );
fd_sha256_append( &sha, program_id, sizeof(fd_pubkey_t) );
fd_sha256_append( &sha, "ProgramDerivedAddress", 21UL ); /* TODO: use marker constant */
Expand Down
Loading

0 comments on commit 3b71a42

Please sign in to comment.