Mark Nadal
cdca88e60b
clean
2021-08-21 20:03:09 -07:00
Mark Nadal
824319afab
Merge branch 'master' into manhattan
2021-08-21 16:23:45 -07:00
Mark Nadal
f2c8c9a1e8
ack err
2021-08-10 01:06:21 -07:00
mimiza
333dd745f7
SEA.certify wire logic + unit tests ( #1110 )
...
* SEA.certify wire logic + unit tests
* picking white hair
2021-08-10 00:40:46 -07:00
Martti Malmi
b20c156ad4
Update sea.js
...
Same as https://github.com/amark/gun/pull/1062
2021-08-08 15:58:32 +03:00
Mark Nadal
6d44f82997
reverse user random side, add err, update styles, + more
2021-08-01 10:21:03 -07:00
Radu
590ba4a6ff
Bring SEA.certify into manhattan branch ( #1092 )
...
Co-authored-by: Radu Cioienaru <radu@projectmanager.com>
2021-07-28 10:46:22 -07:00
Mark Nadal
55e040b5ef
better ash hash checking
2021-07-21 09:04:18 -07:00
Mark Nadal
1c550918f9
keys are dangerous!
2021-07-12 05:01:52 -07:00
Mark Nadal
03f939ee1c
Update sea.js
2021-07-10 22:31:00 -07:00
Mark Nadal
3c9727ba2f
rad lex once map once
2021-07-02 06:24:03 -07:00
Mark Nadal
ca4196bd75
clean + feature
2021-06-22 15:42:01 -07:00
Mark Nadal
3318e4559a
optionally make auth async
2021-06-02 20:49:59 -07:00
Mark Nadal
7da46d1961
yeah, adapter errors (like out of storage) should not affect sync/networking logic, that was a bad experiment
2021-05-14 18:39:42 -07:00
I001962
4dc672eeb4
Fix safari sea issues ( #1062 )
2021-03-19 13:24:40 -07:00
Yang Hanlin
ae6d5cb6bf
Improvements to automatic redirect on loading SEA module ( #1055 )
...
* Warn on automatic redirect to HTTPS
* Don't redirect to HTTPS on loopback IP addresses
* Check if current location is a local loopback IP address (127.0.0.0/8) and do not redirect
2021-03-04 14:30:41 -08:00
davay
5be57c3fb1
Fix: certificants' pub strings now pass to cert ( #1058 )
...
`certificants.indexOf('*') !== -1` appears to be correct way of using this function. `certificants.includes` may be another option, but it may be too modern for compatibility concern
2021-03-04 14:21:47 -08:00
MIMIZA
1bbc308ceb
fix bug
2020-12-19 01:14:26 +07:00
MIMIZA
6e0a6fe225
SEA.certify: fix bug
2020-12-19 00:24:03 +07:00
MIMIZA
49b2937421
SEA.certify() small bug fix + more unit test
...
There is a small bug and this is a fix for it. More unit tests added.
2020-12-16 15:51:37 +07:00
MIMIZA
0a91b8079b
change SEA.certify() && check.pub()
2020-12-14 15:27:46 +07:00
MIMIZA
e2a92bd61e
small fix
2020-12-14 02:36:50 +07:00
MIMIZA
34d7f6fc70
small fix
2020-12-14 02:28:46 +07:00
MIMIZA
d8d037fc81
SEA.certify: replace RegEx with RAD/LEX. New feature: Path must contain Certificant Pub
...
- RegEx replaced with RAD/LEX
- NEW FEATURE: If LEX has key "?" and lex['?'] contains '*': check if Certificant Pub is in Path
- Unit tests updated
Official doc will be written after this PR is merged.
2020-12-14 02:23:26 +07:00
MIMIZA
4d0bcab3b8
Add Blacklist feature to SEA.certify
...
Now SEA.certify supports Blacklist. For more details, please read doc here: https://gun.eco/docs/SEA#certify
2020-11-23 12:21:48 +07:00
MIMIZA
5ee816191a
Improve SEA check.pub()
2020-11-14 13:44:20 +07:00
MIMIZA
5701b8b581
SEA.certify unit tests
2020-11-07 16:27:08 +07:00
mimiza
c95b99d376
Added a warning console.log to SEA.certify()
2020-10-28 19:38:14 +07:00
mimiza
c686a15980
Small fix
2020-10-27 16:55:22 +07:00
mimiza
04bbfdd2eb
Small fix
2020-10-27 15:44:45 +07:00
MIMIZA
bac237fa89
SEA.certify() completed. SEA check.pub() upgrade completed. Tests passed. Bugs free.
2020-10-27 14:26:11 +07:00
MIMIZA
37da3cc8ea
improve SEA Cert security, still need much improvement in check.pub, unfinished
2020-10-26 23:53:04 +07:00
MIMIZA
be6dcf0f99
improve SEA Cert security, still need much improvement in check.pub, unfinished
2020-10-26 23:48:20 +07:00
MIMIZA
ebe8345090
finished prototyping, but need much refactoring
2020-10-26 15:56:04 +07:00
MIMIZA
80c74d254b
refactoring cert prototype & check.pub, unfinished.
2020-10-24 23:27:53 +07:00
MIMIZA
97bbdd9b74
cert injection && validation done
2020-10-21 01:36:57 +07:00
mimiza
622a252722
prototyping SEA.certify()
2020-10-19 22:53:57 +07:00
Mark Nadal
b4c11f24c7
manhattan sea
2020-09-18 20:54:33 -07:00
MIMIZA
a7bb4a840f
Update sea.js
2020-06-24 10:55:27 +07:00
MIMIZA
feb54f024b
Update sea.js
2020-06-24 10:42:03 +07:00
MIMIZA
e74f4a00e2
Update sea.js
2020-06-24 10:35:21 +07:00
MIMIZA
ef837a1018
alias = alias || pair.pub
2020-06-24 10:26:46 +07:00
MIMIZA
6d8f776200
Fix user.create()
...
BEFORE:
- user.create(pair) --> ~@[object Object]
- (noop == cb) --> callback will never fire because functions can't be compared like this. For example:
```
const a = b = function(){};
a == b // FALSE
```
AFTER:
- user.create(pair) --> ~@pair.pub
- callback is fired
2020-06-22 21:18:24 +07:00
MIMIZA
01cd2050d2
improve sea.js
...
Removed the small try/catch in recall() because there is already a bigger try/catch.
2020-06-22 08:59:39 +07:00
MIMIZA
edc122f63c
Improve user.recall()
...
Wrap JSON.parse() in a try{}catch{}
2020-06-19 12:38:52 +07:00
Mark Nadal
4e61f11fd2
Merge branch 'master' into manhattan
2020-06-18 03:28:04 -07:00
MIMIZA
e88a120a4e
remove console.log
2020-06-15 08:40:00 +07:00
MIMIZA
486184e767
Switch to ancient technique
...
ES6 might not be reliable, so I decided to switch back to ancient JS. Removed spread operator (...args), replaced with "arguments"
2020-06-15 08:32:22 +07:00
Mark Nadal
38fa0df7ff
Merge branch 'master' into manhattan
2020-06-14 16:08:23 -07:00
MIMIZA
823df19593
Fix sea.js issues #962 , #957 , #956
...
BEFORE:
- user.recall() uses alias/pass -> not reliable, only works with auth(alias,pass), doesn't work with auth(pair)
- user.auth(pair, cb) -> cb is not a function
AFTER:
- user.recall() uses pair -> more reliable, works with auth(pair)
- user.auth(pair, cb) -> works
2020-06-13 11:55:19 +07:00