Class PubKeyProvider
Public key objects in descriptors.
public abstract class PubKeyProvider : IEquatable<PubKeyProvider>
- Inheritance
-
PubKeyProvider
- Implements
- Derived
- Inherited Members
Methods
Equals(PubKeyProvider)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PubKeyProvider other)
Parameters
otherPubKeyProviderAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override sealed bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetPubKey(uint, Func<KeyId, Key>)
public PubKey GetPubKey(uint pos, Func<KeyId, Key> privateKeyProvider)
Parameters
Returns
- PubKey
GetPubKey(uint, Func<KeyId, Key>, out RootedKeyPath)
public PubKey GetPubKey(uint pos, Func<KeyId, Key> privateKeyProvider, out RootedKeyPath keyOriginInfo)
Parameters
Returns
- PubKey
IsCompressed()
public bool IsCompressed()
Returns
IsRange()
public bool IsRange()
Returns
NewConst(PubKey)
public static PubKeyProvider NewConst(PubKey pk)
Parameters
pkPubKey
Returns
NewConst(PubKey, bool)
public static PubKeyProvider NewConst(PubKey pk, bool xonly)
Parameters
pkPubKeyxonlybool
Returns
NewConst(TaprootFullPubKey)
public static PubKeyProvider NewConst(TaprootFullPubKey pk)
Parameters
pkTaprootFullPubKey
Returns
NewConst(TaprootInternalPubKey)
public static PubKeyProvider NewConst(TaprootInternalPubKey pk)
Parameters
pkTaprootInternalPubKey
Returns
NewConst(TaprootPubKey)
public static PubKeyProvider NewConst(TaprootPubKey pk)
Parameters
pkTaprootPubKey
Returns
NewHD(BitcoinExtPubKey, KeyPath, DeriveType)
public static PubKeyProvider NewHD(BitcoinExtPubKey extPubKey, KeyPath kp, PubKeyProvider.DeriveType t)
Parameters
extPubKeyBitcoinExtPubKeykpKeyPathtPubKeyProvider.DeriveType
Returns
NewOrigin(RootedKeyPath, PubKeyProvider)
public static PubKeyProvider NewOrigin(RootedKeyPath keyOrigin, PubKeyProvider inner)
Parameters
keyOriginRootedKeyPathinnerPubKeyProvider
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
TryGetPubKey(uint, Func<KeyId, Key>, out RootedKeyPath, out PubKey)
public bool TryGetPubKey(uint pos, Func<KeyId, Key> privateKeyProvider, out RootedKeyPath keyOriginInfo, out PubKey pubkey)
Parameters
posuintderivation index position in case of xpub.
privateKeyProviderFunc<KeyId, Key>In case of the hardened derivation, You must give private key by this argument so that we can derive the child
keyOriginInfoRootedKeyPathoutput keyOriginInfo (optional)
pubkeyPubKeyoutput PubKey