sourcenetwork / defradb

DefraDB is a Peer-to-Peer Edge Database. It's the core data storage system for the Source Network Ecosystem, built with IPLD, LibP2P, CRDTs, and Semantic open web properties.
388 stars 39 forks source link

`defradb identity new` returns keys in encoding not supported by defra calls #2770

Closed AndrewSisley closed 2 months ago

AndrewSisley commented 2 months ago

The private key returned from defradb identity new is binary encoded, whereas the defra only accepts hex-encoded identity private keys.

The encoding of the value returned from defradb identity new is also not documented.

shahzadlone commented 2 months ago

Defra cli accepts hex encoded private key (which I believe is a stop gap solution until proper way to pass the key is introduced, i.e. using keyring). @nasdf can confirm perhaps.

The util command can be used to generate a pair and then the user is responsible how to and where to store it, they can store it in their key ring for example

As for the documentation of the encoding of the values, I can document it.