Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
ee1dac5
format: run prettier
metalurgical Feb 8, 2024
139b533
feat: update generatePrivate in Core
ieow Feb 8, 2024
f209862
wip: update point to be curve independent
metalurgical Feb 8, 2024
3aacb29
wip: put back ecCurve temporarily
metalurgical Feb 8, 2024
6af2ad5
Merge pull request #242 from tkey/feat-ed/generatePrivate
metalurgical Feb 8, 2024
ecfa85f
Merge branch 'feature_ed25519' into ed25519_point_changes
metalurgical Feb 8, 2024
9607be4
Update Point.ts
metalurgical Feb 8, 2024
5224b46
update
metalurgical Feb 8, 2024
d9de5d5
update
metalurgical Feb 8, 2024
1f45436
Merge pull request #243 from tkey/ed25519_point_changes
metalurgical Feb 8, 2024
eceb0b4
refactor: propagate KeyType through core and serviceprovider
metalurgical Feb 8, 2024
04a4b20
Merge pull request #244 from tkey/propagate_point_core
ieow Feb 8, 2024
8072cd7
feat: storagelayer with ed25519
ieow Feb 8, 2024
55a9766
feat: generate from seed and importkey
ieow Feb 8, 2024
38dcf5f
feat: export key
ieow Feb 8, 2024
af4cf19
Merge pull request #245 from tkey/feat-ed25519/storagelayer
metalurgical Feb 8, 2024
7be43cb
Merge pull request #246 from tkey/feat-ed/seed-and-importkey
metalurgical Feb 8, 2024
4102f50
feat: update lagrange function
ieow Feb 8, 2024
58bd0b7
Merge pull request #247 from tkey/feat-ed/update-lagrange
metalurgical Feb 8, 2024
98ac57d
feat: use keccak512 instead of 256
ieow Feb 9, 2024
0906a68
fix: refactor
ieow Feb 9, 2024
d8441a2
Merge pull request #248 from tkey/feat-ed/refactor
metalurgical Feb 9, 2024
b4b64d1
fix: enable common type tests
ieow Feb 9, 2024
59b7608
Merge pull request #249 from tkey/feat-ed/common-type-tests
metalurgical Feb 9, 2024
55a6bdc
feat: enable core tests secp256k1
ieow Feb 9, 2024
1dfd561
Merge pull request #250 from tkey/feat-ed/core-test
metalurgical Feb 9, 2024
01732fb
feat: replace eccryptro's generatePrivate
ieow Feb 9, 2024
0a4e783
fix: lint
ieow Feb 9, 2024
94c8f77
Merge pull request #251 from tkey/feat-ed/replace-eccrypto-generatePr…
metalurgical Feb 9, 2024
89d080b
feat: enable ed25519 tests
ieow Feb 9, 2024
75faa93
Merge pull request #252 from tkey/feat-ed/ed25519-tests
metalurgical Feb 9, 2024
f871ee2
feat: update share transfer module
metalurgical Feb 9, 2024
7de5131
Update SecurityQuestionStore.ts
metalurgical Feb 9, 2024
3fa9ae8
Revert "Update SecurityQuestionStore.ts"
metalurgical Feb 9, 2024
69c8bb9
Update SecurityQuestionStore.ts
metalurgical Feb 9, 2024
34299d6
Update SecurityQuestionStore.ts
metalurgical Feb 9, 2024
df3b6e7
fix build
metalurgical Feb 9, 2024
69c1f36
fix: update generatePrivate ( remove eccrypto)
ieow Feb 9, 2024
2dc907c
fix: update
ieow Feb 9, 2024
809618e
fix: make keyType required for SecurityQuestionStoreArgs
metalurgical Feb 9, 2024
9adf70f
fix: enable initial default tests
ieow Feb 9, 2024
b99d0b6
Merge pull request #255 from tkey/fix-ed/initial-default-test
metalurgical Feb 9, 2024
0d9a88b
update
metalurgical Feb 9, 2024
dd6a2d7
Merge pull request #254 from tkey/fix-ed/shareTransfer
metalurgical Feb 13, 2024
da9267c
Update shared.js
metalurgical Feb 13, 2024
39ff42d
fix: fix serialize deserialize tkey
ieow Feb 13, 2024
58a7fda
fix: test - delete share
ieow Feb 13, 2024
2b6e376
Merge pull request #256 from tkey/fix-ed/serialize-deserialize-tkey
metalurgical Feb 13, 2024
de6d246
feat-ed: enable ed25519 tests in default packages
ieow Feb 13, 2024
b07195d
Merge pull request #257 from tkey/fix-ed/default-ed-tests
metalurgical Feb 13, 2024
6f1cec7
update
metalurgical Feb 13, 2024
81e379b
fix: additional missing keytype in test
metalurgical Feb 13, 2024
7ffbcc2
fix: tests - add keyType
ieow Feb 13, 2024
1d51b6f
fix: add keytype
ieow Feb 13, 2024
0982df5
fix: remove console.log
ieow Feb 13, 2024
747d082
Merge pull request #258 from tkey/fix-ed/add-test-keyType
metalurgical Feb 13, 2024
a2b5dab
fix: storaglayer tests
ieow Feb 13, 2024
4632cab
fix: remove only
ieow Feb 13, 2024
78ae3e3
Merge branch 'update_share_transfer_ed25519' into fix-ed/storagelayer
ieow Feb 13, 2024
6a065d9
Merge pull request #259 from tkey/fix-ed/storagelayer
metalurgical Feb 13, 2024
7e7082b
Update baseSPAutoSync.test.js
metalurgical Feb 13, 2024
3896ac2
fix: more test keytype
ieow Feb 13, 2024
e5d4deb
Merge pull request #260 from tkey/fix-ed/test-keytype
metalurgical Feb 13, 2024
f443a5d
update: continue propagating keytype through tests
metalurgical Feb 13, 2024
e0eb113
update
metalurgical Feb 13, 2024
6e9864e
update
metalurgical Feb 13, 2024
12204f6
fix: test curve
ieow Feb 13, 2024
361d6e6
Merge pull request #261 from tkey/fix-ed/curve-test
metalurgical Feb 13, 2024
a0ef717
fix: require keyType for core
ieow Feb 13, 2024
8292448
fix: remove only
ieow Feb 13, 2024
9106271
Merge pull request #262 from tkey/fix-ed/require-keyType
metalurgical Feb 13, 2024
4c1cb88
fix: build
metalurgical Feb 13, 2024
101b55a
debugging
metalurgical Feb 14, 2024
47678dc
update
metalurgical Feb 14, 2024
215c556
update
metalurgical Feb 14, 2024
4107df0
wip: fixes
metalurgical Feb 14, 2024
c17fd02
Update BNUtils.ts
metalurgical Feb 14, 2024
df14268
fix: restore encrypt and decrypt in share transfer module
metalurgical Feb 14, 2024
f11f32b
refactor
metalurgical Feb 14, 2024
5a8a4a1
Update TorusStorageLayer.ts
metalurgical Feb 14, 2024
f815906
fix: add storagelayer tests
ieow Feb 15, 2024
1c39eff
fix: add check
ieow Feb 15, 2024
94a3782
Update test.js
metalurgical Feb 15, 2024
8cfd297
Merge branch 'update_encryption' of https://github.com/tkey/tkey into…
metalurgical Feb 15, 2024
74a7eac
Merge pull request #265 from tkey/update_encryption
metalurgical Feb 15, 2024
3dafcf9
Merge pull request #253 from tkey/update_share_transfer_ed25519
metalurgical Feb 15, 2024
66ce9d8
update
metalurgical Feb 15, 2024
a1a4455
fix: update metadata url
metalurgical Feb 15, 2024
4904fda
fix: package.json storagelayer and test
ieow Feb 15, 2024
8c14d7e
update
metalurgical Feb 15, 2024
122ad61
Merge branch 'feature_ed25519' of https://github.com/tkey/tkey into f…
metalurgical Feb 15, 2024
05ccee8
update: use dev endpoints
metalurgical Feb 17, 2024
cc0e13d
Update shared.js
metalurgical Feb 17, 2024
f1b1a7b
Update shared.js
metalurgical Feb 17, 2024
86db420
update
metalurgical Feb 19, 2024
e7623af
update
metalurgical Feb 19, 2024
e2de08a
Update ShareTransferModule.ts
metalurgical Feb 19, 2024
53f4566
update
metalurgical Feb 19, 2024
ba322ca
fix: inline getOrSetNonce
metalurgical Feb 20, 2024
3d0b02b
update
metalurgical Feb 20, 2024
ccf8ce5
Update torus_js_get_or_set_nonce.ts
metalurgical Feb 20, 2024
6ce7a16
Update torus_js_get_or_set_nonce.ts
metalurgical Feb 20, 2024
875812d
fix: make privKey required for getOrSetNonce
metalurgical Feb 20, 2024
974281a
Update shared.js
metalurgical Feb 20, 2024
6f5b7ff
Update shared.js
metalurgical Feb 21, 2024
5d22e5d
fix: add delay to test batches
metalurgical Feb 21, 2024
751cf1f
lint
metalurgical Feb 21, 2024
bd9538d
increase timeout
metalurgical Feb 21, 2024
9860de7
update
metalurgical Feb 21, 2024
df64cf5
update
metalurgical Feb 21, 2024
26b66c3
update and cleanup
metalurgical Feb 24, 2024
86ade4f
fix: dependency vulnerabilities
metalurgical Feb 24, 2024
0b9529f
review comment
metalurgical Mar 8, 2024
1519737
Update core.ts
metalurgical Mar 8, 2024
383366c
update torus.js
Mar 25, 2024
548d68d
fix tests
Mar 25, 2024
ae9122f
fix aquire and release lock
Mar 25, 2024
b943e37
fix aquire lock
Mar 25, 2024
dc32dcf
fix release lock
Mar 25, 2024
58dcad7
fixed one key flow
Apr 4, 2024
d415ff0
build fix
Apr 4, 2024
2444fa5
remove tweetnacl dep
Apr 4, 2024
003819f
local tests working
Apr 4, 2024
9e86691
fix seed length issue
Apr 4, 2024
9e46f3b
fix seed length issue
Apr 4, 2024
1d5ce17
fix package json
Apr 4, 2024
dfa9e7b
fix lint issues and change import key type to buffer
Apr 4, 2024
5a1423f
Merge pull request #267 from tkey/fix/ed25519-signing
himanshuchawla009 Apr 15, 2024
5ab4a68
resolve conflicts
Apr 19, 2024
823bb04
add check for key type
Apr 19, 2024
2cce15f
ed25519: export seed without conversion to BN
matthiasgeihs Apr 23, 2024
f5e6286
Merge pull request #266 from tkey/feature_ed25519
himanshuchawla009 Apr 29, 2024
6714e19
core: augment metadata for tss
matthiasgeihs Mar 27, 2024
7dc166a
add tkey tss
matthiasgeihs Mar 26, 2024
1e15ec5
wip add support for ed25519
matthiasgeihs Apr 12, 2024
92cc826
rebase fixup
matthiasgeihs Apr 15, 2024
7bf5b47
fix metadata fromJSON
matthiasgeihs Apr 17, 2024
c9ce0b2
tkey tss: allow changing tag
matthiasgeihs Apr 17, 2024
cc8d50e
tkey tss: fixup: deviceTSSIndex
matthiasgeihs Apr 17, 2024
32d35cf
git ignore vscode folder
matthiasgeihs Apr 17, 2024
ba260ee
common-types: add IAccountSaltStore
matthiasgeihs Apr 17, 2024
325cb31
tss: Update README
matthiasgeihs Apr 17, 2024
25efad6
wip test
matthiasgeihs Apr 17, 2024
5983be1
tss module: upgrade rss client v2.0.0-0
matthiasgeihs Apr 17, 2024
c4d55ae
fix ci: include @nx/nx-linux-x64-gnu as optional
matthiasgeihs Apr 17, 2024
9199cb3
tss provider: remove unused verifier type
matthiasgeihs Apr 21, 2024
5124394
tss share derivation: include share coefficient
matthiasgeihs Apr 21, 2024
133057c
tss test: with account index
matthiasgeihs Apr 21, 2024
3852d73
tss test for ed25519
matthiasgeihs Apr 22, 2024
46792ab
update import key
matthiasgeihs Apr 23, 2024
cfce3ad
upgrade torus js and custom auth
matthiasgeihs Apr 23, 2024
22459f8
change test user ids
matthiasgeihs Apr 23, 2024
4f00dc3
fix factor curve
matthiasgeihs Apr 23, 2024
6f3ef9b
wip ed25519 import export
matthiasgeihs Apr 23, 2024
b33b154
export ed25519 seed
matthiasgeihs Apr 23, 2024
7f9213c
allow skip tss init
matthiasgeihs Apr 23, 2024
96091a1
importTssKey: do checks first
matthiasgeihs Apr 29, 2024
874dc05
check metadata tssKeyType
matthiasgeihs Apr 29, 2024
7746c2d
Default tss key type
matthiasgeihs Apr 29, 2024
b953b8c
disable account index for ed25519
matthiasgeihs Apr 29, 2024
2a6f0df
test with default key type
matthiasgeihs Apr 29, 2024
3f995a2
encrypt seed under scalar
matthiasgeihs Apr 29, 2024
4e59aaf
fixup decryption key derivation
matthiasgeihs Apr 29, 2024
be36b88
fixup package lock after rebase
matthiasgeihs Apr 29, 2024
59fce3b
add documentation
matthiasgeihs Apr 30, 2024
b3d46ac
fixup test
matthiasgeihs Apr 30, 2024
246cda8
tss/provider: remove unused `sssNodeDetails`
matthiasgeihs May 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/backward.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ name: Backward Compatibility Tests

# Controls when the action will run.
on:
create:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master]
pull_request:
branches: [master]
#push:
# branches: [master]
#pull_request:
# branches: [master]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
123 changes: 62 additions & 61 deletions .github/workflows/browserTests.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,62 @@
name: BrowserTests

on: [push]

env:
PLAYWRIGHT_BROWSERS_PATH: 0
NODE_VERSION: 20
FORCE_COLOR: 3

jobs:
test:
strategy:
max-parallel: 1
matrix:
browser: [chromium, firefox]
# browser: [chromium, firefox, webkit]
# os: [macos-latest, windows-latest, ubuntu-latest]
os: [macos-latest]
exclude:
- browser: webkit
os: windows-latest
# - browser: webkit
# os: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"

- name: Install Node.js dependencies
run: npm ci

- name: Browser Test Development Chrome (Mocked)
if: startsWith(matrix.browser, 'chromium')
run: npm run browser-tests:local-mocked-chrome

- name: Browser Test Development Firefox (Mocked)
if: startsWith(matrix.browser, 'firefox')
run: npm run browser-tests:local-mocked-firefox

# - name: Browser Test Development webkit (Mocked)
# if: startsWith(matrix.browser, 'webkit')
# run: npm run browser-tests:local-mocked-webkit

- name: Browser Test Production Chrome (Prod)
if: startsWith(matrix.browser, 'chromium')
run: npm run browser-tests:local-prod-chrome

# - name: Browser Test Production Firefox (prod)
# if: startsWith(matrix.browser, 'firefox')
# run: npm run browser-tests:local-prod-firefox

# - name: Browser Test Production webkit (prod)
# if: startsWith(matrix.browser, 'webkit')
# run: npm run browser-tests:local-prod-webkit
name: BrowserTests

on:
create: #[push]
workflow_dispatch:
env:
PLAYWRIGHT_BROWSERS_PATH: 0
NODE_VERSION: 20
FORCE_COLOR: 3

jobs:
test:
strategy:
max-parallel: 1
matrix:
browser: [chromium, firefox]
# browser: [chromium, firefox, webkit]
# os: [macos-latest, windows-latest, ubuntu-latest]
os: [macos-latest]
exclude:
- browser: webkit
os: windows-latest
# - browser: webkit
# os: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"

- name: Install Node.js dependencies
run: npm ci

- name: Browser Test Development Chrome (Mocked)
if: startsWith(matrix.browser, 'chromium')
run: npm run browser-tests:local-mocked-chrome

- name: Browser Test Development Firefox (Mocked)
if: startsWith(matrix.browser, 'firefox')
run: npm run browser-tests:local-mocked-firefox

# - name: Browser Test Development webkit (Mocked)
# if: startsWith(matrix.browser, 'webkit')
# run: npm run browser-tests:local-mocked-webkit

- name: Browser Test Production Chrome (Prod)
if: startsWith(matrix.browser, 'chromium')
run: npm run browser-tests:local-prod-chrome

# - name: Browser Test Production Firefox (prod)
# if: startsWith(matrix.browser, 'firefox')
# run: npm run browser-tests:local-prod-firefox

# - name: Browser Test Production webkit (prod)
# if: startsWith(matrix.browser, 'webkit')
# run: npm run browser-tests:local-prod-webkit
1 change: 1 addition & 0 deletions .github/workflows/buildMocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: Build Backward Compatibility Mocks
on:
# Triggers the workflow on push or pull request events but only for the main branch
create:
workflow_dispatch:

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
cache: "npm"

- name: Install dependencies
run: npm ci
run: npm ci --include=optional

- name: Build & Lint
run: npm run build
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@ dist
.tern-port

.DS_Store
testrun.txt

/.vscode/
2 changes: 1 addition & 1 deletion .prettierrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
printWidth: 150
singleQuote: false
semi: true
trailingComma: es5
trailingComma: es5
26 changes: 13 additions & 13 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ For more information, check out the [technical overview](https://hackmd.io/Tej2t
| `@tkey/core` | [![npm version](https://img.shields.io/npm/v/@tkey/core?label=%22%22)](https://www.npmjs.com/package/@tkey/core/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@tkey/core?label=%22%22)](https://bundlephobia.com/result?p=@tkey/core@latest) | Core functionalities for creating a tkey |
| 🐕‍🦺 **Service Provider** |
| `@tkey/service-provider-torus` | [![npm version](https://img.shields.io/npm/v/@tkey/service-provider-torus?label=%22%22)](https://www.npmjs.com/package/@tkey/service-provider-torus/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@tkey/service-provider-torus?label=%22%22)](https://bundlephobia.com/result?p=@tkey/service-provider-torus@latest) | `@service-provider-base` with DirectAuth functionality |
| 🗳 **Storage Layer** |
| 🗳 **Storage Layer** |
| `@tkey/storage-layer-torus` | [![npm version](https://img.shields.io/npm/v/@tkey/storage-layer-torus?label=%22%22)](https://www.npmjs.com/package/@tkey/storage-layer-torus/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@tkey/storage-layer-torus?label=%22%22)](https://bundlephobia.com/result?p=@tkey/storage-layer-torus@latest) | get/set metadata for various shares |
| 🔌 **Modules** |
| `@tkey/chrome-storage` | [![npm version](https://img.shields.io/npm/v/@tkey/chrome-storage?label=%22%22)](https://www.npmjs.com/package/@tkey/chrome-storage/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@tkey/chrome-storage?label=%22%22)](https://bundlephobia.com/result?p=@tkey/chrome-storage@latest) | Add/remove a share from chrome extension storage |
Expand Down
Loading