public class DecryptingKeyBag extends Object implements KeyBag
ECKey.KeyIsEncryptedException
will be thrown.Modifier and Type | Field and Description |
---|---|
protected org.spongycastle.crypto.params.KeyParameter |
aesKey |
protected KeyBag |
target |
Constructor and Description |
---|
DecryptingKeyBag(KeyBag target,
org.spongycastle.crypto.params.KeyParameter aesKey) |
Modifier and Type | Method and Description |
---|---|
ECKey |
findKeyFromPubHash(byte[] pubkeyHash)
Locates a keypair from the keychain given the hash of the public key.
|
ECKey |
findKeyFromPubKey(byte[] pubkey)
Locates a keypair from the keychain given the raw public key bytes.
|
RedeemData |
findRedeemDataFromScriptHash(byte[] scriptHash)
Locates a redeem data (redeem script and keys) from the keychain given the hash of the script.
|
protected final KeyBag target
protected final org.spongycastle.crypto.params.KeyParameter aesKey
@Nullable public ECKey findKeyFromPubHash(byte[] pubkeyHash)
KeyBag
findKeyFromPubHash
in interface KeyBag
@Nullable public ECKey findKeyFromPubKey(byte[] pubkey)
KeyBag
findKeyFromPubKey
in interface KeyBag
@Nullable public RedeemData findRedeemDataFromScriptHash(byte[] scriptHash)
KeyBag
findRedeemDataFromScriptHash
in interface KeyBag
Copyright © 2016. All rights reserved.