public interface KeyBag
RedeemData objects.| Modifier and Type | Method and Description | 
|---|---|
| ECKey | findKeyFromPubKey(byte[] pubKey)Locates a keypair from the keychain given the raw public key bytes. | 
| ECKey | findKeyFromPubKeyHash(byte[] pubKeyHash,
                     Script.ScriptType scriptType)Locates a keypair from the keychain given the hash of the public key, and (optionally) by usage for a specific
 script type. | 
| RedeemData | findRedeemDataFromScriptHash(byte[] scriptHash)Locates a redeem data (redeem script and keys) from the keychain given the hash of the script. | 
@Nullable ECKey findKeyFromPubKeyHash(byte[] pubKeyHash, @Nullable Script.ScriptType scriptType)
pubKeyHash - hash of the keypair to look forscriptType - only look for given usage (currently Script.ScriptType#P2PKH or
            Script.ScriptType#P2WPKH) or null if we don't care@Nullable ECKey findKeyFromPubKey(byte[] pubKey)
@Nullable RedeemData findRedeemDataFromScriptHash(byte[] scriptHash)