sodium-friends / sodium-native

Low level bindings for libsodium
MIT License
300 stars 64 forks source link

Add `crypto_tweak_keypair` method and differentiate between `secretKey` and `scalar` #164

Closed chm-diederichs closed 1 year ago

chm-diederichs commented 1 year ago

This PR has 2 goals:

1) a crypto_tweak_keypair method for efficiently computing both the publicKey and scalar when tweaking a scalar_in.

2) clarifies the following distinction:

The output of a tweak operation is specifically a scalar and not a secretKey