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: edge case prefix04 #98

Closed ieow closed 2 weeks ago

ieow commented 4 weeks ago

On edge case when the public key 64bytes (128 char) is start with 04... The addPrefix skip adding prefix. when stripPrefix is called, the public key 04 is striped and only 63 bytes (126 chars) left which made the public key invalid.

Fixing this as patch for v8

metalurgical commented 3 weeks ago

@ieow This has been also been found and fixed in the PR intended for v9 release.

Note: You'll also need to bump the version in the podspec for the intended tag here.