push
github
feat(iota): add keytool sign-raw command (#9868) # Description of change Add keytool sign-raw command so one can sign any bytes, not just iota transactions. This is interesting for custom authenticators for account abstraction ## Links to any relevant issues Fixes #9866 ## How the change has been tested - [x] Basic tests (linting, compilation, formatting, unit/integration tests) - [ ] Patch-specific tests (correctness, functionality coverage) - [x] I have added tests that prove my fix is effective or that my feature works - [ ] I have checked that new and existing unit tests pass locally with my changes ``` iota keytool sign-raw --address 0x<a class=hub.com/iotaledger/iota/commit/111111111504e9350e635d65cd38ccd2c029434c">1111111116a3a480d8947a9ba6a15b215 --data 494f5441 ╭───────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ iotaAddress │ 0x111111111504e9350e635d65cd38ccd2c029434c6a3a480d8947a9ba6a15b215 │ │ rawData │ 494f5441 │ │ publicKey │ ACh7yWm12IxTDeHetzFAl/dtan3MUs/gSreulA5qbnZz │ │ publicKeyHex │ 0x287bc969b52cfe04ab7ae940e6a6e7673 │ │ signatureHex │ 0xf59b9c077649df882a1db8c48fd0ea2c608 │ │ iotaSignature │ APWbnAdyyqhgv3VBLiqzyjR43qgHZJ34gq6j1ITHU/bqr/Y3dxJ+N7QduMSP1mDQUtWyhxeiPmNjMvJzBA6ixggoe8lptdiMUw3h3rcxQJf3bWp9zFLP4Eq3rpQOam52cw== │ ╰───────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ iota ke... (continued)
20 of 21 new or added lines in 1 file covered. (95.24%)
45 existing lines in 16 files now uncovered.214016 of 338616 relevant lines covered (63.2%)
2500073.52 hits per line