public VerifyResultDto VerifySignature([FromBody] VerifyReceiptDto verifyReceipt) { var result = EthereumUtils.VerifyReceipts(verifyReceipt); return(new VerifyResultDto { Result = result }); }
public static bool VerifyReceipts(VerifyReceiptDto verifyDto) { var resultHash = Sha3ForReceipts(verifyDto); var ms = new MessageSigner(); var address = ms.EcRecover(resultHash.HexToByteArray(), verifyDto.Signature); return(address == verifyDto.Address); }