fix crypto.go for 2 issues:#6
Conversation
1) add a SHA3-256 hash of the message before passing it to be signed for the input fulfillment 2) use base64url encode, instead of base58 encode, to the resulting fulfillment string after it is signed
|
Great @pckwan - I ran the test and indeed its fixed. |
|
Thanks @jellevdp for the testing and review. |
|
@pckwan Thank you for making this patch! However, in my environment, "400 Bad Request response" occurs even after applying this patch. (Example) |
|
It is probably related to the IPDB endpoint, try https://test.ipdb.io//api/v1/transactions?mode=sync |
|
Awesome! It works! Currently, I quickly configured Bigchain DB in the local environment based on Docker by referring to the URL below. I first used js-bigchaindb-driver to see if "bigchaindb/bigchaindb:all-in-one" is the problem, and that js driver worked fine. So I knew if there were still less resolved issues in go-bigchaindb-driver. If so, is "bigchaindb/bigchaindb:all-in-one" a problem? I would be very grateful if you could tell me more about the IPDB endpoint. |
the input fulfillment
fulfillment string after it is signed