NBitcoin/BIP174/PartiallySignedTransaction.cs
/// <summary>
/// Sign all inputs which derive addresses from <paramref name="accountHDScriptPubKey"/> and that need to be signed by <paramref name="accountKey"/>.
/// </summary>
/// <param name="accountHDScriptPubKey">The address generator</param>
/// <param name="accountKey">The account key with which to sign</param>
/// <param name="accountKeyPath">The account key path (eg. [masterFP]/49'/0'/0')</param>
/// <param name="signingOptions">The signature options to use</param>
/// <returns>This PSBT</returns>
Sign all inputs which derive addresses from  and that need to be signed by .
Sign all inputs which derive addresses from and that need to be signed by .
public PSBT SignAll(IHDScriptPubKey accountHDScriptPubKey, IHDKey accountKey, RootedKeyPath? accountKeyPath, SigningOptions signingOptions)
		{
			if (accountKey == null)
				throw new ArgumentNullException(nameof(accountKey));
			if (accountHDScriptPubKey == null)
				throw new ArgumentNullException(nameof(accountHDScriptPubKey));
			accountHDScriptPubKey = accountHDScriptPubKey.AsHDKeyCache();
			accountKey = accountKey.AsHDKeyCache();
			Money total = Money.Zero;
			foreach (var o in Inputs.CoinsFor(accountHDScriptPubKey, accountKey, accountKeyPath))
			{
				o.TrySign(accountHDScriptPubKey, accountKey, accountKeyPath, signingOptions);
			}
			return this;
		}
public PSBT SignAll ( IHDScriptPubKey accountHDScriptPubKey , IHDKey accountKey , RootedKeyPath ? accountKeyPath , SigningOptions signingOptions ) { if ( accountKey == null ) throw new ArgumentNullException ( nameof ( accountKey ) ) ; if ( accountHDScriptPubKey == null ) throw new ArgumentNullException ( nameof ( accountHDScriptPubKey ) ) ; accountHDScriptPubKey = accountHDScriptPubKey . AsHDKeyCache ( ) ; accountKey = accountKey . AsHDKeyCache ( ) ; Money total = Money . Zero ; foreach ( var o in Inputs . CoinsFor ( accountHDScriptPubKey , accountKey , accountKeyPath ) ) { o . TrySign ( accountHDScriptPubKey , accountKey , accountKeyPath , signingOptions ) ; } return this ; }
Sign all inputs which derive addresses from  and that need to be signed by .
Sign all inputs which derive addresses from and that need to be signed by .
None
accountHDScriptPubKey
IHDScriptPubKey
The address generator
The address generator
accountKey
IHDKey
The account key with which to sign
The account key with which to sign
accountKeyPath
RootedKeyPath?
The account key path
The account key path
signingOptions
SigningOptions
The signature options to use
The signature options to use