pub enum HwiResponse {
Enumerate(Vec<HwiEnumeratedDevice>),
GetXpub(HwiGetXpubResponse),
GetDescriptors(HwiGetDescriptorsResponse),
GetKeypool(Vec<HwiGetKeypoolEntry>),
SignTx(HwiSignTxResponse),
SignMessage(HwiSignMessageResponse),
DisplayAddress(HwiDisplayAddressResponse),
Success(HwiSuccessResponse),
Error(HwiError),
}Expand description
An untagged Python HWI-compatible JSON response.
Serialization writes the contained object or array directly, without an enum
name or discriminator. HwiEnumeratedDevice uses type for its device family,
not as a response-variant tag.
Variants§
Enumerate(Vec<HwiEnumeratedDevice>)
Device enumeration records, serialized as an array.
Tuple Fields
0: Vec<HwiEnumeratedDevice>The discovered devices and per-device errors.
GetXpub(HwiGetXpubResponse)
An extended public key response.
Tuple Fields
0: HwiGetXpubResponseThe extended key and any expert-mode fields.
GetDescriptors(HwiGetDescriptorsResponse)
Receive and change output descriptors.
Tuple Fields
0: HwiGetDescriptorsResponseThe account’s descriptor lists.
GetKeypool(Vec<HwiGetKeypoolEntry>)
Bitcoin Core descriptor-import records, serialized as an array.
Tuple Fields
0: Vec<HwiGetKeypoolEntry>The ranged keypool records.
SignTx(HwiSignTxResponse)
A PSBT signing result.
Tuple Fields
0: HwiSignTxResponseThe resulting PSBT and whether its serialization changed.
SignMessage(HwiSignMessageResponse)
A message-signing result.
Tuple Fields
0: HwiSignMessageResponseThe encoded message signature.
DisplayAddress(HwiDisplayAddressResponse)
A device-displayed address.
Tuple Fields
0: HwiDisplayAddressResponseThe returned Bitcoin address.
Success(HwiSuccessResponse)
A management-operation result.
Tuple Fields
0: HwiSuccessResponseThe operation’s reported success flag.
Error(HwiError)
An operation or argument error.