Crate bip352

Source
Expand description

This library provides functions for working with sending and receiving Bitcoin Silent Payments according to BIP 352 proposal.

Modules§

address
label
receive
send
Everything for sending Silent Payments.
spend

Structs§

InputHash
InputsHash
InputsTag
The tag used for InputsHash
LabelHash
LabelTag
The tag used for LabelHash
ScanPublicKey
ScanSecretKey
SharedSecret
ECDH shared secret serialized as compressed public key.
SharedSecretHash
SharedSecretTag
The tag used for SharedSecretHash
SilentPaymentOutput
An output that has been detected as a Silent Payment together with all data that are needed to spend it. Wallets should index this.
SpendPublicKey
SpendSecretKey

Enums§

InputHashError

Functions§

input_public_key
Attempts to extract public key from an input and the output it points to. Returns None if public key could not be extracted.