Skip to content

Commit 2295acb

Browse files
TimoGlastragenaris
andauthored
chore: update to askar version 0.4.5 (#56)
* docs(changeset): chore: update to askar version 0.4.5. This release adds support for 16KB page sizes on Android. Signed-off-by: Timo Glastra <[email protected]> * chore: update askar to 0.4.5 Signed-off-by: Timo Glastra <[email protected]> * fix: drop G1G2 and adapt tests to 0.4.5 (#57) Signed-off-by: Ariel Gentile <[email protected]> * style: fix Signed-off-by: Ariel Gentile <[email protected]> --------- Signed-off-by: Timo Glastra <[email protected]> Signed-off-by: Ariel Gentile <[email protected]> Co-authored-by: Ariel Gentile <[email protected]>
1 parent 21e2388 commit 2295acb

File tree

5 files changed

+16
-27
lines changed

5 files changed

+16
-27
lines changed

.changeset/stupid-apples-decide.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@openwallet-foundation/askar-react-native": patch
3+
"@openwallet-foundation/askar-nodejs": patch
4+
---
5+
6+
chore: update to askar version 0.4.5. This release adds support for 16KB page sizes on Android.

packages/askar-nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"typescript": "catalog:"
3838
},
3939
"binary": {
40-
"version": "v0.4.1",
40+
"version": "v0.4.5",
4141
"host": "https://github.com/openwallet-foundation/askar/releases/download",
4242
"packageName": "library-{platform}-{arch}.tar.gz"
4343
},

packages/askar-nodejs/tests/keys.test.ts

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ describe('keys', () => {
4040
deepStrictEqual(
4141
key.jwkPublic,
4242
new Jwk({
43-
crv: 'BLS12381_G2',
44-
kty: 'OKP',
45-
x: 'lH6hIRPzjlKW6LvPm0sHqyEbGqf8ag7UWpA_GFfefwq_kzDXSHmls9Yoza_be23zEw-pSOmKI_MGR1DahBa7Jbho2BGwDNV_QmyhxMYBwTH12Ltk_GLyPD4AP6pQVgge',
43+
crv: 'BLS12381G2',
44+
kty: 'EC',
45+
x: 'FH6hIRPzjlKW6LvPm0sHqyEbGqf8ag7UWpA_GFfefwq_kzDXSHmls9Yoza_be23zEw-pSOmKI_MGR1DahBa7Jbho2BGwDNV_QmyhxMYBwTH12Ltk_GLyPD4AP6pQVgge',
46+
y: 'CA1TwLRnETa8qPKPktW4XHSkD_9Qmuxb7syIiOMAjWKsIaptbF2USMVp40NqyV7XD8qQ_kM4QNme49eGyn_aQSsVdQKy7zSeBlRubTIc4Gl3vL-SHk8NlQJ41-NlTpBU',
4647
})
4748
)
4849
})
@@ -54,27 +55,10 @@ describe('keys', () => {
5455
deepStrictEqual(
5556
key.jwkPublic,
5657
new Jwk({
57-
crv: 'BLS12381_G1',
58-
kty: 'OKP',
59-
x: 'hsjb9FSBUJXuB1fCluEcUBLeAPgIbnZGfxPKyeN3LVjQaKFWzXfNtMFAY8VL-eu-',
60-
})
61-
)
62-
})
63-
64-
test('Bls G1G2 Keygen', () => {
65-
const seed = Uint8Array.from(Buffer.from('testseed000000000000000000000001'))
66-
const key = Key.fromSeed({
67-
algorithm: KeyAlgorithm.Bls12381G1G2,
68-
seed,
69-
method: KeyMethod.BlsKeygen,
70-
})
71-
72-
deepStrictEqual(
73-
key.jwkPublic,
74-
new Jwk({
75-
crv: 'BLS12381_G1G2',
76-
kty: 'OKP',
77-
x: 'h56eYI8Qkq5hitICb-ik8wRTzcn6Fd4iY8aDNVc9q1xoPS3lh4DB_B4wNtar1HrViZIOsO6BgLV72zCrBE2ym3DEhDYcghnUMO4O8IVVD8yS-C_zu6OA3L-ny-AO4rbkAo-WuApZEjn83LY98UtoKpTufn4PCUFVQZzJNH_gXWHR3oDspJaCbOajBfm5qj6d',
58+
crv: 'BLS12381G1',
59+
kty: 'EC',
60+
x: 'Bsjb9FSBUJXuB1fCluEcUBLeAPgIbnZGfxPKyeN3LVjQaKFWzXfNtMFAY8VL-eu-',
61+
y: 'BmNdJxcuusPBTqggIS-D-ItsxILnKz4q2G95at5K1d1-vFOtMJO0Aoh9OfGuQlvi',
7862
})
7963
)
8064
})

packages/askar-react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"react-native": ">= 0.71"
5050
},
5151
"binary": {
52-
"version": "v0.4.1",
52+
"version": "v0.4.5",
5353
"host": "https://github.com/openwallet-foundation/askar/releases/download",
5454
"packageName": "library-ios-android.tar.gz"
5555
}

packages/askar-shared/src/enums/KeyAlgorithm.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export enum KeyAlgorithm {
99
AesA256Kw = 'a256kw',
1010
Bls12381G1 = 'bls12381g1',
1111
Bls12381G2 = 'bls12381g2',
12-
Bls12381G1G2 = 'bls12381g1g2',
1312
Chacha20C20P = 'c20p',
1413
Chacha20XC20P = 'xc20p',
1514
Ed25519 = 'ed25519',

0 commit comments

Comments
 (0)