dao-xyz / peerbit

P2P database framework with encryption, sharding and search
https://peerbit.org
Apache License 2.0
194 stars 15 forks source link

`Crypto`: Should `Key` be serializable? #197

Open marcus-pousette opened 1 year ago

marcus-pousette commented 1 year ago

Currently you can not do

@field({type: Key}) 
key: PublicSignKey | PublicKeyEncryptionKey

only

@field({type: PublicSignKey}) 
key: PublicSignKey
marcus-pousette commented 1 year ago

Pros:

Cons: