torusresearch / torus-utils-swift

Swift package for fetching shares from torus-nodes
BSD 3-Clause "New" or "Revised" License
4 stars 11 forks source link

fix: generateAddressFromPubKey and tests #69

Closed ieow closed 8 months ago

ieow commented 8 months ago

Removes a lot of unused and redundant code. Fixes private key generation. Fixes generating Ethereum addresses. Properly serializes public key using secp256k1 library instead of helpers. Sorts json keys for signature verification on server. Removes unnecessary complexity from tests. Updates test values from torus;.js Adds missing else case where enableOneKey is true and typeOfUser is v1. Consolidates secp256k1 implementations. etc.

matthiasgeihs commented 8 months ago

Closes #62