Signing error
Closed this issue · 0 comments
gitferry commented
When I ran the code as a whole, there is a Panic error when calling crypto.PrivSign. Logs are:
panic: runtime error: index out of range [4] with length 4
goroutine 21 [running]:
github.com/gitferry/bamboo/crypto.PrivSign(0xc0000965c0, 0x20, 0x20, 0x1787f00, 0x1, 0x0, 0x0, 0x1, 0x0, 0xc0000b0a80, ...)
I'm not sure if there is a similar issue with crypto.PubVerify. Please write a test for that.