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
33e45d97
Commit
33e45d97
authored
Mar 17, 2022
by
cf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed gm
parent
47fb8d59
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
package.json
package.json
+1
-1
zswjs-key-conversions.ts
src/zswjs-key-conversions.ts
+15
-1
No files found.
package.json
View file @
33e45d97
{
{
"name"
:
"
zswjs
"
,
"name"
:
"
zswjs
"
,
"version"
:
"1.3.
1
"
,
"version"
:
"1.3.
2
"
,
"description"
:
"中数文API"
,
"description"
:
"中数文API"
,
"main"
:
"dist/index.js"
,
"main"
:
"dist/index.js"
,
"scripts"
:
{
"scripts"
:
{
...
...
src/zswjs-key-conversions.ts
View file @
33e45d97
...
@@ -8,9 +8,23 @@ export { PrivateKey } from './PrivateKey';
...
@@ -8,9 +8,23 @@ export { PrivateKey } from './PrivateKey';
export
{
PublicKey
}
from
'./PublicKey'
;
export
{
PublicKey
}
from
'./PublicKey'
;
export
{
Signature
}
from
'./Signature'
;
export
{
Signature
}
from
'./Signature'
;
interface
Options
{
type
:
string
;
prime
:
string
|
null
;
p
:
string
;
a
:
string
;
b
:
string
;
n
:
string
;
hash
:
any
;
gRed
:
boolean
;
g
:
any
;
// ?
beta
?:
string
|
undefined
;
lambda
?:
string
|
undefined
;
basis
?:
any
;
// ?
}
const
SM2_PARAMS
:
curves
.
PresetCurve
.
Options
=
{
const
SM2_PARAMS
:
curves
.
PresetCurve
.
Options
=
{
type
:
'
SM2
'
,
type
:
'
short
'
,
prime
:
null
,
prime
:
null
,
p
:
'FFFFFFFE FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFFFFFF'
,
p
:
'FFFFFFFE FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFFFFFF'
,
a
:
'FFFFFFFE FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFFFFFC'
,
a
:
'FFFFFFFE FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFFFFFC'
,
...
...
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