Jaco
66ebae8c62
Slight adjustment to tests ( #402 )
...
* Slight adjustment to tests
* beforeAll adjustment
* Adjust test forEach
* Test import map removal
* Adjust
* Remove input import_map template
2022-07-15 12:57:59 +03:00
Jaco
f31ec881ef
Additional platform-specific tests ( #387 )
...
* Additional platform-specific tests
* align casing
* Step rename
* lenIn/lenOut for deno
* Remove install ls
* Run deno tests on full suite
* trigger
2022-07-06 12:46:38 +03:00
Jaco
49ab036894
Split into common wasm-bridge package ( #346 )
...
* Split into common wasm-bridge package
* README
* Adjust rollup bundling
* Adjust
* Adjust
* Adjust, full re-usable
* Cleanup deps
* Restore initWasm exports from init*
* Split base64 & fflate into wasm-util
* sideEffects for wasm-util
* Dedupe types
* Additional
* Adjust
* Expose error on InitResult
* Bump deps
* CHANGELOG
* Re-usable rollup config
2022-05-12 08:29:21 +03:00
Jaco
b01f35cde5
Add environment type check to tests ( #344 )
2022-05-11 13:10:44 +03:00
Jaco
e75ebd07a0
Restore older package names ( #342 )
...
* Restore older package names
* Fix headers
* Adjust imports & tupe exports
2022-05-11 09:01:12 +03:00
Jaco
13826c371e
Bump deps & adjust test output ( #341 )
2022-05-10 10:23:47 +03:00
Jaco
2e14af5693
Adjust WASM init process (w/ RN aliases) ( #340 )
...
* Adjust WASM init process (w/ RN aliases)
* Remove stray log
* Cleanup
* CHANGELOG
* yarn.lock
2022-05-09 17:48:45 +03:00
Jaco
03f38cb07b
Adjust test for updated dev ( #327 )
...
* Adjust test for updated dev
* Bump dev
2022-04-05 07:29:17 +03:00
Jaco
0dfb491e9d
Reproduction for secp256k1 asm.js failure ( #310 )
...
* Reproduction for secp256k1 asm.js failure
* Make test output more readable
* Additional test cleanups
* Bump build deps
* Adjust output sizing flags
* Bump wasm-bindgen
* secp256k1 HACK
* Update packages/wasm-crypto/src/bundle.ts
* Update packages/wasm-crypto/src/bundle.ts
* Update packages/wasm-crypto/test/all/index.cjs
2022-03-19 09:02:52 +02:00
Jaco
698e62d70a
Adjust init to allow for asm/wasm or combo ( #309 )
...
* Additional known secp256k1 test
* Fix test
* typo
* ... one more typo
* Adjust init to allow for asm/wasm or combo
* Cleanup export, no internal cjs
* Adjust sideEffects
* CHANGELOG
2022-03-18 14:40:59 +02:00
Jaco
257080e1f9
Additional known secp256k1 test ( #308 )
...
* Additional known secp256k1 test
* Fix test
* typo
* ... one more typo
2022-03-18 13:54:52 +02:00
Jaco
6b8634462d
Bump dev & common ( #273 )
...
* Bump dev & common
* Adjust alias
2022-01-09 09:07:40 +02:00
Jaco
be4f3ce82c
2022 ( #263 )
...
* 2022
* Update scripts/rust-version.sh
2022-01-01 09:30:22 +02:00
Jaco
7689afb616
Add secp256k1 interfaces ( #241 )
...
* Add secp256k1 functions
* features for rand
* JS tests
* signing
* CHANGELOG
* Add secp256k1 seed
2021-12-02 14:19:33 +02:00
Jaco
eaf8ecf2c1
Add hmacSha{256, 512} functions ( #233 )
...
* Add hmacSha{256, 512} functions
* type
* Adjust
* Apply suggestions from code review
* Update packages/wasm-crypto/src/rs/hashing.rs
* Update packages/wasm-crypto/src/rs/hashing.rs
* Update packages/wasm-crypto/src/rs/hashing.rs
* Fix Rust side
* naming for wasm interfaces
* Remove type
* Bump common
2021-11-21 07:49:53 +02:00
Jaco
6cecb67edd
keccak512 & sha256 ( #231 )
...
* keccak512 & sha256
* Update interface
* Correct test
2021-11-19 14:28:44 +02:00
Jaco
3794a30b4b
Adjust JS tests ( #211 )
2021-08-25 10:53:04 +02:00
Shunfan Zhou and Jaco
9b8d6e0b64
Support sr25519 agreement ( #209 )
...
* Support sr25519 ecdh agreement
* Align version of curve25519-dalek
Co-authored-by: Jaco <jacogr@gmail.com >
* Reduce code size
Co-authored-by: Jaco <jacogr@gmail.com >
* Add explicit tests on sr25519 key agreement
* Fix linting issues
* Fix sr25519 key_agreement test
Co-authored-by: Jaco <jacogr@gmail.com >
2021-08-24 13:00:54 +02:00
Jaco Greeff
641ea0f9d8
Small cleanups ( #182 )
...
* Small cleanups
* Detect wasm-crypt-* alongside detectPackage
* Adjust alias imports
* Adjust
* Adjust
2021-03-04 17:59:38 +01:00
Jaco Greeff
0f6e143a6f
Default build to type: module ( #180 )
...
* Defaul build to type: module
* Add packageInfo
* 4.0
* pre
* Adjust tests
* jest js, rest cjs
* Bump dev
2021-03-02 17:27:41 +01:00
Jaco Greeff
16d1b28f77
Cleanups ( #172 )
2021-01-21 12:28:11 +01:00
Jaco Greeff
e6bc31ac5d
Adjust vrf_{sign, verify} with one variant ( #171 )
2021-01-20 12:08:27 +01:00
Steve Degosserie and Github Actions
b1752ad001
Expose Schnorrkel's VRF capabilities ( #170 )
...
* Expose vrf_sign_extra function from Schnorrkel
* Document function, code cleanup
* Added vrf_sign, vrf_verify, vrf_verify_extra functions.
* Expose VRF functions to js
Co-authored-by: Github Actions <action@github.com >
2021-01-17 16:16:14 +01:00
Jaco Greeff
1bb6db86f7
2021 ( #167 )
2021-01-03 11:20:26 +01:00
Jaco Greeff
f01a9b187e
Single instance package detection ( #160 )
...
* Single instance package detection
* s/require/request/
* Internal isReady
* Revert unneeded from-build alias
2020-12-15 16:04:22 +01:00
Jaco Greeff
2c4f8bbe4e
3.0 ( #158 )
...
* 3.0
* CHANGELOG
* Rename content packages
* final dev bump
2020-12-13 10:09:24 +01:00
Jaco Greeff
5c563bb95f
Split bytes packages for easier override ( #155 )
2020-12-10 14:07:11 +01:00
Jaco Greeff
b36ad6fdf2
Bump dev ( #150 )
...
* Bump dev
* Rebump
2020-12-07 14:59:44 +01:00
Jaco Greeff
15788efd34
Replace default crypto import, remove requires ( #139 )
...
* Replace default crypto import, remove requires
* TS 4.0.5
2020-11-07 10:42:14 +01:00
Jaco Greeff
be0a41e4b0
Test for deterministic outputs ( #134 )
2020-11-03 09:42:53 +01:00
Jaco Greeff
c6135e28d4
2.0 ( #133 )
...
* 2.0
* prerelease
* Bumps
* CHANGELOG
* Don't init with no WASM bytes
* {asm,bytes}-empty
* asm-empty import
* WasmCryptoInstance
2020-11-03 08:46:57 +01:00
Jaco Greeff
e2d0726608
Split js/wasm ( #130 )
...
* Split js/wasm
* require
2020-11-02 18:34:00 +01:00
Jaco Greeff
83762d9997
Polyfill require adjust ( #128 )
...
* Polyfill require adjust
* Assert in promise for getRandomBytes
* Adjust jest
* Revert explicit overrides (from base)
* use typeof
* Re-add crypto-polyfill (backwards, direct imports)
* crypto log
* Fix dev
* Adjust
2020-11-01 18:53:09 +01:00
Jaco Greeff
52c5a506ac
SPDX ( #114 )
2020-09-17 16:13:19 +02:00
Jaco Greeff
c4ab178926
Re-add bip39ToSeed interface ( #104 )
...
* Re-add bip39ToSeed interface
* import
2020-08-25 20:48:28 +02:00
Jaco Greeff
0faca1b98e
Add scrypt hashing ( #92 )
2020-08-03 14:47:17 +02:00
Jaco Greeff
ef6db82c52
Remove bip39ToSeed ( #80 )
...
* Cleanups, no mnemonic to seed (only minisecret)
* Remove bip39ToSeed
2020-05-31 14:42:13 +02:00
Jaco Greeff
8c0aa030cf
Bump deps ( #79 )
...
* Bump deps
* Rust bumps
* Rust bumps (again)
* Pin nightly
* Cleanup with new generation
2020-05-23 18:25:53 +02:00
Jaco Greeff
5fe38fa47b
Bump deps ( #76 )
...
* Bump deps
* linting
2020-04-30 08:19:36 +02:00
Jaco Greeff
84f0d27744
Rewrite yarn.lock ( #72 )
2020-04-02 08:02:17 +02:00
Jaco Greeff
4c7a9609bd
Drop sr25519 verify_simple_preaudit_deprecated ( #54 )
...
* Drop sr25519 verify_simple_preaudit_deprecated
* Add missing Signature import
* Update test-verctor, 0.8.5+ only signatures
* Trigger
* Pin Rust nightly
* Pin via run
* De-dup nightlies
* Update tests to use nightly-2020-02-17
* Update CHANGELOG
* Typo
2020-02-24 16:24:49 +01:00
Jaco Greeff
1f4612bf32
Bump deps ( #47 )
2020-01-06 13:44:06 +01:00
Jaco Greeff
bd18b42439
typescript-eslint 2 ( #33 )
...
* typescript-eslint 2
* Blind eslint fixes
2019-08-30 12:11:20 +02:00
Jaco Greeff
c1c27d7a7d
Test cleanups, exports params ( #30 )
2019-07-31 14:10:52 +02:00
Jaco Greeff
8c6d2aea12
Only rely on wasm.js (no asm.js duplication) ( #25 )
...
* Only rely on wasm.js (no asm.js duplication)
* Add browser entry
* Make asm.js tests pass
* Remove (now-unsued) mock dep
2019-07-19 11:06:31 +02:00
Jaco Greeff
72d4ec56b5
Add asm.js generation with CRYPTO_ASM env var ( #23 )
...
* Add asm.js generation, import via index-asm.js
* Less sed-y, more babel-y
* Throw error when some failed
* CRYPTO_ASM env flag
* CHANGELOG
2019-07-18 15:38:50 +02:00
Jaco Greeff
2b637b079a
Swap to eslint ( #22 )
...
* Swap to eslint
* Remove links to outdated packages
* Bump hex_literal to 0.2.0
* Bump version
2019-07-17 11:23:11 +02:00
Jaco Greeff
f39b68f83d
Add known signature tests (from subkey, actual values) ( #20 )
...
* Add know signing test (from subkey)
* Align sr25519 known sigs
* 0.10 (schnorrkel got a bump)
2019-05-09 15:18:44 +02:00
Jaco Greeff
a1692ae1e6
Combine all crypto into a single package ( #15 )
...
* Combine all crypto into a single package
* Disable build for daled & schnrorrkel (combined)
* Bump @polkadot/dev (for publish)
* yarn.lock
* Fix CHANGELOG
2019-03-30 17:35:43 +01:00
Jaco Greeff
06f2e0eb31
add bip39ToSeed password param
2019-03-23 18:32:52 +01:00