EOSIO / eosjs2

Library to talk to the eos api
MIT License
29 stars 21 forks source link

Send binary abi to sign function #42

Closed jeffreyssmith2nd closed 6 years ago

jeffreyssmith2nd commented 6 years ago

Send binary abi to sign function so the integrity of the abi can be verified against the chain.

randytorres commented 6 years ago

@jeffreyssmith2nd @tbfleming Can you share more details on this?

tbfleming commented 6 years ago
export interface SignatureProviderArgs {
  chainId: string;
  requiredKeys: string[];
  serializedTransaction: Uint8Array;
  abis: GetAbiResult[];
}

The abis are in JSON format right now. The need to switch to binary format.

chris-allnutt commented 6 years ago

Instead of deserializing the binary abi to json just send it thru as binary since we can hash

randytorres commented 6 years ago

52