Advanced Bitcoin Scripting - Discussion

i like your effort, and i want to do well here, but this is the third time this issue has happened to me, so here’s some feedback (not to you directly but for the program in general) you might pass on to someone who can do something about it.

<gripe>
speaking candidly doubling my time on courses where i have to locate hidden requirements makes it difficult enough for me that skipping practices for the small sections where things don’t work becomes an option (at least until later).
i’d rather avoid some of the piecemeal solutions, i.e. not sustainable (let alone best practices), i find in the forum, e.g. I haven’t installed a VM in 15 years (not that it’s a bad idea, i just haven’t needed to, and the level of involvement is beyond me at the moment).

Now i understand that a lot of the things developers might need to do would be piecemeal and not best practices; i’ve been there myself.
But to start this program with already half the courses like that implies that they were either not systematically-enough considered beforehand OR just an inevitable part of development, likely a little of both i imagine.

This is forgivable! it IS complicated to set up classes that last. And to the extent that obsolescence is inevitable there’s a simple solution! Just make an overall intro course where students become intimately acquainted with the most commonly encountered environments and their respective vagaries as well as file-structures and global path variables in general so that the less initiated among us aren’t left taking twice as long (which turns what I thought would be a 6 or 7 month program into > a year). …i’m likely missing some other common errors into which people run, but surely there are more expert than I running the fora.

if i were going to use this computer for development, i’d consider it (ok honestly i’m likely going to try a few more things because my personality is a tenacious one, and i might use this computer for development at least initially), but as it is i’m getting paid nothing and will need to eat food pretty soon here in my life, sooooo… hahaha
</gripe>

thanks for considering
in all honesty please keep the suggestions coming if you have them, and if there’s a better place for my gripe to be considered, i’m open to it.
I’ll try the python thing, but i don’t want to save an entirely different user on my computer just to run bitcoin scripts with node, and if i install a VM it’ll be later when i have more time to just troubleshoot machine-specific vagaries, but i’ll see if my old python installation and those other suggestions still work on a mac.

1 Like

getting this error

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent An unknown git error occurred
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\henry\AppData\Local\npm-cache_logs\2021-12-26T06_57_46_215Z-debug-0.log

Do you have git installed?

I installed git and tried again and now i get this error

npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details.
[##################] | reify:ajv: timing reifyNode:node_modules/windows-build-tools/node_modules/resolve Completed in 1862ms

I got it thank you very much!

1 Like

Hello,

I hope that someone can help me. I’m on the multisig section. I tried installing ‘npm install --global windows-build-tools’ but got this instead. Any assistance would be greatly appreciated. - David

Have you tried opening the shell with administrator privileges?

Thank you for responding to my request for assistance. Newbie question: how do I open the shell with administrator privileges on my computer?

  • David

Right click on the icon and open as admin.

Hello Alko89,

Thank you! I was able to open as an administrator. However, once I entered “npm install --global windows-build-tools” into the command line, the following appeared. I’m at a loss. - David

This is fine, it takes a while to install.

1 Like

Hi Alko89,

I did install as an administrator and then followed Filip’s instruction to install bcoin. However, this is what my screen showed:

Did you install git?

Hello Alko89,

It worked. Thank you!

Sincerely,

David

Hello,

Can someone help me? I’m at the ‘Spending a Transaction’ video in the Multisig section. I am following Filip and at timestamp 9:49. However, I get an error that states “Cannot read property ‘fromSecret’ of undefined”.

  • David

It appears something is wrong with the bcoin library.

Hey, I have just tested the fromSecret using the latest node version and bcoin from git and it seems to work on my end. How did you install the bcoin library? :slight_smile:

Hello Alko89,

First, I want to say ‘thank you’ for all your help. When I was first stuck, you provided the instructions to install git, which was never given in this course.

Second, I finally figured out what happened after seeing your response. I didn’t type the write code because Filip’s window was blocking the full line of code. See below. I just used the correct code line and am good to go now:

image

Ohh I see, sorry about that. I’ll let the team know to add this command in the description of the video. I think it was there before but somehow got lost :thinking:

Is there a link or place that shows the entire transaction.js code that Filip created? I’m following the video but had an error. If the entire code was available, it would be easier for me to compare. As you can see, I did code for both signatures (lines 62 and 63).