bn8 ecdsa implementation