Skip to content

improve rrot7 for u8 and u32 - #61

Merged
RobinLinus merged 1 commit into
BitVM:mainfrom
chainwayxyz:optimize-u32-rrot
Apr 19, 2024
Merged

improve rrot7 for u8 and u32#61
RobinLinus merged 1 commit into
BitVM:mainfrom
chainwayxyz:optimize-u32-rrot

Conversation

@Hakkush-07

Copy link
Copy Markdown
Collaborator

This PR improves u32_rrot(i) for i=7, 15, 23, 31 by improving u8_rrot7, u8_extract_1bit, and u32_rrot7 functions.

u32 rrot 7 costs 76 instead of 86
u32 rrot 15 costs 77 instead of 85
u32 rrot 23 costs 77 instead of 87
u32 rrot 31 costs 78 instead of 86

This slightly reduces sha256 script size.

@RobinLinus
RobinLinus merged commit cfbc839 into BitVM:main Apr 19, 2024
@Hakkush-07
Hakkush-07 deleted the optimize-u32-rrot branch April 22, 2024 07:15
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