UNPKG
@yoursunny/webcrypto-ed25519
Version:
latest (0.0.20250208)
0.0.20250208
0.0.20230624
0.0.20221020
0.0.20220904
0.0.20220623
0.0.20220530
Ed25519 Ponyfill & Polyfill for WebCrypto
@yoursunny/webcrypto-ed25519
/
common.js
12 lines
•
287 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
const
Ed25519Algorithm
= {
name
:
"Ed25519"
, };
export
const
C = {
kty
:
"OKP"
,
crv
:
"Ed25519"
,
oid
:
"2b6570"
, };
export
function
isEd25519Algorithm
(
a
) {
return
a ===
Ed25519Algorithm
.
name
|| a.
name
===
Ed25519Algorithm
.
name
; }
//# sourceMappingURL=common.js.map