Fillable signing provider that keeps keys in an address‐>secret map

Synopsis

Declared in <script/signingprovider.h>

class FillableSigningProvider
    : public SigningProvider

Base Classes

Name

Description

SigningProvider

An interface to be implemented by keystores that support signing.

Member Functions

Name

Description

AddCScript [virtual]

Add a redeem or witness script.

AddKey [virtual]

Add a private key, deriving its public key.

AddKeyPubKey [virtual]

Add a private key together with its public key.

DeleteMuSig2Session [virtual]

Delete the state stored for a MuSig2 signing session.

GetAllMuSig2ParticipantPubkeys [virtual]

Return all known MuSig2 aggregate pubkeys and their participants.

GetCScript

Look up a script by its script id.

GetCScripts [virtual]

Return the ids of all known scripts.

GetKey

Look up a private key by its key id.

GetKeyByXOnly

Look up a private key by any key id derived from an x‐only pubkey.

GetKeyOrigin [virtual]

Look up the origin information for a key.

GetKeyOriginByXOnly

Look up key origin info by any key id derived from an x‐only pubkey.

GetKeys [virtual]

Return the ids of all known private keys.

GetMuSig2ParticipantPubkeys [virtual]

Return the MuSig2 participant pubkeys for an aggregate pubkey.

GetMuSig2SecNonce [virtual]

Retrieve the MuSig2 secret nonce for a signing session.

GetPubKey

Look up a public key by its key id.

GetPubKeyByXOnly

Look up a public key by any key id derived from an x‐only pubkey.

GetTaprootBuilder [virtual]

Look up the Taproot builder for an output key.

GetTaprootSpendData [virtual]

Look up the Taproot spend data for an output key.

HaveCScript

Report whether a script with the given id is known.

HaveKey [virtual]

Report whether a private key with the given id is known.

SetMuSig2SecNonce [virtual]

Store a MuSig2 secret nonce for a signing session.

Data Members

Name

Description

cs_KeyStore

Mutex guarding the key and script maps.

Protected Type Aliases

Name

Description

KeyMap

Map of key id to private key.

ScriptMap

Map of script id to script.

Protected Member Functions

Name

Description

ImplicitlyLearnRelatedKeyScripts

Record the scripts implied by a public key without persisting them.

Protected Data Members

Name

Description

mapKeys

Map of key id to unencrypted private keys known by the signing provider. Map may be empty if the provider has another source of keys, like an encrypted store.

mapScripts

Map of script id to scripts known by the signing provider.

Non-Member Functions

Name

Description

GetKeyForDestination

Return the CKeyID of the key involved in a script (if there is a unique one).

IsSegWitOutput

Check whether a scriptPubKey is known to be segwit.

ProduceSignature

Produce a script signature using a generic signature creator.

SignPSBTInput

Signs a PSBTInput, verifying that all provided data matches what is being signed.

UpdatePSBTOutput

Updates a PSBTOutput with information from provider.

Derived Classes

Name

Description

LegacyDataSPKM

Manages the minimum data needed to load and migrate a legacy wallet.

Created with MrDocs