summaryrefslogtreecommitdiff
path: root/48/a680226d5bf7ab34fc0516d997cc8af8ef4823
blob: 6ca0e0306b94d7ea56c0f71e96c3198fb7bb840a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
Return-Path: <prayank@tutanota.de>
Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])
 by lists.linuxfoundation.org (Postfix) with ESMTP id 02EFEC000E
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sat, 14 Aug 2021 01:15:28 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp3.osuosl.org (Postfix) with ESMTP id D2DEC606C7
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sat, 14 Aug 2021 01:15:28 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -0.2
X-Spam-Level: 
X-Spam-Status: No, score=-0.2 tagged_above=-999 required=5
 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001]
 autolearn=ham autolearn_force=no
Authentication-Results: smtp3.osuosl.org (amavisd-new);
 dkim=pass (2048-bit key) header.d=tutanota.de
Received: from smtp3.osuosl.org ([127.0.0.1])
 by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 7v4FQxhcaEN7
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sat, 14 Aug 2021 01:15:24 +0000 (UTC)
X-Greylist: from auto-whitelisted by SQLgrey-1.8.0
Received: from w1.tutanota.de (w1.tutanota.de [81.3.6.162])
 by smtp3.osuosl.org (Postfix) with ESMTPS id 9FF2B60662
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sat, 14 Aug 2021 01:15:23 +0000 (UTC)
Received: from w3.tutanota.de (unknown [192.168.1.164])
 by w1.tutanota.de (Postfix) with ESMTP id 48BDDFA03A3
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sat, 14 Aug 2021 01:15:20 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1628903720; 
 s=s1; d=tutanota.de;
 h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender;
 bh=CKtn9vafhKXhupdVjmqIpNKZGJQnue8RQD4cwgFpABw=;
 b=ZkuM91+2g/kP1bRq+p55DeRxIayMeHbi43HxXMM/fcQ+Wl/X34SDVdWDqvh1L/uV
 zL3dlJpcQSiQV4CeVwBhC6cHQfuYUujc3pnJSU2AChZ/qcELz9mZk6k9K6TkizZz9WC
 FPqmEVk3Eyf5BhLrngJQqYgigbN3XOkjo6cc8bibPgMKYbFhhA7/iTOofhj7yloTghK
 tt7KZN1ukN+y4XGixMLTWRyNE1zcJq+ZYTtYIPgEWxNy+TIvaoU7xvW2DAaR5b1OlDu
 uGxzppVlEKy3i2UgKhT83I2OnaFO+8k55G1srcD11w/ZBH0Xs6mk6o7UFpi5HHosL5f
 erpcAI0XPA==
Date: Sat, 14 Aug 2021 03:15:20 +0200 (CEST)
From: Prayank <prayank@tutanota.de>
To: Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>
Message-ID: <Mh1DZ-N--3-2@tutanota.de>
MIME-Version: 1.0
Content-Type: multipart/alternative; 
 boundary="----=_Part_277476_1543773786.1628903720282"
X-Mailman-Approved-At: Sat, 14 Aug 2021 09:38:22 +0000
Subject: [bitcoin-dev] bitcoin-ps | Desktop application to test Bitcoin Core
 using PowerShell scripts
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>, 
 <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>, 
 <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Sat, 14 Aug 2021 01:15:29 -0000

------=_Part_277476_1543773786.1628903720282
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello World,

I was working on an intern project in last few weeks which is almost ready =
for first release. Will be helpful if devs working on Bitcoin Core and .NET=
 projects related to Bitcoin can share feedback. Pieter Wuille and Luke Das=
hjr had already shared few things before I started working on this project =
which wasn't really positive considering the use of .NET and PowerShell in =
this project. I respect their opinion and agree we could make better applic=
ations however I have tried my best to express the goal I am trying to achi=
eve with this project below.

Project repository:=C2=A0https://github.com/prayank23/bitcoin-ps

Other details about related milestones:=C2=A0https://github.com/BlockchainC=
ommons/Community/discussions/51

Project is inspired by Burp Suite and I want to create a similar applicatio=
n which is only used to test privacy and security of Bitcoin Core RPC using=
 GUI. I used WPF instead of Avalonia right now to save time. I will use it =
in future to make bitcoin-ps cross platform, most of the code will remain s=
ame and I have shared a proof of concept in milestones link above in which =
application works fine on Ubuntu with no pwsh installed. Hopefully this iss=
ue will also be resolved soon:=C2=A0https://github.com/AvaloniaUI/Avalonia/=
issues/4361

Default scripts:

1.CPU_RAM_sendtoaddress.ps1 : Check CPU and RAM usage while using some wall=
et RPCs multiple times. Results for Ubuntu and Windows were interesting. Fo=
r some reason it almost used 100% CPU in Ubuntu.

2.onlynet_i2p.ps1 : Outbound connections are made to onion peers while only=
net=3Di2p is used without any proxy

3.lock_unspent.ps1 : Check if locked UTXOs are unlocked on restart

4.custom_change_rbf.ps1: Compares the inputs for Tx1 and Tx2 where Tx1 is R=
BF transaction with 1 input, 2 ouputs (custom change address with label), T=
x2 is replacement transaction

Why PowerShell?

1.I have worked on 2 similar projects in past: A basic application for Offi=
ce 365 admins and support engineers and One project related to Infosec.
2.Testing using different languages locally doesn't impact Bitcoin Core or =
require any changes.
3.Easier to write and devs who use PowerShell scripts in their projects cou=
ld relate to it, find interesting and maybe start contributing to Bitcoin C=
ore.
4.It can be done using bash or maybe python scripts as well. For me using P=
owerShell in this project is like meeting a college friend and exploring ne=
w places.
5.PowerShell Core is open source and works on Linux, Mac etc.

Last but not least, I would like to thank Christopher, Vinay, guests in mee=
tings, other interns and everyone involved in Blockchain Commons. I have le=
arnt lot of new things during internship. Would suggest everyone to start w=
ith 'Learning Bitcoin from the Command Line' if they have recently started =
reading about Bitcoin. I wish I could do more projects, will work on DEX an=
d OfflineTx even after internship ends to complete by end of this year.
--=20
Prayank

A3B1 E430 2298 178F=20
=C2=A0

------=_Part_277476_1543773786.1628903720282
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF-8=
">
  </head>
  <body>
<div>Hello World,<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">I =
was working on an intern project in last few weeks which is almost ready fo=
r first release. Will be helpful if devs working on Bitcoin Core and .NET p=
rojects related to Bitcoin can share feedback. Pieter Wuille and Luke Dashj=
r had already shared few things before I started working on this project wh=
ich wasn't really positive considering the use of .NET and PowerShell in th=
is project. I respect their opinion and agree we could make better applicat=
ions however I have tried my best to express the goal I am trying to achiev=
e with this project below.<br></div><div dir=3D"auto"><br></div><div dir=3D=
"auto">Project repository:&nbsp;https://github.com/prayank23/bitcoin-ps<br>=
</div><div><br></div><div dir=3D"auto">Other details about related mileston=
es:&nbsp;https://github.com/BlockchainCommons/Community/discussions/51<br><=
/div><div><br></div><div dir=3D"auto">Project is inspired by Burp Suite and=
 I want to create a similar application which is only used to test privacy =
and security of Bitcoin Core RPC using GUI. I used WPF instead of Avalonia =
right now to save time. I will use it in future to make bitcoin-ps cross pl=
atform, most of the code will remain same and I have shared a proof of conc=
ept in milestones link above in which application works fine on Ubuntu with=
 no pwsh installed. Hopefully this issue will also be resolved soon:&nbsp;h=
ttps://github.com/AvaloniaUI/Avalonia/issues/4361<br></div><div dir=3D"auto=
"><br></div><div dir=3D"auto">Default scripts:<br></div><div dir=3D"auto"><=
br></div><div dir=3D"auto">1.CPU_RAM_sendtoaddress.ps1 : Check CPU and RAM =
usage while using some wallet RPCs multiple times. Results for Ubuntu and W=
indows were interesting. For some reason it almost used 100% CPU in Ubuntu.=
<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">2.onlynet_i2p.ps1 :=
 Outbound connections are made to onion peers while onlynet=3Di2p is used w=
ithout any proxy<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">3.l=
ock_unspent.ps1 : Check if locked UTXOs are unlocked on restart<br></div><d=
iv dir=3D"auto"><br></div><div dir=3D"auto">4.custom_change_rbf.ps1: Compar=
es the inputs for Tx1 and Tx2 where Tx1 is RBF transaction with 1 input, 2 =
ouputs (custom change address with label), Tx2 is replacement transaction<b=
r></div><div dir=3D"auto"><br></div><div dir=3D"auto">Why PowerShell?<br></=
div><div dir=3D"auto"><br></div><div dir=3D"auto">1.I have worked on 2 simi=
lar projects in past: A basic application for Office 365 admins and support=
 engineers and One project related to Infosec.<br></div><div dir=3D"auto">2=
.Testing using different languages locally doesn't impact Bitcoin Core or r=
equire any changes.<br></div><div dir=3D"auto">3.Easier to write and devs w=
ho use PowerShell scripts in their projects could relate to it, find intere=
sting and maybe start contributing to Bitcoin Core.<br></div><div dir=3D"au=
to">4.It can be done using bash or maybe python scripts as well. For me usi=
ng PowerShell in this project is like meeting a college friend and explorin=
g new places.<br></div><div dir=3D"auto">5.PowerShell Core is open source a=
nd works on Linux, Mac etc.<br></div><div dir=3D"auto"><br></div><div dir=
=3D"auto">Last but not least, I would like to thank Christopher, Vinay, gue=
sts in meetings, other interns and everyone involved in Blockchain Commons.=
 I have learnt lot of new things during internship. Would suggest everyone =
to start with 'Learning Bitcoin from the Command Line' if they have recentl=
y started reading about Bitcoin. I wish I could do more projects, will work=
 on DEX and OfflineTx even after internship ends to complete by end of this=
 year.<br></div><div dir=3D"auto">-- <br></div><div>Prayank<br></div><div d=
ir=3D"auto"><br></div><div dir=3D"auto">A3B1 E430 2298 178F <br></div><div =
dir=3D"auto">&nbsp;<br></div>  </body>
</html>

------=_Part_277476_1543773786.1628903720282--