ambula-labs / ambula

A fork from the substrate node template, implementing the Proof of Interaction consensus algorithm.
The Unlicense
1 stars 0 forks source link

Make the keystore available in the signing rpc pallet #26

Closed LcsTen closed 1 year ago

LcsTen commented 1 year ago

These changes make the keystore available in the RPC pallet. In addition, it adds the sign endpoint to sign things using the authority key. To test it, use curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "sign", "params": ["any message"]}' http://localhost:9933/

This PR depends on https://github.com/ambula-labs/ambula/pull/22.

pacokleitz commented 1 year ago

Works for me Screenshot_2023-05-18_19-59-07