Skip to content

Conversation

joemphilips
Copy link
Contributor

Previous attempt is in #695

Since the spec has changed drastically, I've been re-writing almost everything from scratch 😭

I swear to myself, from next time, I will never start coding until the spec is fixed.

@joemphilips joemphilips mentioned this pull request Nov 8, 2019
<Optimize>true</Optimize>
<DocumentationFile>bin\Release\NBitcoin.TestFramework.XML</DocumentationFile>
</PropertyGroup>
</Project>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems some .csproj have unwanted line-ending changes

let fingerPrintAndPath = MasterKeyFingerPrints.ToArray().Zip(paths.ToArray(), (m, p) => Tuple.Create(m, p)).ToList()
select Utils.DictionaryFromList<PubKey, Tuple<HDFingerprint, KeyPath>>(pks.ToList(), fingerPrintAndPath);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually some .cs files too, like this

<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>net461;net452;netstandard1.3;netstandard1.1;netcoreapp2.1;netstandard2.0</TargetFrameworks>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove net4xx?

result = new PubKey(v);
return true;
}
catch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks evil, what's the exception type being caught?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of them

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's why it's evil; when I'm sure the author only intended to capture one type

@NicolasDorier
Copy link
Collaborator

I swear to myself, from next time, I will never start coding until the spec is fixed.

Spec never fixed until actually somebody use it :p

@NicolasDorier
Copy link
Collaborator

Can you rebase on master?

@joemphilips joemphilips force-pushed the miniscript_final_version branch from a5dd29b to b7534c1 Compare November 18, 2019 04:26
* fix bug in Correctness.TryAndB
* fix debug format
* There are the case which has same serialization format
 for the script, but we have different ast element representation
 (e.g. `and_v(X,v:Y)` and `v:and_v(X,Y)`)
 So the equality criteria for `Terminal<TPk,TPKh>` must be based on
 its script representation.

}

public PubKey() {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks wrong.

@@ -0,0 +1,7 @@
namespace NBitcoin.Scripting.Descriptor
{
public class CreateDescriptor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for?

@lontivero
Copy link
Contributor

This is an impressive work. What's the plan?

@joemphilips
Copy link
Contributor Author

I suspended this PR until the bitcoin-core decides how they treat Miniscript. (i.e. This PR gets merged or this issue get solved)

It seems that the author is trying to support taproot in Miniscript before it gets merged.
I cannot see when that happen.

@jaonoctus
Copy link

No more updates @joemphilips? Miniscript is now supported in bitcoin core (with some limitations for signing, which the rust crate can handle)

@NicolasDorier NicolasDorier force-pushed the master branch 2 times, most recently from 725a14b to bbcaf18 Compare January 16, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants