Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zswjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
zswjs
Commits
6ef974ab
Commit
6ef974ab
authored
Mar 17, 2022
by
cf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed gm support
parent
33e45d97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
zswjs-numeric.ts
src/zswjs-numeric.ts
+2
-0
No files found.
src/zswjs-numeric.ts
View file @
6ef974ab
...
@@ -331,6 +331,8 @@ export const stringToPublicKey = (s: string): Key => {
...
@@ -331,6 +331,8 @@ export const stringToPublicKey = (s: string): Key => {
return
stringToKey
(
s
.
substr
(
7
),
KeyType
.
r1
,
publicKeyDataSize
,
'R1'
);
return
stringToKey
(
s
.
substr
(
7
),
KeyType
.
r1
,
publicKeyDataSize
,
'R1'
);
}
else
if
(
s
.
substr
(
0
,
7
)
===
'PUB_WA_'
)
{
}
else
if
(
s
.
substr
(
0
,
7
)
===
'PUB_WA_'
)
{
return
stringToKey
(
s
.
substr
(
7
),
KeyType
.
wa
,
0
,
'WA'
);
return
stringToKey
(
s
.
substr
(
7
),
KeyType
.
wa
,
0
,
'WA'
);
}
else
if
(
s
.
substr
(
0
,
7
)
===
'PUB_GM_'
)
{
return
stringToKey
(
s
.
substr
(
7
),
KeyType
.
gm
,
0
,
'GM'
);
}
else
{
}
else
{
throw
new
Error
(
'unrecognized public key format'
);
throw
new
Error
(
'unrecognized public key format'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment