diff options
author | Prayank <prayank@tutanota.de> | 2021-08-14 03:15:20 +0200 |
---|---|---|
committer | bitcoindev <bitcoindev@gnusha.org> | 2021-08-14 01:15:28 +0000 |
commit | 4f0aec1ac028cf033a0c18a8ca333a49801e8610 (patch) | |
tree | b5e0ef63c5e680472e0a46ddcf536c29f93c284c | |
parent | 81bb19838fe1433a60c3b383d57300d2e967fbaa (diff) | |
download | pi-bitcoindev-4f0aec1ac028cf033a0c18a8ca333a49801e8610.tar.gz pi-bitcoindev-4f0aec1ac028cf033a0c18a8ca333a49801e8610.zip |
[bitcoin-dev] bitcoin-ps | Desktop application to test Bitcoin Core using PowerShell scripts
-rw-r--r-- | 48/a680226d5bf7ab34fc0516d997cc8af8ef4823 | 204 |
1 files changed, 204 insertions, 0 deletions
diff --git a/48/a680226d5bf7ab34fc0516d997cc8af8ef4823 b/48/a680226d5bf7ab34fc0516d997cc8af8ef4823 new file mode 100644 index 000000000..6ca0e0306 --- /dev/null +++ b/48/a680226d5bf7ab34fc0516d997cc8af8ef4823 @@ -0,0 +1,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: https://github.com/prayank23/bitcoin-ps<br>= +</div><div><br></div><div dir=3D"auto">Other details about related mileston= +es: 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: 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"> <br></div> </body> +</html> + +------=_Part_277476_1543773786.1628903720282-- + |