This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
[API] ASCII armor for signatures & pub keys #10
Labels
bug
Something isn't working
enhancement
New feature or request
help wanted
Extra attention is needed
edit
Looks like a lot of this issue is confusion of key types and not understanding all formats
I have spent a little bit of time figuring out the round trip of
RSAPubKey
->Uint8Array
-> 'base64' string.For whatever reason, when
TextEncoder
- and pretty much all of the base64 ->Uint8Array
Array libraries I have found on npm, the returnedUint8Array
has the wrong prototype (TypedArray
) or the Uint8Array is too short (288 vs 299 length).I kind of think there is a base64 encoder/ decoder inside IPFS code somewhere, I just have not found it yet.
In the mean time I have declared the public keys as
Dehydrated Public Keys
and they are merely created like this:plaintext = JSON.stringify([Uint8Array] rsaKeyBytes)
The text was updated successfully, but these errors were encountered: