Open xprazak2 opened 8 months ago
@xprazak2 thanks for the insights! You have good points.
The key type is responsible for holding the key bytes and PublicKeyField knows how to de/serialize itself. Your thoughts?
I think this is good idea, lets do it!
I followed the approach outlined in https://github.com/hyperledger/aries-vcx/issues/1163#issue-2202258364
PublicKeyField
in favour of bytesI do not think that this is really an improvement since it has its own downsides:
VerificationMethod
is now responsible for implementing how to serialize other type - key should know how to serialize itselfSo I think we might go from:
to something like:
The key type is responsible for holding the key bytes and
PublicKeyField
knows how to de/serialize itself. Your thoughts?