Skip to content

Commit

Permalink
chore: up
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Nov 13, 2024
1 parent c2419b9 commit e054127
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/internal/accountDelegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type Calls = readonly {
data?: Hex.Hex | undefined
}[]

type Key_Base<type extends string, properties> = {
type BaseKey<type extends string, properties> = {
expiry: bigint
publicKey: PublicKey.PublicKey
type: type
Expand All @@ -45,9 +45,8 @@ type Key_Base<type extends string, properties> = {
} & Undefined<properties>)
>

export type WebAuthnKey = Key_Base<'webauthn', WebAuthnP256.P256Credential>

export type WebCryptoKey = Key_Base<
export type WebAuthnKey = BaseKey<'webauthn', WebAuthnP256.P256Credential>
export type WebCryptoKey = BaseKey<
'p256',
{
privateKey: CryptoKey
Expand Down

0 comments on commit e054127

Please sign in to comment.