Skip to content

Commit

Permalink
add origin to publicaccount schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptroger committed Oct 11, 2024
1 parent 016b14b commit 9f33368
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions apps/vault/src/shared/type/domain.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ export const PrivateAccount = z.object({
})
export type PrivateAccount = z.infer<typeof PrivateAccount>

export const PublicAccount = z.object({
id: z.string().min(1),
address: z.string().min(1),
publicKey: hexSchema.refine((val) => val.length === 132, 'Invalid hex publicKey'),
keyId: z.string().min(1).optional(),
derivationPath: z.string().min(1).optional()
})
export const PublicAccount = PrivateAccount.omit({ privateKey: true })
export type PublicAccount = z.infer<typeof PublicAccount>

export const LocalRootKey = z.object({
Expand Down

0 comments on commit 9f33368

Please sign in to comment.