You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d08f598
Browse filesBrowse the repository at this point in the historyBrowse files
committed
perf(mobile): derive keys natively and hash NIP-98 bodies faster
Public key derivation in AccountIdentityStore (publicKeyForNsec, which
runs on every relay auth assertion, and the record read/create paths)
now uses libsecp256k1 instead of pure-Dart nostr.Keys (~7 ms per call
on an iPhone 12 mini). Default agent writes sign natively too.
NIP-98 payload hashing, media upload hashing and NIP-OA preimage hashing
use package:crypto instead of pointycastle SHA256Digest. AOT benchmark on
Mac (pointycastle vs crypto): 1 KB 39.9 us vs 6.6 us (6.1x), 50 KB
1518 us vs 293 us (5.2x), 1 MB 29.6 ms vs 6.1 ms (4.9x), identical output.
Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@buzz.block.builderlab.xyz>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Tom Brow <[email protected]>
0 commit comments