TezosKit icon indicating copy to clipboard operation
TezosKit copied to clipboard

Add remote node parsing for increased security

Open simonmcl opened this issue 5 years ago • 0 comments

Addresses: https://github.com/keefertaylor/TezosKit/issues/212

  • Added another parameter to TezosClient and NetworkClient to take a remoteNodeParseURL so that a second server can be used to verify the forged transactions.
  • Changed forgeSignPreapplyAndInject to forgeParseSignPreapplyAndInject and added a parse flow.
  • The returned JSON from the parse will be compared to the operations requested to be sent.
  • Operation will fail if the comparison fails.
  • Change Tez.rpcRepresentation to always return a minimum of "0", as the Node will always replace "" with "0".

simonmcl avatar Jun 30 '20 15:06 simonmcl