-
- All Implemented Interfaces:
public final class Descriptor
A output descriptor.
-
-
Constructor Summary
Constructors Constructor Description Descriptor(String descriptor, Network network)
-
Method Summary
Modifier and Type Method Description final Unit
newBip44(DescriptorSecretKey secretKey, KeychainKind keychain, Network network)
BIP44 template. final Unit
newBip44Public(DescriptorPublicKey publicKey, String fingerprint, KeychainKind keychain, Network network)
BIP44 public template. final Unit
newBip49(DescriptorSecretKey secretKey, KeychainKind keychain, Network network)
BIP49 template. final Unit
newBip49Public(DescriptorPublicKey publicKey, String fingerprint, KeychainKind keychain, Network network)
BIP49 public template. final Unit
newBip84(DescriptorSecretKey secretKey, KeychainKind keychain, Network network)
BIP84 template. final Unit
newBip84Public(DescriptorPublicKey publicKey, String fingerprint, KeychainKind keychain, Network network)
BIP84 public template. final Unit
newBip86(DescriptorSecretKey secretKey, KeychainKind keychain, Network network)
BIP86 template. final Unit
newBip86Public(DescriptorPublicKey publicKey, String fingerprint, KeychainKind keychain, Network network)
BIP86 public template. final String
asString()
Return the public version of the output descriptor. final String
asStringPrivate()
Return the private version of the output descriptor if available, otherwise return the public version. -
-
Method Detail
-
newBip44
final Unit newBip44(DescriptorSecretKey secretKey, KeychainKind keychain, Network network)
BIP44 template. Expands to pkh(key/44'/{0,1}'/0'/{0,1}/\*) Since there are hardened derivation steps, this template requires a private derivable key (generally a xprv/tprv).
-
newBip44Public
final Unit newBip44Public(DescriptorPublicKey publicKey, String fingerprint, KeychainKind keychain, Network network)
BIP44 public template. Expands to pkh(key/{0,1}/\*) This assumes that the key used has already been derived with m/44'/0'/0' for Mainnet or m/44'/1'/0' for Testnet. This template requires the parent fingerprint to populate correctly the metadata of PSBTs.
-
newBip49
final Unit newBip49(DescriptorSecretKey secretKey, KeychainKind keychain, Network network)
BIP49 template. Expands to sh(wpkh(key/49'/{0,1}'/0'/{0,1}/\*)) Since there are hardened derivation steps, this template requires a private derivable key (generally a xprv/tprv).
-
newBip49Public
final Unit newBip49Public(DescriptorPublicKey publicKey, String fingerprint, KeychainKind keychain, Network network)
BIP49 public template. Expands to sh(wpkh(key/{0,1}/\*)) This assumes that the key used has already been derived with m/49'/0'/0' for Mainnet or m/49'/1'/0' for Testnet. This template requires the parent fingerprint to populate correctly the metadata of PSBTs.
-
newBip84
final Unit newBip84(DescriptorSecretKey secretKey, KeychainKind keychain, Network network)
BIP84 template. Expands to wpkh(key/84'/{0,1}'/0'/{0,1}/\*) Since there are hardened derivation steps, this template requires a private derivable key (generally a xprv/tprv).
-
newBip84Public
final Unit newBip84Public(DescriptorPublicKey publicKey, String fingerprint, KeychainKind keychain, Network network)
BIP84 public template. Expands to wpkh(key/{0,1}/\*) This assumes that the key used has already been derived with m/84'/0'/0' for Mainnet or m/84'/1'/0' for Testnet. This template requires the parent fingerprint to populate correctly the metadata of PSBTs.
-
newBip86
final Unit newBip86(DescriptorSecretKey secretKey, KeychainKind keychain, Network network)
BIP86 template. Expands to wpkh(key/86'/{0,1}'/0'/{0,1}/\*) Since there are hardened derivation steps, this template requires a private derivable key (generally a xprv/tprv).
-
newBip86Public
final Unit newBip86Public(DescriptorPublicKey publicKey, String fingerprint, KeychainKind keychain, Network network)
BIP86 public template. Expands to wpkh(key/{0,1}/\*) This assumes that the key used has already been derived with m/86'/0'/0' for Mainnet or m/86'/1'/0' for Testnet. This template requires the parent fingerprint to populate correctly the metadata of PSBTs.
-
asStringPrivate
final String asStringPrivate()
Return the private version of the output descriptor if available, otherwise return the public version.
-
-
-
-