BitShares Forum

Main => General Discussion => Topic started by: bhammond604 on May 05, 2017, 02:06:08 pm

Title: Mathematics Behind Bitshares
Post by: bhammond604 on May 05, 2017, 02:06:08 pm
I've looked all over the web for mathematical documentation about Bitshares, specifically the cryptography behind it, but I haven't found much. Is there anyone here familiar with the mathematics of Bitshares who could help me with a project? I'm integrating Bitshares into the Trezor wallet, but I haven't been able to find the resources I need on the mathematical aspects of Bitshares.
Title: Re: Mathematics Behind Bitshares
Post by: Thom on May 05, 2017, 03:05:26 pm
The actual cryptography is the same as Bitcoin's, elliptical curve cryptography AFAIK. A more specific answer I cannot provide.

Ask xeroc who participated in the Trezor sponsored hackfest last year where BitShares demonstrated a basic integration with the Trezor wallet.
Title: Re: Mathematics Behind Bitshares
Post by: svk on May 05, 2017, 04:04:16 pm
The cryptography is exactly the same as Bitcoin', with the one exception of bitshares having a slightly stricter definition of canonicality.

As explained by Xeroc, this is the reason for that:
Quote
Once we ensured that the signature is canonical, we derive the so called recovery paramter. It simplifies the verification of the signature as it links the signature to a single unique public key. Without this parameter, the back-end would need to test for multiple public keys instead of just one. So we derive this parameter, add 4 and 27 to stay compatible with other protocols and have now obtained our signature.

See this post for more details:

https://steemit.com/steem/@xeroc/steem-transaction-signing-in-a-nutshell