PufferFinance / secure-signer

Secure-Signer
https://pufferfinance.github.io/secure-signer/
Apache License 2.0
76 stars 16 forks source link

bug when importing BLS keys #36

Open ladidan opened 1 year ago

ladidan commented 1 year ago

I'm struggling to import an existing BLS key by only providing the keystore.json and the password.txt (no slashing-db), implying the latter will be generated within the enclave.

- Connected to Secure-Signer on port 9001
Error: bls_key_import_route received 500 Internal Server Error response: Err(Failed to parse to T

Caused by:
    0: error decoding response body: missing field `data` at line 1 column 101
    1: missing field `data` at line 1 column 10

I followed the existing documentation. The API docs for this method give further indication, yet do not resolve the problem. It could be related to a 0th indexed key mismatch?!

note: the bug appears to be reproducible after initial feedback from @JasonVranek

JasonVranek commented 1 year ago

@Rakowskiii