kadena-io / kda-tool

CLI interface to the the Kadena blockchain
https://kadena.io/
BSD 3-Clause "New" or "Revised" License
11 stars 1 forks source link

Support legacy YAML format #27

Closed sirlensalot closed 8 months ago

sirlensalot commented 1 year ago

Support legacy format to integrate with Chainweaver and pact CLI tools.

This allows workflows like the following:

  1. Author a safe transfer in Chainweaver that needs three sigs, two offline.
  2. Send legacy YAML from Chainweaver to first kda-tool offline signer. Output is current format.
  3. Send current YAML to second kda-tool offline signer. Output is in current format.
  4. Second signer uses combine-sigs to convert to legacy format and sends to final Chainweaver signer.
  5. Final Chainweaver signer puts YAML in SigBuilder, signs and sends to network.

Note that since combine-sigs accepts both old and new formats, steps 2-5 could happen asynchronously and have a kda-tool user combine outputs and send.

I've tested roundtripping with old and new formats.

sirlensalot commented 8 months ago

Closing because compat doesn't work and not worth fixing