Пример #1
0
 public void ShouldAddKeyInfo(PSBT psbt, Key key, uint MasterKeyFingerPrint, KeyPath path)
 {
     for (var i = 0; i < psbt.inputs.Count; i++)
     {
         psbt.AddPathTo(i, key.PubKey, MasterKeyFingerPrint, path);
         Assert.Single(psbt.inputs[i].HDKeyPaths);
     }
     for (var i = 0; i < psbt.outputs.Count; i++)
     {
         psbt.AddPathTo(i, key.PubKey, MasterKeyFingerPrint, path, false);
         Assert.Single(psbt.outputs[i].HDKeyPaths);
     }
 }