ssbc / ssb-keys

keyfile operations for ssb
36 stars 26 forks source link

Implement and test secp256k1 key generation, signing, and verification #49

Closed ameba23 closed 5 years ago

ameba23 commented 5 years ago

sorry didn't mean to PR to here, this was supposed to stay on the forked copy (its just for proof of concept). Ignore this PR

dominictarr commented 5 years ago

this looks pretty good. I wouldn't merge this until it handles the seed, though. also I think it should have a curve: 'secpk256k1' field.

dominictarr commented 5 years ago

question: I notice the key generation is inside a loop? how many times does it go around on average?

ameba23 commented 5 years ago

question: I notice the key generation is inside a loop? how many times does it go around on average?

on average once. i just tested it 100000 times and it never ran more than once.

here is where this will be continuing for now.

i've got some questions relating to getting a message published with such a signature, but i'll post them on SSB once i've had a better go myself at understanding exactly what im asking.

dominictarr commented 5 years ago

okay

dominictarr commented 5 years ago

I look forward to hearing of your progress!