lnrpc: remove oneof from signrpc.KeyDescriptor
This commit is contained in:
3 files changed
+64
-156
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user