renamed proofOfWork to DoPOW func. Fixed signing/pow mis-ordering in pubkey encode. Added VerifyPOW func and a test for it.