-
Hello! This may be more of a discussion as it's not technically a bug (or maybe it is?). For CI/CD reasons I'm attempting to reproduce the work that sign_update (2.3.0)
My test exampleUsing Sparkle/sign_update/main.swift Line 71 in a208bd5
Example Go Source
I've tried with a few different libraries now and I get results congruent across libraries, but none match what sign_update give me. Is there some extra special magic going on? Do you have other tools that can reproduce the output of |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
See #2160 and the library we use https://github.com/orlp/ed25519 (particularly notes in Usage section) By the way, the |
Beta Was this translation helpful? Give feedback.
-
Oh perfect! I'll try a standalone integration with that and let you know. |
Beta Was this translation helpful? Give feedback.
-
Well, I've reproduced this standalone with orip/ed25519 and Go's ed25519. I'll keep looking for a bit. |
Beta Was this translation helpful? Give feedback.
-
The project looks like it's unmaintained, but I've filed an issue there for now and will use ( orlp/ed25519#37 ) |
Beta Was this translation helpful? Give feedback.
-
@zorgiepoo Am I correct in guessing the key stored in Keychain is base64 encoded version of an |
Beta Was this translation helpful? Give feedback.
-
Solved. I generate a ed25519 key inside Go:
I use the example code from the issue you linked to convert the Go private key to a lib private key:
To make a Sparkle key:
I pass
When I pass
Unfortunately I've already released an update with an existing EdDSA key pair, so I can't switch over to using this (without appcast monkeying), but hopefully it helps someone. |
Beta Was this translation helpful? Give feedback.
Solved. I generate a ed25519 key inside Go:
I use the example code from the issue you linked to convert the Go private key to a lib private key:
To make a Sparkle key:
I pass
libPrivKey
into theprivBuf
a…