mirror of
https://github.com/amark/gun.git
synced 2025-06-06 06:06:50 +00:00
no subtleossl
This commit is contained in:
parent
9ddf13620c
commit
a6cf6218fd
@ -85,6 +85,10 @@ ul, li {
|
||||
.rim {
|
||||
margin: 2%;
|
||||
}
|
||||
.gap {
|
||||
padding: 3%;
|
||||
}
|
||||
|
||||
.loud {
|
||||
font-size: 150%;
|
||||
}
|
||||
|
2
sea.js
2
sea.js
@ -485,7 +485,7 @@
|
||||
// Derive shared secret from other's pub and my epub/epriv
|
||||
async derive(pub, { epub, epriv }) {
|
||||
try {
|
||||
const { importKey, deriveKey, exportKey } = subtleossl || subtle
|
||||
const { importKey, deriveKey, exportKey } = wc.ossl || subtle
|
||||
const keystoecdhjwk = (pub, priv) => {
|
||||
const [ x, y ] = Buffer.from(pub, 'base64').toString('utf8').split(':')
|
||||
const jwk = priv ? { d: priv, key_ops: ['decrypt'] } : { key_ops: ['encrypt'] }
|
||||
|
@ -17,6 +17,7 @@
|
||||
<script src="../examples/jquery.js"></script>
|
||||
<script src="../gun.js"></script>
|
||||
<script src="../sea.js"></script>
|
||||
<script src="../lib/then.js"></script>
|
||||
|
||||
<script>
|
||||
var gun = Gun();
|
||||
|
Loading…
x
Reference in New Issue
Block a user