Closed matthiasgeihs closed 8 months ago
Just to add more context to this issue. There is actually a discrepancy here between SPM and cocoapods. The secp256k1 for gigabitcoin is not available on cocoapods, the boilertalk secp256k1 is used instead.
The original issue I pointed out here is resolved in #66.
@metalurgical Anything else that is left open in your opinion? If so, please reopen or create a different issue.
In SECP256k1.swift we have implementations of ecdh and signing with pubkey recovery. On the other hand, the secp256k1 library that we use seems to have these functions baked in (see README).
Suggestion
Replace custom implementations of ecdh and signing with pubkey recovery in
torus-utils-swift
with function calls to the corresponding methods of thesecp256k1.swift
library.