lnrpc: remove oneof from signrpc.KeyDescriptor

This commit is contained in:
Olaoluwa Osuntokun committed 2018-12-06 16:25:38 -08:00
1 parent 844698048a
commit 273dee607b
3 files changed
+64 -156

No files matched your search

+8 -10
View File
@@ -200,12 +200,11 @@ func (w *WalletKit) DeriveNextKey(ctx context.Context,
}
return &signrpc.KeyDescriptor{
Key: &signrpc.KeyDescriptor_KeyLoc{
KeyLoc: &signrpc.KeyLocator{
KeyFamily: int32(nextKeyDesc.Family),
KeyIndex: int32(nextKeyDesc.Index),
},
KeyLoc: &signrpc.KeyLocator{
KeyFamily: int32(nextKeyDesc.Family),
KeyIndex: int32(nextKeyDesc.Index),
},
RawKeyBytes: nextKeyDesc.PubKey.SerializeCompressed(),
}, nil
}
@@ -223,12 +222,11 @@ func (w *WalletKit) DeriveKey(ctx context.Context,
}
return &signrpc.KeyDescriptor{
Key: &signrpc.KeyDescriptor_KeyLoc{
KeyLoc: &signrpc.KeyLocator{
KeyFamily: int32(keyDesc.Family),
KeyIndex: int32(keyDesc.Index),
},
KeyLoc: &signrpc.KeyLocator{
KeyFamily: int32(keyDesc.Family),
KeyIndex: int32(keyDesc.Index),
},
RawKeyBytes: keyDesc.PubKey.SerializeCompressed(),
}, nil
}