def _CreateKeyset(name, purpose, key_type):
 meta = keydata.KeyMetadata(name, purpose, key_type)
 writer = keyczar_dict.DictWriter()
 writer.WriteMetadata(meta)
 czar = keyczar.GenericKeyczar(keyczar_dict.DictReader(writer.dict))
 czar.AddVersion(keyinfo.PRIMARY)
 czar.Write(writer)
 return writer.dict

def _CreateKeyset ( name , purpose , key_type ) : meta = keydata . KeyMetadata ( name , purpose , key_type ) writer = keyczar_dict . DictWriter ( ) writer . WriteMetadata ( meta ) czar = keyczar . GenericKeyczar ( keyczar_dict . DictReader ( writer . dict ) ) czar . AddVersion ( keyinfo . PRIMARY ) czar . Write ( writer ) return writer . dict
constructs a keyczar keyset .