added check on payload, signature in BtcEncode