From d3098cccb297bed6a136b9fe75d74388f97b5b7e Mon Sep 17 00:00:00 2001 From: Sean Young <sean.young@monax.io> Date: Tue, 5 Jun 2018 11:59:33 +0100 Subject: [PATCH] local key client does not return curve type This breaks voting: {"caller":"state.go:836","component":"Tendermint","err":"invalid curve type","height":1,"log_channel":"Info","message":"enterPropose: Error signing proposal","module":"consensus","round":0,"run_id":"ae20372c-68ab-11e8-827b-6da5986ff0ad","scope":"tendermint.NewNode","time":"2018-06-05T10:32:03.568661284Z"} Signed-off-by: Sean Young <sean.young@monax.io> --- keys/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keys/server.go b/keys/server.go index 563bf5b5..d8eea559 100644 --- a/keys/server.go +++ b/keys/server.go @@ -121,7 +121,7 @@ func (k *KeyStore) Sign(ctx context.Context, in *pbkeys.SignRequest) (*pbkeys.Si sig, err := key.Sign(in.GetMessage()) - return &pbkeys.SignResponse{Signature: sig}, nil + return &pbkeys.SignResponse{Signature: sig, Curvetype: key.CurveType.String()}, nil } func (k *KeyStore) Verify(ctx context.Context, in *pbkeys.VerifyRequest) (*pbkeys.Empty, error) { -- GitLab