coinbase / mesh-specifications

Specification files for the Mesh Blockchain Standard
Apache License 2.0
324 stars 92 forks source link

Access PublicKeys During Construction #45

Closed patrick-ogrady closed 4 years ago

patrick-ogrady commented 4 years ago

Closes: #43 Additional Context: https://community.rosetta-api.org/t/any-way-to-get-public-key-from-signer-package-before-combine/189

Motivation

In some blockchains, transaction construction requires the PublicKey of some AccountIdentifiers present in a transaction.

Changes

This PR allows a Rosetta implementation to request the PublicKey of any number of AccountIdentifiers in the /construction/preprocess response. The caller can then provide the requested PublicKeys in a call to /construction/payloads so that construction can be completed.