Commit graph

62 commits

Author SHA1 Message Date
Shibo Lyu
77befc142a chore: Release 0.6.0. 2025-04-13 00:55:18 +08:00
Shibo Lyu
24c9032f25 refactor: Refactor key storage to use raw hex format instead of JWK
Change private key representation from JWK to raw hex strings with
appropriate conversion functions. Also update field names to use
consistent naming convention.
2025-04-13 00:54:51 +08:00
Shibo Lyu
4e8a8789d4 chore: Release 0.5.1. 2025-04-12 22:12:57 +08:00
Shibo Lyu
dc5e51602c fix: Verify profile signatures use correct identity key
Add validation to check that profile's signee ID matches identity key.
Includes new test to ensure profiles signed with incorrect keys are
rejected properly.
2025-04-12 22:12:21 +08:00
Shibo Lyu
549162d223 chore: Bump version to 0.5.0 2025-04-12 03:21:50 +08:00
Shibo Lyu
57ecdfec84 chore: Update @std/expect and @std/testing dependencies 2025-04-12 03:21:13 +08:00
Shibo Lyu
249bbf2b54 refactor: Replace key wrapping with manual PKCS8/raw key encryption
Implement utility functions for conversion between Ed25519 raw key data
and PKCS8 format, and update KeyPair encode/decode methods to use direct
encrypt/decrypt operations instead of wrapKey/unwrapKey.
2025-04-12 03:19:18 +08:00
Shibo Lyu
23bd666a6e fix: bump version and add toPlainText export 2025-03-17 01:30:08 +08:00
Shibo Lyu
598ed931e0 fix: array buffer typing 2025-03-11 19:03:48 +08:00
Shibo Lyu
a10a49152e feat(richtext): spoiler 2025-03-11 18:50:10 +08:00
Shibo Lyu
f0edaba656 chore: release 0.4.1
...because I forgot to export richText
2025-02-16 22:47:21 +08:00
Shibo Lyu
5791e31599 chore: release 0.4.0 2025-02-16 22:44:59 +08:00
Shibo Lyu
a270d634f2 feat: richText 2025-02-16 22:44:37 +08:00
Shibo Lyu
36c2184784 chore: bump deps 2025-02-16 21:58:15 +08:00
Shibo Lyu
d31970be78 feat: expose actkey expires at 2024-12-06 00:17:46 +08:00
Shibo Lyu
214ccd90c3 fix: tests 2024-12-05 17:35:45 +08:00
Shibo Lyu
d699b54ff6 fix(identity): validate profile on creating identity 2024-12-05 17:21:15 +08:00
Shibo Lyu
067276e367 feat: require at least 1 id_url in profile 2024-12-05 17:20:39 +08:00
Shibo Lyu
2eb559da7f chore: bump deps 2024-12-05 17:20:12 +08:00
Shibo Lyu
99cdef8987 chore: release 0.3.0 2024-10-31 01:59:02 +08:00
Shibo Lyu
11bd85d4ff deps: upgrade @std/expect 1.0.5 -> 1.0.6 2024-10-31 01:57:50 +08:00
Shibo Lyu
465dfc7b3c fix: janky search & replace causes case error 2024-10-31 01:55:22 +08:00
Shibo Lyu
25bab4374d refactor: identityFile -> identityDescription 2024-10-31 01:51:34 +08:00
Shibo Lyu
79fbd17ff8 refactor: extract BlahActKey to streamline BlahIdentity 2024-10-31 01:42:38 +08:00
Shibo Lyu
f7afcaa1f2 chore: release 0.2.9 2024-10-17 13:04:32 +08:00
Shibo Lyu
a88b004e9f fix(crypto): parse & verify type annotation 2024-10-17 13:04:10 +08:00
Shibo Lyu
3ad7e826e2 chore: release 0.2.8 2024-10-17 12:39:53 +08:00
Shibo Lyu
e39152d49c feat(identity): export schema 2024-10-17 12:39:00 +08:00
Shibo Lyu
c0627b5d96 chore: release 0.2.7 2024-10-17 11:41:31 +08:00
Shibo Lyu
7c971e83cc feat(crypto): parse and verify 2024-10-17 11:41:01 +08:00
Shibo Lyu
a1afee0e04 chore: release 0.2.6
Only change on npm version: removed crypto shim.
2024-10-15 01:04:19 +08:00
Shibo Lyu
584d0758e3 chore(npm): remove shim for crypto
We uses standardized WebCrypto.
2024-10-15 01:01:50 +08:00
Shibo Lyu
b1939308f1 chore: release 0.2.5 2024-10-11 01:54:42 +08:00
Shibo Lyu
3f7d058e4b feat: make keypair constructor public 2024-10-11 01:53:40 +08:00
Shibo Lyu
58b50c1ec5 chore: release 0.2.4 2024-10-11 01:27:05 +08:00
Shibo Lyu
43516e4da6 fix: make public & private key readonly to outside 2024-10-11 01:26:43 +08:00
Shibo Lyu
afccd120eb ci: update publish workflow to use deno 2.x too 2024-10-11 00:49:22 +08:00
Shibo Lyu
d61627f1e3 chore: bump deps & release 0.2.3 2024-10-11 00:46:04 +08:00
Shibo Lyu
e42e85af46 ci: update deno to 2.x 2024-10-11 00:45:52 +08:00
Shibo Lyu
ac711a63e1 feat: encode private key with a password 2024-10-11 00:42:52 +08:00
Shibo Lyu
9ff4d6da44 chore: bump deps and release 0.2.2 2024-10-10 15:31:35 +08:00
Shibo Lyu
49d0079e46 feat(crypto): allow generating non extractable keypair with additional usage 2024-10-10 15:26:23 +08:00
Shibo Lyu
ae146c8ab2 chore: release 0.2.1 2024-09-30 16:21:35 +08:00
Shibo Lyu
342a87fc8d fix: forgot to export identity class 🤦 2024-09-30 16:21:19 +08:00
Shibo Lyu
502c108eb6 chore: release 0.2.0 2024-09-30 16:18:11 +08:00
Shibo Lyu
c6378ad797 fix(identity): catching sig verification errors 2024-09-30 16:17:19 +08:00
Shibo Lyu
5761b308a4 feat(identity): update profile 2024-09-30 16:16:58 +08:00
Shibo Lyu
6546c2fe51 chore: fix lint error 2024-09-30 02:06:14 +08:00
Shibo Lyu
5d6209c5d7 test: add tests for identity 2024-09-30 02:04:57 +08:00
Shibo Lyu
a1dfed9815 feat: identity file gen, add & update act keys 2024-09-30 02:04:44 +08:00