I forgot to post this yesterday. What did you work on yesterday and what are you working on today?
I've been deep in the weeds of sha256, with Python3, while working on a Python implementation of the DIY Bitcoin Private Key Project In fact, if there's any coders here, maybe you could help me out:
I first want to get to grips with the Python sha256 function, so that I can move on to the more complex operation of generating the 24th BIP0039 seed word, for which I need the first 8 bits of the sha256 check sum that's derived by hashing the entire 256 bit key.
So, the basics first: I don't understand (as an example) why... $ echo R | shasum -a 256 -t ... returns... 13b30eab8afdfab285103004686b2e6140ce53aa45a4f917341c740dfdb6e956 ... while... print(sha256('R'.encode('utf-8')).hexdigest()) ... returns... 8c2574892063f995fdf756bce07f46c1a5193e54cd52837ed91e32008ccf41ac
Once I get this nailed down, I can move on the the more complex task.
reply
With thanks to both @k00b and @039802da15
For anyone following this, the correct cli command would be... echo -n R | shasum -a 256 -t
reply
Echo adds a newline to the output, see https://stackoverflow.com/a/34430808
So your first command is actually hashing "R\n" while the 2nd one is hashing "R"
reply
@k00b and @039802da15 My thanks to you both (a bit of a 'head slap' moment for me!). The cli echo commend is in fact directly from the Bitcoinmagazine feature, so I'm now thinking that it's an incorrect method. Time will tell, because if the checksum is not correct, a Wallet such as Sparrow will not accept the 24 Word Seed. I know that the Electrum Wallet does not do that check (I've tried it), so any random collection of 24 BIP0039 Seed Words will work. Thanks again; back to it :)
reply
echo appends a newline.
>>> print(sha256('R\n'.encode('utf-8')).hexdigest()) 13b30eab8afdfab285103004686b2e6140ce53aa45a4f917341c740dfdb6e956
reply

yesterday

  • I spent the morning having some fun refreshing my photoshop skills. https://snimgs.s3.amazonaws.com/aoc.jpg
  • We had some more discussions around Pleb Garage and the future Pleb House. Capital Factory wants to work with us but I have a feeling it'll be hard for them to understand what we're trying to do.
  • Rewrote and reviewed my Bitcoin Seminar notes. Trying to make them stick.
  • Hacked together a partial fix for an SN UI quirk that has been bugging me since forever (https://github.com/stackernews/stacker.news/issues/40)

today

  • working primarily on https://grepmed.com SEO, job board, and social media sharing link previews
    • if I can't get funding for SN, this is how I might be able to afford my life without giving it to a crypto exchange
  • https://austinbitdevs.com is tonight!
reply
Love it! Tell me, if would, how does one embed a jpg (is it?) file, like you've done here? I used a link to a hosting site, but it seems you're doing something different?
reply
That M<downarrow> you see in the upper right hand corner of comment areas and post areas, links here https://guides.github.com/features/mastering-markdown/
It talks about all the formatting options we use in the comments.
reply
Okay; thanks. I thought that that's what I'd done, but a 'hover' over the image I embedded, shows a link back to the hosting site, which doesn't happen with your embed. I'll try again, the next time I need to do such an operation; I must have messed up somewhere. Peace.
reply
@k00b - is this thread for anyone to highlight what they're working on in their own companies?