@@ -147,9 +147,9 @@ pub struct Bolt11SendRequest {
147147#[ allow( clippy:: derive_partial_eq_without_eq) ]
148148#[ derive( Clone , PartialEq , :: prost:: Message ) ]
149149pub struct Bolt11SendResponse {
150- /// An identifier used to uniquely identify a payment.
151- #[ prost( bytes = "bytes" , tag = "1" ) ]
152- pub payment_id : :: prost:: bytes :: Bytes ,
150+ /// An identifier used to uniquely identify a payment in hex-encoded form .
151+ #[ prost( string , tag = "1" ) ]
152+ pub payment_id : :: prost:: alloc :: string :: String ,
153153}
154154/// Returns a BOLT12 offer for the given amount, if specified.
155155///
@@ -211,9 +211,9 @@ pub struct Bolt12SendRequest {
211211#[ allow( clippy:: derive_partial_eq_without_eq) ]
212212#[ derive( Clone , PartialEq , :: prost:: Message ) ]
213213pub struct Bolt12SendResponse {
214- /// An identifier used to uniquely identify a payment.
215- #[ prost( bytes = "bytes" , tag = "1" ) ]
216- pub payment_id : :: prost:: bytes :: Bytes ,
214+ /// An identifier used to uniquely identify a payment in hex-encoded form .
215+ #[ prost( string , tag = "1" ) ]
216+ pub payment_id : :: prost:: alloc :: string :: String ,
217217}
218218/// Creates a new outbound channel to the given remote node.
219219/// See more: <https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.connect_open_channel>
@@ -245,16 +245,16 @@ pub struct OpenChannelRequest {
245245#[ allow( clippy:: derive_partial_eq_without_eq) ]
246246#[ derive( Clone , PartialEq , :: prost:: Message ) ]
247247pub struct OpenChannelResponse {
248- /// The channel id of the created channel that user can use to refer to channel.
249- #[ prost( bytes = "bytes" , tag = "1" ) ]
250- pub user_channel_id : :: prost:: bytes :: Bytes ,
248+ /// The local channel id of the created channel that user can use to refer to channel.
249+ #[ prost( string , tag = "1" ) ]
250+ pub user_channel_id : :: prost:: alloc :: string :: String ,
251251}
252252/// Update the config for a previously opened channel.
253253/// See more: <https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.update_channel_config>
254254#[ allow( clippy:: derive_partial_eq_without_eq) ]
255255#[ derive( Clone , PartialEq , :: prost:: Message ) ]
256256pub struct UpdateChannelConfigRequest {
257- /// The hex-encoded local `user_channel_id` of this channel.
257+ /// The local `user_channel_id` of this channel.
258258 #[ prost( string, tag = "1" ) ]
259259 pub user_channel_id : :: prost:: alloc:: string:: String ,
260260 /// The hex-encoded public key of the counterparty node to update channel config with.
@@ -276,9 +276,9 @@ pub struct UpdateChannelConfigResponse {}
276276#[ allow( clippy:: derive_partial_eq_without_eq) ]
277277#[ derive( Clone , PartialEq , :: prost:: Message ) ]
278278pub struct CloseChannelRequest {
279- /// The channel id of the created channel that user can use to refer to channel.
280- #[ prost( bytes = "bytes" , tag = "1" ) ]
281- pub user_channel_id : :: prost:: bytes :: Bytes ,
279+ /// The local `user_channel_id` of this channel.
280+ #[ prost( string , tag = "1" ) ]
281+ pub user_channel_id : :: prost:: alloc :: string :: String ,
282282 /// The hex-encoded public key of the node to close a channel with.
283283 #[ prost( string, tag = "2" ) ]
284284 pub counterparty_node_id : :: prost:: alloc:: string:: String ,
0 commit comments