62 Commits

Author SHA1 Message Date
noname
93ba2115c4 optimize SEA.pair 2025-01-26 12:14:02 +07:00
noname
7e254ae13f feat: create pair using priv/epriv 2025-01-26 12:10:38 +07:00
noname
6be276afe7 feat: create pair with seed, content addressing with shorter hash 2025-01-25 21:43:16 +07:00
Mark Nadal
638c2c3c23 have unbuild function wrap to prevent scope leaks & allow RETURN hehehe so I can reject @bmatusiak 's lS change O:) O:) I love you you're a hero!
later with @bmatusiak check sea.then for '../gun.js' vs '../' vs ...
note: src/index -> core.js
TODO: something about WebRTC candidates hitting ack decrement limits?
2024-01-17 10:13:00 -08:00
Dimitris Apostolou
9e616ea3a9
Fix typos (#1299) 2023-02-25 17:09:54 -08:00
I001962
d06359f45c
SEA - Update sea.work to support hex (#1266)
This was would encode to hex:
```var data = "hello world";
var hash1 = await SEA.work(data, null, null, {name: "SHA-256",encode:
"hex"});
```
but this would not verify correctly:
gun.get('#').get(hash1).put(data);

This PR will first check base64 (current functionality) and if it fails now it will fall back and check hex.
2022-08-09 15:24:29 -07:00
Bradley Matusiak
de46cccc1e
Unbuild update (#1248)
* unbuild gun

* unbuild sea
2022-06-03 12:27:38 -07:00
Bradley Matusiak
e3eaf5e268
Allow {pair.pub} to login with pass (#1233)
* Update sea.js

* Update auth.js

* Update sea.js

* Update auth.js

* Update rs3.js

* added test for login via {pub}

* gh page build
2022-04-29 16:26:26 -07:00
Mark Nadal
b8450ceab9 Cleaner installs, more compatible environments 2021-08-25 21:27:25 -07:00
Mark Nadal
cd45008433 unbuild sea 2021-08-21 21:27:00 -07:00
Hadar Rottenberg
d681c5ca91 Merge remote-tracking branch 'origin/master' into pr/sirpy/12 2020-05-21 22:05:19 +03:00
Mark Nadal
985cfa2b4d build/unbuild 2020-05-01 19:13:13 -07:00
Hadar Rottenberg
5016298b45 fix: typo 2020-02-12 21:17:15 +02:00
Hadar Rottenberg
a72342431f add: update to use webview-crypto 2020-02-12 09:54:04 +02:00
Hadar Rottenberg
fd26e39acc Merge branch 'master' of https://github.com/amark/gun into amark-master 2020-02-09 22:28:42 +02:00
Hadar Rottenberg
dab91974c1 add: decrypt opposite of secret 2020-01-13 13:00:51 +02:00
Hadar Rottenberg
f287887e87 fix: force use of isomorphiccrypto on react-native 2020-01-07 15:32:22 +02:00
Hadar Rottenberg
4619e57968 fix: unknown issue where global S object is modified, then sign doesnt work 2020-01-06 15:34:58 +02:00
sirpy
512d2c8c32
add: wait for once, so data is returned on first get (#6)
* add: wait for once, so data is returned on first get

* Update then.js
2019-12-08 17:49:48 +02:00
sirpy
29ed57e955
react native support (#5)
* WIP: use isomorphic-webcrypto for RN

* WIP: expo friendly exports

* WIP: buffer for RN

* WIP: textencoder for RN

* WIP: aeskey from jwk instead of raw for RN

* fix: missing taglength for msrcrypto

* add: update isomorphic-webcrypto

* add: match isocrypto api

* add: failing test for 4e2 as 400

* fix: remove extra atob btoa

* add: sea unbuild

* refactor: according to mhelander review

* refactor: shorter require

* fix: make bug test pass, capitlize bug test.

* fix: npm ci + sea test

* add: restore old browser export and add react-native friendly exports

* fix: import buffer into correct global/window

* fix: bad comparison

* fix: only include buffer if no btoa/atob
2019-12-08 17:41:26 +02:00
Hadar Rottenberg
b2709e2eb7 fix: only include buffer if no btoa/atob 2019-11-29 11:42:47 +02:00
Hadar Rottenberg
ef49a73e4a fix: bad comparison 2019-11-21 09:12:56 +02:00
Hadar Rottenberg
5172c38913 fix: import buffer into correct global/window 2019-11-21 08:29:40 +02:00
Hadar
8e7a5369cc refactor: according to mhelander review 2019-09-21 23:09:32 +03:00
Hadar
a6fc7fd5c5 add: sea unbuild 2019-09-18 00:22:10 +03:00
Hadar
6d798a136f Merge branch 'master' into rnsupport 2019-09-17 23:41:30 +03:00
Mark Nadal
99ed43f5c4 console.debug -> console.only & unbuild 2019-09-16 13:59:44 -07:00
Marcus Bernales
cf642b75d1 Brought back new changes 2019-09-14 13:20:21 -07:00
Marcus Bernales
7d7b11f9b8 Reset unnecessary prettier changes 2019-09-14 13:19:27 -07:00
Marcus Bernales
71e0be33f7 Switched to webcrypto 2019-09-14 12:56:48 -07:00
Hadar
0b31971678 WIP: aeskey from jwk instead of raw for RN 2019-09-11 09:46:08 +03:00
sirpy
597bb77a98
fix: Object.assign modiifies S.ecdh which should be static 2019-08-29 10:54:02 +03:00
Mark Nadal
9b820287d6 :( make sure test wasn't false not false positive :( for @go1dfish 2019-05-14 11:01:27 -07:00
Mark Nadal
124d0146c8 fix possible peer leak & add feature for @go1dfish 2019-05-14 00:45:04 -07:00
Mark Nadal
083c1c59f8 visualize memory 2019-05-10 12:47:04 -07:00
Mark Nadal
c5cd72a631 unbuild 2019-01-27 15:03:43 -08:00
Mark Nadal
8b7c963463 HUGE LEAP into THE SEA 2019-01-09 17:34:10 -08:00
go1dfish
cd0b12d1d2
OSSL Memory leak mitigation
Mitigates this leak: https://github.com/PeculiarVentures/node-webcrypto-ossl/issues/136
2019-01-04 06:03:22 -08:00
Mark Nadal
925aff8586 fix SEA shuffle to ignore good GUN data 2019-01-04 04:02:35 -08:00
Mark Nadal
a9aafa18eb monotype / normalize / for future meta editor stuff 2018-12-18 17:05:08 -08:00
Mark Nadal
34c880f1d5
Merge branch 'master' into sea 2018-12-14 14:47:15 -08:00
Levi Roberts
4b43c67e4a Fix for UTF8 fallback
Replicated the signature check in the try throw for base64. Needs verification.
2018-12-14 04:19:08 -06:00
Mark Nadal
ea302a9217 allow signing signed data + only do sign transform if new data from self else verify 2018-12-13 17:00:14 -08:00
Adriano Rogowski
688c9a84f9 SEA - fix typeof 2018-11-21 19:16:56 -02:00
Adriano Rogowski
9c3138a38f Merge https://github.com/amark/gun 2018-11-21 14:50:37 -02:00
Mark Nadal
16e64e1de5 MetaMask start, AXE start, SEA refactor, etc. 2018-11-17 13:17:16 -08:00
Elmar Langholz
c5dae7a1a4 Fix SEA sha1hash for ossl and keyid 2018-10-11 12:26:05 -07:00
rogowski
84557c7a4f
Update index.js
Please @amark confirm if this line (80) is really necessary.
This commit fix the issue #616
2018-10-02 19:42:33 -03:00
rogowski
fffec3cc63
Fixed 'do not handle lexical cursors' 2018-10-02 02:24:06 -03:00
Mark Nadal
c16c41807e fix once, unbuild NAB fix 2018-09-23 01:44:45 -07:00