Skip to content

Commit 317e52b

Browse files
authored
add 0x02 as valid ecdsa key (#428)
1 parent 044cc8a commit 317e52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function isValidBlsPubkey(pubkey: string): boolean {
2020
}
2121

2222
export function isValidWithdrawableBlsAddress(address: string): boolean {
23-
return /^0x01[0]{22}[a-fA-F0-9]{40}$/.test(address);
23+
return /^0x0[12]0{22}[a-fA-F0-9]{40}$/.test(address);
2424
}
2525

2626
export function isValidNonWithdrawableBlsAddress(address: string): boolean {

0 commit comments

Comments
 (0)