wallet.proto start #47
1 changed files with 4 additions and 4 deletions
|
@ -21,13 +21,13 @@ message Wallet {
|
|||
|
||||
message Account {
|
||||
message AddressGenerator {
|
||||
just the two listed in the comment just the two listed in the comment
@orblivion can you make these @orblivion can you make these `oneOf`s plz
I thought I thought `oneof` was for fields (and thus types), not values. The only thing I saw for values was an enum, and that's only integers.
Now, if this is valuable enough that schema changes are on the table, an enum may be the way to go.
Now, if this is valuable enough that schema changes are on the table, an enum may be the way to go.
```
enum AddressManagerType {
single_address = 0;
deterministic_chain = 1;
}
```
you're right, i meant enum you're right, i meant enum
if enum doesn't do strings, there are two options. one is to leave it as a string. the other is to have it as an enum but then convert that to a string on save/load. i think leaving it as a string is fine here if enum doesn't do strings, there are two options. one is to leave it as a string. the other is to have it as an enum but then convert that to a string on save/load.
i think leaving it as a string is fine here
If we need to do custom conversion code for the preferences json blob, I could do that here too. If we need to do custom conversion code for the preferences json blob, I could do that here too.
|
||||
message Chain { // TODO - good name?
|
||||
message AddressManager {
|
||||
uint32 gap = 1; // uint64? not sure how big this might get
|
||||
uint32 maximum_uses_per_address = 2 [json_name="maximum_uses_per_address"];
|
||||
}
|
||||
Chain change = 1;
|
||||
string name = 2;
|
||||
Chain receiving = 3;
|
||||
string name = 1;
|
||||
AddressManager change = 2;
|
||||
AddressManager receiving = 3;
|
||||
}
|
||||
|
||||
AddressGenerator address_generator = 1 [json_name="address_generator"];
|
||||
|
|
Loading…
Reference in a new issue
@eukreign can this name field contain any name or is it choosing from a fixed set of options?