Python crypto scalar multiplication

目录

使用 PyNaCl 库:

import nacl.bindings

# scalar multiplication: curve25519_key * public
pin_key = nacl.bindings.crypto_scalarmult(curve25519_key, pin_token_bytes)