solana-nostd-big-mod-exp

Crates.iosolana-nostd-big-mod-exp
lib.rssolana-nostd-big-mod-exp
version0.1.3
sourcesrc
created_at2024-10-21 18:47:06.264243
updated_at2024-11-15 22:46:53.185465
descriptionA more efficient implementation of Big Mod Exp for SVM
homepage
repository
max_upload_size
id1417826
size11,044
Dean 利迪恩 (deanmlittle)

documentation

README

Solana NoStd BigModExp

A more efficient implementation of Big Number Modular Exponentiation for SVM.

Installation

cargo add solana-nostd-big-mod-exp

Features

  • Makes use of MaybeUninit to skip zero allocations
  • Implements a fixed size big_mod_exp_fixed function to avoid heap allocations

Performance

library function CU cost
nostd-big-mod-exp big_mod_exp_fixed 2102
nostd-big-mod-exp big_mod_exp 2122
solana-program big_mod_exp 2151
Commit count: 0

cargo fmt