Skip to content

Commit

Permalink
feat: add support for EcdsaK256Sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansonhkg committed Dec 19, 2024
1 parent 5fa589c commit 96994c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/constants/src/lib/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,7 @@ export const LIT_CURVE = {
EcdsaK256: 'K256',
EcdsaCaitSith: 'ECDSA_CAIT_SITH', // Legacy alias of K256
EcdsaCAITSITHP256: 'EcdsaCaitSithP256',
EcdsaK256Sha256: 'EcdsaK256Sha256',
} as const;

export type LIT_CURVE_TYPE = keyof typeof LIT_CURVE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ export const getSignatures = async <T>(params: {
if (
sigType !== LIT_CURVE.EcdsaCaitSith &&
sigType !== LIT_CURVE.EcdsaK256 &&
sigType !== LIT_CURVE.EcdsaCAITSITHP256
sigType !== LIT_CURVE.EcdsaCAITSITHP256 &&
sigType !== LIT_CURVE.EcdsaK256Sha256
) {
throw new UnknownSignatureType(
{
Expand Down

0 comments on commit 96994c4

Please sign in to comment.