Commit Graph
238 Commits
Author SHA1 Message Date
pharpend 18be0c53f2 fixed blake issue
turned out that i was using an outdated version of vdk_aecrypt in jr. updated
2023-10-07 15:47:59 -06:00
pharpend 16a4bcebba [wip] somehow tx signature confirmation broke blakejs
it's all just so tiresome
2023-10-02 16:56:12 -06:00
pharpend 7d87fd626f start on confirm sign tx thing 2023-10-02 08:20:45 -06:00
pharpend cc72856aa3 msg confirm sends back error if user rejects tx 2023-10-02 07:51:38 -06:00
pharpend f5a267fd43 more cleaning 2023-09-13 22:22:49 -06:00
pharpend 7afd49661d msg confirm message working, need to figure out how to branch reply 2023-09-13 22:22:33 -06:00
pharpend 8ac8f4617b some cleanups 2023-09-13 22:21:42 -06:00
pharpend 927bcf5ab0 delete some junk files 2023-09-10 20:39:30 -06:00
pharpend 0cae93c98a fixed callback issue 2023-09-10 11:42:20 -06:00
pharpend 0f14772302 "confirm message signature" popup not seeing bg message for some reason
further evidence for my belief that this "ask the user about signing things"
feature is unnecessary
2023-09-06 17:20:35 -06:00
pharpend 1cd7c99eaf craig says i need more callbacks 2023-09-04 00:42:47 -06:00
pharpend bcdb71624e add licenses and readmes to some packages 2023-09-03 21:35:24 -06:00
Craig Everett 1a9b12b27c Minor update to docs 2023-08-31 15:59:44 +09:00
pharpend 86710f5b1f add notes file for jex 2023-08-30 21:54:10 -06:00
pharpend d38ccbd83e vdk_aecrypt works, jr can post sale on aegora 2023-08-30 18:40:28 -06:00
pharpend a13878e0b1 HOUSEKEEPING: vdk_aecrypt package installs
Blake was being stupid so I copied the contents of this package directly into
the source of JR, but really this should be its own package. So now doing that
refactoring.
2023-08-30 18:19:53 -06:00
pharpend 976016c5c7 bump jr awcp dep 2023-08-30 18:19:00 -06:00
pharpend b02047d3a9 add some readmes, bump parasite version 2023-08-28 21:20:35 -06:00
pharpend 646e062f9f add install instructions for awcp 2023-08-27 16:42:07 -06:00
pharpend 2b44db1ee7 clean up blake2b external lib 2023-08-27 16:37:04 -06:00
pharpend f9ee10047b update copyright year in AWCP license 2023-08-27 16:05:15 -06:00
pharpend 9f0e83ede8 cleanup awcp package, version bump to 0.2.3 2023-08-27 16:04:30 -06:00
pharpend b3cbbba803 jex no longer uses the github readme for package docs 2023-08-27 16:03:58 -06:00
pharpend b62d29127f begin operation repo cleanup 2023-08-25 20:20:51 -06:00
pharpend c2e4506f8e make comments more polite 2023-08-25 16:52:40 -06:00
pharpend 457be05cbf jr can now post a sale on aegora testnet! 2023-08-14 22:58:40 -06:00
pharpend 4ce8ada26e [wip] tried using tx bytes rather than tx hash, still doesn't work 2023-08-14 12:31:06 -06:00
pharpend b717e2373b [wip] added networkid prefix, still doesn't work 2023-08-14 12:29:19 -06:00
pharpend 29087e0ff0 [wip] trying to get tx sign to work... am now signing the hash instead of the tx data 2023-08-14 12:07:49 -06:00
pharpend b055d7d137 [wip] ironing out bugs in tx signing procedure
this time learned
- need to have tag and version for the return data
- i think i need to sign the hash of the transaction rather than the transaction
2023-08-14 11:57:20 -06:00
pharpend 85c42bf136 ok one problem solved: was adding check bytes in the wrong order 2023-08-14 11:11:37 -06:00
pharpend 30f76048c0 [wip] jex can 'sign' a tx but it's not working for some reason 2023-08-14 11:05:49 -06:00
pharpend e05dd579c6 jr can now make an account on aegora 2023-08-13 14:21:54 -06:00
pharpend 371b45c3d8 [wip] have a different error from blakejs
jr: c_a2w_handler: error from controller Error: blakejs.blake2b is not a function content.ts:70:16
        onErrorCase content.ts:70
        (Async: promise callback)
        c_a2w_handler content.ts:83
        (Async: EventListener.handleEvent)
        c_main content.ts:100
        <anonymous> content.ts:106

tried using browserify on blake

think i need to inject it in the namespace like nacl

so progress
2023-08-12 23:53:38 -06:00
pharpend 907678e163 remove some jex_include files accidentally committed 2023-08-12 22:57:39 -06:00
pharpend d64045f0d7 add vdk_colors and vdk_names libs 2023-08-12 18:19:52 -06:00
pharpend 29defebc2e [wip] adding message signing functionality
Problem is this:

    Uncaught ReferenceError: require is not defined
        <anonymous> moz-extension://b4685fc7-232c-44d9-b653-f51b7c7ea868/dist/jex_include/local-vdk_aecrypt-0.1.0/dist/jex_include/local-blakejs-1.2.1/dist/index.js:1
    index.js:1:13

The issue is that blakejs is written for node and needs to be modified to work
in a browser.

Next task is doing that, but did a ton of work so taking a break
2023-08-12 18:18:03 -06:00
pharpend 6d715612e4 remove some junk files 2023-08-12 15:54:17 -06:00
pharpend 4f73ca4022 [wip] notional code for message signing done 2023-08-12 15:53:21 -06:00
pharpend dac533f136 make comment language more polite 2023-08-12 14:55:38 -06:00
pharpend f054744bbc add vdk_aeser lib (untested) 2023-08-12 13:17:54 -06:00
pharpend b627689133 [wip] jr can now tell the page script about current pubkey 2023-08-12 13:17:41 -06:00
pharpend 315ae9c315 [wip] i forgot to write the s2i function, but progress on showing address to user 2023-08-11 17:40:23 -06:00
pharpend c9f2365aa1 [wip] reorganize README 2023-08-11 14:37:12 -06:00
pharpend 700ee7cc5f remove internal todo list 2023-08-11 12:45:30 -06:00
pharpend fa0a344b3a remove mental disability notes, committed by accident 2023-08-11 12:45:08 -06:00
pharpend 5dd28d9ed4 Remove the scripts I wrote when I was being dumb
Recall that I had the problem of not being able to load NaCl into the context
of my background script.  I thought the problem was some nonsense with the way
"security" works in browser extensions.  There are some contexts where in order
to load a script, you must explicitly specify the SHA-256 or SHA-384 hash of
the script, in base64 notation.  I wrote these scripts for the purpose of
quickly reading a file and spitting out those values, so that I could easily
update the manifest as I was fooling around with the scripts.

It turned out that entire hypothesis was wrong: https://github.com/aeternity/Vanillae/commit/b680336ba464eafe63daafd95002f09e798c09d9

And therefore these scripts are now just junk
2023-08-11 12:40:14 -06:00
pharpend 60f27b4952 [wip] jr addressing: fixed type errors; next thing to do is write serializer lib 2023-08-11 12:39:12 -06:00
pharpend a73da72382 [wip] jr: working on presenting address to user 2023-08-11 12:15:56 -06:00
pharpend 1e80a53051 idiomatically refactoring jr controller
I am trying to copy the Erlang idiom of "calling" another process through a
function call interface. That is, suppose I have two named processes
corresponding to modules `caller` and `callee`

caller.erl:

    foo() ->
        Result = callee:get_some_data(),
        do_something_with(Result).

callee.erl:
    get_some_data() ->
        gen_server:call(?MODULE, get_some_data)

    handle_call(get_some_data, CalleeState) ->
        {Result, NewState} = do_get_some_data(CalleeState),
        {reply, Result, NewState}.

I'm trying to replicate that in JS, because it's definitely the most pleasant
idiom for having different processes "talk" to each other.  This also allows
the callee process to define an API that black-boxes away the internal
messaging structure, thus giving the developer the flexibility to change that
internal messaging structure without breaking the calling code.
2023-08-01 15:15:15 -06:00