private static PSBTInput ComposePSBTInput( PSBTInput psbtin, HDKeyPathKVMap hdKeyPaths, PartialSigKVMap partialSigs, UnknownKVMap unknown ) { foreach (var item in hdKeyPaths) { psbtin.HDKeyPaths.Add(item.Key, item.Value); } foreach (var item in partialSigs) { psbtin.PartialSigs.Add(item.Key, item.Value); } foreach (var item in unknown) { psbtin.Unknown.Add(item.Key, item.Value); } return(psbtin); }
private static PSBTOutput ComposePSBTOutput(PSBTOutput output, HDKeyPathKVMap keyPaths, UnknownKVMap unknown) { foreach (var item in keyPaths) { output.HDKeyPaths.TryAdd(item.Key, item.Value); } foreach (var item in unknown) { output.Unknown.TryAdd(item.Key, item.Value); } return(output); }