[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] Re: ~/.monotone/keys , privkey packets
From: |
Timothy Brownawell |
Subject: |
[Monotone-devel] Re: ~/.monotone/keys , privkey packets |
Date: |
Sun, 25 Sep 2005 13:28:05 -0500 |
This (keystore, keypair packets) is now commited in branch
net.venge.monotone.keys . It still should get a db migrate (to remove
the privkey table), which would require that the migrate function have
access to more than just the db.
On Tue, 2005-09-20 at 16:39 -0500, Timothy Brownawell wrote:
> Hi,
>
> I'm trying to implement ~/.monotone/keys/ . Since a privkey without its
> pubkey isn't very useful, I want to make it store key pairs, not lone
> privkeys. In order for this to work, monotone would have to not be able
> to input a private key without its pubkey.
>
> So, I'd like to *replace* the 'privkey' packet type with a 'keypair'
> packet type, which would contain the data for both the privkey and the
> pubkey. Would there be problems with this, like from packet i/o being
> supposed to be backwards-compatable? I can make the packet reader
> translate a pubkey packet immediately followed by a matching privkey
> packet into a keypair packet, if that helps.
>
> I'd also like to switch functions that deal with getting private keys
> from storage to instead get keypairs (things that put private keys to
> storage would have to be switched, and the two should match IMHO).
>
> Tim
>