NBitcoin/Secp256k1/ECPubKey.cs
/// <summary>
/// The original function name is `secp256k1_ec_pubkey_combine`
/// </summary>
The original function name is `secp256k1_ec_pubkey_combine`
The original function name is ` secp256k1_ec_pubkey_combine `
public static bool TryCombine(Context ctx, IEnumerable<ECPubKey> pubkeys, out ECPubKey? combinedPubKey)
		{
			if (pubkeys == null)
				throw new ArgumentNullException(nameof(pubkeys));
			combinedPubKey = null;
			var qj = GEJ.Infinity;
			foreach (var p in pubkeys)
			{
				qj = qj.Add(in p.Q);
			}
			if (qj.IsInfinity)
				return false;
			combinedPubKey = new ECPubKey(qj.ToGroupElement(), ctx);
			return true;
		}
public static bool TryCombine ( Context ctx , IEnumerable < ECPubKey > pubkeys , out ECPubKey ? combinedPubKey ) { if ( pubkeys == null ) throw new ArgumentNullException ( nameof ( pubkeys ) ) ; combinedPubKey = null ; var qj = GEJ . Infinity ; foreach ( var p in pubkeys ) { qj = qj . Add ( in p . Q ) ; } if ( qj . IsInfinity ) return false ; combinedPubKey = new ECPubKey ( qj . ToGroupElement ( ) , ctx ) ; return true ; }
The original function name is `secp256k1_ec_pubkey_combine`
The original function name is ` secp256k1_ec_pubkey_combine `
ctx
Context
pubkeys
IEnumerable<ECPubKey>
ECPubKey?
out