Chacha derived AEAD algorithms in JSON Object Signing and Encryption
(JOSE)
draft-amringer-jose-chacha-02
https://datatracker.ietf.org/doc/html/draft-amringer-jose-chacha-02
https://github.com/decentralized-identity/didcomm-messaging/issues/187
https://github.com/panva/jose-chacha/issues/1
https://pkg.go.dev/github.com/hyperledger/aries-framework-go/pkg/crypto/tinkcrypto
https://www.googlecloudcommunity.com/gc/Apigee/How-to-decode-the-encrypted-JWE-token-using-the-ECDH-ES-A128KW/m-p/46776
Sunday, December 18, 2022
Early JWE encryption algortihm explorations
How to connect your android device on Linux
https://www.howtoforge.com/tutorial/how-to-connect-your-android-device-on-linux/
Friday, December 16, 2022
Career worries (originally posted in the Veramo Discord and PM) ... I'm adding it to my blog in case I meet a magic person who wants to talk rather than walk
Silly LinkedIN message DM:
On[e] advantage you seem to have is San Francisco. It has a high concentration of capital both intellectual and otherwise. I wish fate would have left me there, but alas not. It has been an uphill battle for me ever since I became interested in late 2011 [referencing stuff like this http://adistributedeconomy.blogspot.com/2012/]. Lots of going it alone and fighting my own thoughts as well as the well-meaning naysayer. Is there anything that you read when you get discouraged? Is there anything that helps you build more courage? Find where the compass points? Faith in God or the Universe? I'm looking into Thinking, Fast and Slow and Principles by Ray Dalio.
Well anyway, I don't want to take too much of your time. I'll be in touch later. I'm not 100% sure you were into the Category Theory explorations. You did leave your e-mail, but you also didn't stay till the end. I made a note of who did, but I can keep you in the loop because to my knowledge Ryan is still up for it. How this plays out I have no idea , but he is incredibly competent and I would be less willing to scratch this itch it I didn't have his friendship and generosity.
Well anyway, Feliz Navidad.
---------------------
Silly LinkedIN message DM:
intellectual talent is a hard thing to gauge..there is talent here..but it is expressed in the same patterns of behavior due to the job options ..maybe from my own biased perspective it seems like every time I see a new startup's website I always see San Francisco written on the bottom.
-------------------------------------
Veramo Discord (because I'm overly transparent):
I went to a meetup last night and there were recruiters sponsoring it .
They were fine. I talked with them to figure out what they were about.
Internal emotion before was crazy, as if I was dissatisfied that I got a
lot of personal satisfaction from trying out interesting problems that
few were doing but I wasn't making money with it. But then my "act of
courage" may have had something to do with me not sleeping last night as
if I drank caffeine too late. Maybe I did. I am not sure. I told
someone privately that I was more the type of person to pursue something
interesting and wind up working in surprising place like Vienna (and
have it not work out) than take a bunch of tests and get a job. The
conversation then evolved to Deep Work (iirc) which after looking up is
just sustained focus on a task . I know I can focus on task for a
prolonged period as I may have proven with my PR but it is like my mind
and body have to be aligned. I cannot do a good job deceiving this
because it flows, almost at a spiritual level. I'm going to stop beating
myself up for not buying 2000ETH for ~$600.0 IRC, oh you could have had
more cushion!, because I know I will vigilantly stay on mission and
drive my finances into the ground before I stray from what I want to see
in the world.
I probably should just get back to work. I realize that what I am doing now does not match the original degree that I went to college for. I looked at the website for these recruiters and realized that what I am doing might be considered Electrical Engineering. I have a B.S. and M.S. in Chemical Engineering, which except for about 8 months as an Adjunct Chemistry Professor I never really pursued a degree with. I largely abandoned formal education many years ago and learn from people in the hobbyist and maker communities. Since these postings are not for my degree I look at them, but think that they are something that I realistically could not be considered for.
I really don't know if you can just build a project and jump in the industry that way. Either it helps you get a job or build a product that can be sold. As far as the need to be a professional engineer by passing the FE exam, working for 4 years at some company, then getting licensed. I don't know about that. (edit for blog post: I find job descriptions like that attractive, but then I shrink back realizing I have the wrong papers). I see people selling stuff on https://www.tindie.com/ all the time, so there must be nothing illegal about doing your own engineering work and then selling it. Maybe it is called something other than engineering, because some say you can only call yourself an engineer if you are licensed. I've tried talking to my university, but I've found the usual experience is that I get tossed from person to person with no real answer. Then there is the story of things getting a little messed up in college, which I think in hindsight ,would have been solved if I just pumped more of my own or loaned funds into coursework. Strong arm things. I think the real answer is just start over at some junior college. It may have been wise to do that when I was an Adjunct Chemistry Professor because I was up there anyway.
Added for this blog post:
I'll add this this that the job in Vienna didn't work out because I had some blind spots in my knowledge. I thought I knew more about Java (it turns out I had an abbreviated book called Java in 24 hours which didn't cover stuff like interfaces and generics and I didn't get that from other programming language knowledge) than I did and I mistook the applicability of my P2P economy writings like http://bshambaugh.org/Master_17.html to the position even though this sort of activity caused me to land the position.
Friday, October 14, 2022
Steps to follow to create and use a local npm module:
Steps to follow to create and use a local npm module:
Create a directory:
mkdir npm-test
Create a package.json file in the directory:
cd npm-test
npm init
follow the steps at the prompt, keep the defalts, maybe add a description and author
If index.js is the entry point listed in package.json (by default, e.g "main":"index.js", create the index.js file:
touch index.js
Edit index.js with your favorite text editor. I am using vim. :
vim index.js
Add the following content within vim as a test :
exports.printMsg = function() {
console.log("This is a message from the demo package.");
}
Create a package with the npm file:
npm pack
unzip the tarball:
tar xzvf test-npm-1.0.0.tgz
In the unzipped package, link to the global package namespace:
cd package
npm link
Create a file folder to call the new npm package:
mkdir test-folder
cd test-folder
Make the npm package available:
npm link test-npm
Use the npm package in a test file:
touch testfile.ts
vim testfile.ts
add to vim: " import * as testy from 'test-npm'
console.log(testy.printMsg) "
convert to js: tsc testfile.ts
run with node: node testfile.js
How to reverse the link:
Remove package in the test-folder:
npm unlink --no-save npm-test
Remove global link to the npm package:
cd npm-test/package/
npm unlink
Sources:
https://docs.npmjs.com/cli/v6/commands/npm-pack
https://medium.com/@debshish.pal/publish-a-npm-package-locally-for-testing-9a00015eb9fd
https://www.cyberciti.biz/faq/unpack-tgz-linux-command-line/
https://medium.com/@alexishevia/the-magic-behind-npm-link-d94dcb3a81af
Wednesday, September 21, 2022
Audio Level Indicator . Log DB LM3915 fed by LF353 for S-meter?
&
https://www.mouser.com/datasheet/2/405/lm3915-443929.pdf
& https://www.ti.com/lit/ds/symlink/lf353-n.pdf
https://www.youtube.com/watch?v=jllsqRWhjGM (EEVblog #490 - Peak Detector Circuit --- feed to lm3915 for led bar display (s-meter))
use caps with low dielectric adsorption: http://danssmallpartsandkits.net/ (polystyrene caps)
https://www.youtube.com/watch?v=Fn5kHhNRsz0 (#77: Op Amp Peak Detector Tutorial, with peak detector basics)Why?
http://www.ozqrp.com/docs/MST3_manual_V1.pdf (mostly analog radio)
--> http://www.ozqrp.com/docs/LED_S_meter_manual_V1_0.pdf (S-Meter)
My mind also wandered to the digital to signal processing realm:
https://www.analog.com/media/en/technical-documentation/data-sheets/ad9226.pdf (Analog to Digital)
https://wiki.sipeed.com/hardware/en/tang/Tang-Nano-9K/Nano-9K.html (Digital Signal Processing)
https://www.analog.com/media/en/technical-documentation/data-sheets/2604fd.pdf (Digital to Analog) --- to 50MhZ
https://www.youtube.com/watch?v=ZZJekllYUVc (R2R resistor ladder to 25MHz)ADC w/ FPGA (https://www.youtube.com/watch?v=cvdzEQhLpYw)
VLSI Project || DAC( Digital to Analog Converter) interfacing with FPGA using SPI || SPARTAN 3E (https://www.youtube.com/watch?v=CPGX-Kdvx9s)
-----------------------------------------------------------------------------------------------------------------------------
Addendum:
https://www.elprocus.com/analog-to-digital-converter/
Oddly I found myself thinking about FPGAs, here are my findings... (tldr....you can try obtaining ZKP BLS12_381 curves)
As I was studying for my HAM radio general exam, my brain wondered. I thought about digital filtering, which led me to https://www.youtube.com/watch?
Realizing the limitations of this I soon found myself on https://www.youtube.com/watch?
Naturally the next morning this led to exploration of https://identity.foundation/
https://www.youtube.com/watch?
https://riscv.org/wp-content/
I also found bls12_381 on an FPGA: https://dspace.mit.edu/
This bls12_381 on FPGAs also led to discovery of work by the ZCash Foundation: https://github.com/
ice40 playlist:
https://www.youtube.com/watch?
https://www.youtube.com/watch?
https://www.youtube.com/watch?
https://www.youtube.com/watch?
(I found that this was still available, later in exploration: https://tinyvision.ai/) --- ditto for tinyFPGA (https://tinyfpga.com/)
Tang Nano from Gowin Semi:
https://github.com/gowinsemi (Github)
https://www.youtube.com/
https://wiki.sipeed.com/
https://www.youtube.com/watch?
https://www.youtube.com/watch?
https://www.youtube.com/watch?
https://www.bananatronics.org/
https://www.cnx-software.com/
General FPGA links:
https://www-
https://www.youtube.com/watch?
https://fpgatutorial.com/
https://www.fpga4student.com/
https://github.com/BrunoLevy/
------------------------------------
Addendum:
https://medium.com/asecuritysite-when-bob-met-alice/explaining-bls12-381-the-zero-knowledge-proof-curve-aa5eabec8261
https://www.youtube.com/watch?app=desktop&v=sOKJWAnrbHM (ARM with FPGA)
Sunday, August 14, 2022
WiFi Manager for connecting the ESP32 to a WiFi Network when you don't know the password
https://www.youtube.com/watch?v=_uXKIEmJh3g
WiFiManager with ESP32 - Stop Hard-coding WiFi Credentials!
I suppose you also could use Bluetooth or even LoRa if you had the transceiver.
LoRa Location Tracking
https://www.rs-online.com/designspark/lora-location-tracker-introduction
https://tinygs.com/
Wednesday, July 27, 2022
random comment about single channel gateway
https://github.com/bshambaugh/BlinkyProject/blob/master/CubeCellandHeltecESP32_try[…]/edgeDevices/ESP32_ToDo/CubeCell_LoRa_To_ESP32_RX_To_NodeJS.ino
https://github.com/bshambaugh/BlinkyProject/blob/master/CubeCellandHeltecESP32_try7/edgeDevices/CubeCell_ToDo/ESP32_To_CubeCell_RX.ino (edited)
Tuesday, July 26, 2022
journal july 26th
Monday, May 2, 2022
String, Char *, and char[]
https://www.geeksforgeeks.org/convert-string-char-array-cpp/
https://www.techiedelight.com/convert-std-string-char-cpp/
https://www.geeksforgeeks.org/char-vs-stdstring-vs-char-c/
Wednesday, February 16, 2022
identity with skynet
Identity with skynet:
https://blog.sia.tech/skyid-how-to-make-decentralized-identity-using-skynet-2b282682f5b3
I wonder if they support verifiable credentials though....I suppose this would require a did method.... does skydb have a computer layer??? would this be needed?
I think something was said about creating a react app, so maybe this is possible.
Wednesday, December 29, 2021
Thoughts about my project (progress, maintainability, productivity)
Reposting from the techlahoma #tech-talk channel
I'm working on my project, but it seems to be taking awhile. I think
about each part and built a small prototype of each part and then I
piece these parts together thinking about the whole.
Does oop help organize all the moving parts so it is easier to rationalize?Maybe
it is how my brain works, but I am basically forced to print my code
out a lot, mark it up with pen,crayon, pencil, compare it to new (and
previous) code that works, and fit it into new code. In graduate school,
I did a lot of procedural programming, and C is a procedural language. I
do print out code that is written in typescript, so to extent it is my
brain.I
think writing tests both in Unity for C and Jest for
typescript/javascript has helped me cover some bases. It hasn't always
been TDD. I think some of the time I have had not but a vague idea of
what I should code, and what libraries I should use, or what parts
should be there. It was this should do this, or this should talk to
this. ...Over time by working through it I discovered I also needed to
do thisValgrind
is a very useful tool for writing C code. It just saved the day today
my reminded me I needed to initialize a struct. After I did this, my
code worked in a much more desirable way. (edited)
I'm definitely coding by code I can find online. It is not always easy
to know all of the code that I need to get small things to work. Some
might call this boilerplate?zI
remember starting out with HTTP requests, and then through discussions
here, switching to websockets. I needed a persistent connection that did
not hang up because I was constantly streaming data out. (if I recall
correctly)My
computer is littered with small programs that I have run or compiled.
Some only have a small change from the next. At times when I have had
the discipline to use Git my organization has improved. (edited)
I do get scenes like this quite a bit. There is nothing quite like
printing stuff out and marking it up, whether it be code, a tutorial, or
documentation.
Sunday, December 12, 2021
Thursday, December 2, 2021
Using Jest Links
Jest Tutorial for Beginners: Getting Started With JavaScript Testing, July 25, 2020 by Valentino Gagliardi
Expect a function to throw an exception in Jest, July 4, 2019 by ecadmin
https://eloquentcode.com/expect-a-function-to-throw-an-exception-in-jest
An Async Example : Jest
https://jestjs.io/docs/tutorial-async#resolves
Jest Partial Match:
https://codewithhugo.com/jest-array-object-match-contain/
Saturday, November 27, 2021
Friday, November 26, 2021
Notes for GitHub
Git Branching, Git Merging:
https://www.varonis.com/blog/git-branching/
How to add a commit to an existing pull request:
https://saraford.net/2017/01/20/how-to-add-changes-to-a-pull-request-after-you-have-already-created-a-pull-request-020/
Add to an existing pull request:
https://github.com/github/hub/issues/198
Committing to someone else's pull request:
https://tighten.co/blog/adding-commits-to-a-pull-request/
(this fails because I do not have access rights)
Monday, November 15, 2021
Heated Board Notes
I like this. It allows me to build a heater with items I already have: https://www.youtube.com/watch?v=WT9xWyLK-Ic
Maybe add this: https://www.youtube.com/watch?v=LXhTFBGgskI to get the control part.
It looks like the heater is good to at least 100 Celsius, or maybe 120 Celsius to push it.
https://www.nanotech-elektronik.pl/index.php/en/info/materials
I did some soldering, and now I have:
I still need to add some lead wires and clean up unwanted solder from the strip traces.
I added some wire:
But I might still have some solder in a gap:
Tuesday, November 9, 2021
SSH or Tokens with GitHub -- because no passwords starting on Aug 13th
For Tokens:
https://techglimpse.com/git-push-github-token-based-passwordless/
For SSH:
Oh, since I viisted Harry's House of Pain while doing this I will share this:
https://gist.github.com/xirixiz/b6b0c6f4917ce17a90e00f9b60566278 [SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)] and honourable mention: https://linuxkamarada.com/en/2019/07/14/using-git-with-ssh-keys/
. I had a problem when I ran git config --global commit.gpgsign true
and had to set it to false git config --global commit.gpgsign false)
Go to: https://github.com/settings/keys
GitHub's Tutorial: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh
Maybe this is useful someday: https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server









