Module key_arithmetic

Source

Functionsยง

add_private_keys
Add private keys Input keys must be 32 bytes
add_public_keys
Add two public keys Input keys must be 33-byte compressed secp256k1 public keys
apply_public_key_tweak
last_key_with_target
Last key with target Tweaks the given keys so their sum equals the target
subtract_public_keys
Subtract public keys Input keys must be 33-byte compressed secp256k1 public keys
subtract_secret_keys
Subtract private keys Input keys must be 32 bytes
sum_private_keys
Sum of private keys Returns the sum of the given private keys modulo the curve order