mirror of
https://github.com/amark/gun.git
synced 2025-11-23 22:15:55 +00:00
* feat: create pair with seed, content addressing with shorter hash * feat: create pair using priv/epriv * optimize SEA.pair * feat: globalThis along with window * white labeling * feat: add WebAuthn example and enhance SEA.sign, SEA.verify, SEA check.pub, for WebAuthn support * feat: enhance WebAuthn integration with new put options and improved signature handling * polish SEA.sign and SEA.verify * feat: localize options in SEA.check.pub to enhance security and prevent attacks * fix: correct destructuring of user object to enhance security in SEA * rebuild SEA * feat: support ArrayBuffer as seed for key pair generation in SEA * test: add unit test for hashing ArrayBuffer in SEA * fix: create deterministic key pair from seed * fix: add missing B parameter for ECC curve and implement point validation * feat: add ArrayBuffer support for hashing in SEA and implement corresponding unit test * fix: convert numeric salt to string in PBKDF2 implementation * fix: convert numeric salt option to string in PBKDF2 implementation * improve hashing tests * improve sea.work * rebuild SEA * improve SEA.work and rebuild SEA * enhance SEA encryption handling and improve test coverage for SEA functions --------- Co-authored-by: noname <x@null.com> Co-authored-by: x <x@mimiza.com> Co-authored-by: x <null> Co-authored-by: noname <no@name.com>
20 lines
677 B
HTML
20 lines
677 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src="/gun/gun.js"></script>
|
|
<script src="/gun/sea.js"></script>
|
|
<script>
|
|
var gun = new Gun();
|
|
var user = gun.user();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>WebAuthn Example</h1>
|
|
<button id="create">Create keypass to get public key</button>
|
|
<button id="sign">Sign data using passkey</button>
|
|
<button id="verify">Verify signature of passkey</button>
|
|
<button id="put">Put to self's graph with WebAuthn</button>
|
|
<button id="put-with-pair">Put to self's graph with pair</button>
|
|
<script src="./webauthn.js"></script>
|
|
</body>
|
|
</html> |