VaultId and the removal of GenericIdTypes #337
Labels
development
Standard development
r&d:polykey:core activity 1
Secret Vault Sharing and Secret History Management
Specification
The
VaultId
is the last holdout ofGeneridIdTypes.ts
, this file and associated types and errors should be removed from PK in this PR thus solving #299.VaultId
should be updated to be an Opaque type of Id from js-id.GenericIdTypes.ts
should be completely removed. There should be 3 types total.VaultId
,VaultIdEncoded
andVaultIdString
. Converting fromVaultId
to `vaultIdEncoded should use the encode/decode functions inside the vaults utils.Additional context
GenericIdTypes.ts
#299Tasks
VaultId
to be a Opaque type of Id.parseVaultId
function for validation in the validation utils.VaultId
to do conversions where needed. convert toVaultIdEncoded
when it can be seen by user and GRPC. UseVaultIdString
where string is needed internally.GenericIdTypes.ts
and related tests.The text was updated successfully, but these errors were encountered: