Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin wrapper publish #2

Open
wants to merge 355 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
355 commits
Select commit Hold shift + click to select a range
592171d
refactor(js): cleanup
berendsliedrecht Jun 27, 2022
cf8815c
tests(js): fix jose tests
berendsliedrecht Jun 27, 2022
7cc0f8a
tests(js): nodejs tests work
berendsliedrecht Jun 27, 2022
5b2d223
Merge branch 'hyperledger:main' into wrapper/javascript
berendsliedrecht Jun 27, 2022
cb2b75c
tests(js): nodejs tests work fully
berendsliedrecht Jun 27, 2022
ff2d8df
tests(js): Improved tests
berendsliedrecht Jun 27, 2022
510a107
refactor(js): check optional values
berendsliedrecht Jun 27, 2022
33b93a3
feat(js): working on typemapping
berendsliedrecht Jun 27, 2022
00e473d
refactor(js): working on android setup
berendsliedrecht Jun 28, 2022
4f43655
feat: add include to index so some operations don't need to access th…
KimEbert42 Jul 14, 2022
f6a9cfc
Merge pull request #57 from Indicio-tech/feature/index_include
andrewwhitehead Jul 20, 2022
68ed5d0
feat: everything works but needs cleanup
berendsliedrecht Jul 30, 2022
0b4bce3
feat(js): async works in android and ios
berendsliedrecht Jul 31, 2022
e1a74e3
refactor(js): cleanup build.gradle
berendsliedrecht Jul 31, 2022
affd66e
refactor(js): clean up on the nodejs side
berendsliedrecht Aug 1, 2022
ebf8fb4
buid: changed start workflow for android and ios
berendsliedrecht Aug 1, 2022
7ed52b6
refactor(js): do not commit yarnrc
berendsliedrecht Aug 1, 2022
89b9425
chore(js): remove makefile
berendsliedrecht Aug 1, 2022
915915c
chore(js): remove the example app
berendsliedrecht Aug 1, 2022
3f525c6
chore(js): remove build package
berendsliedrecht Aug 1, 2022
9bc4c29
refactor(js): major cleanup
berendsliedrecht Aug 3, 2022
b9a81dd
refactor(js): added some eslint disables around the textencoder
berendsliedrecht Aug 3, 2022
5919ec3
Merge branch 'main' into wrapper/javascript
berendsliedrecht Aug 4, 2022
27f062b
Merge pull request #60 from animo/wrapper/javascript
andrewwhitehead Aug 5, 2022
f861025
feat(wql): ported indy-wql from indy-shared-rs
berendsliedrecht Nov 10, 2022
b3c6de6
chore(wql): updated the README in cargo.toml
berendsliedrecht Nov 10, 2022
64de941
chore(wql): deleted the query.rs file
berendsliedrecht Nov 10, 2022
f8042a0
style(wql): ran cargo fmt
berendsliedrecht Nov 10, 2022
fb6ed88
Merge pull request #63 from blu3beri/feat/add-askar-wql
andrewwhitehead Nov 11, 2022
b5902b1
fix panic on different seed lengths when generating raw store key
andrewwhitehead Nov 19, 2022
75eaca9
Merge pull request #65 from andrewwhitehead/fix/store-key-seed
andrewwhitehead Nov 19, 2022
49d9c3c
use toolchain and not cross (#69)
berendsliedrecht Dec 16, 2022
564ff1c
feat(js): add wrapper to build pipeline (#71)
genaris Jan 18, 2023
fffd623
fix(js): Scan with more than a single result (#73)
genaris Jan 18, 2023
8e45ec1
Exposed some structures
Artemkaaas Jan 16, 2023
697a77f
Merge pull request #75 from Artemkaaas/changes-to-use-from-rust
andrewwhitehead Jan 20, 2023
1faf3e7
move wql query representation and tests into storage module
andrewwhitehead Jan 20, 2023
043cc29
delegate wql op negation to query generator
andrewwhitehead Jan 20, 2023
62526fa
remove askar-wql test action
andrewwhitehead Jan 20, 2023
8f4291e
feat(js): add Store rekey (#72)
genaris Jan 21, 2023
ecb201f
Merge branch 'main' into fix/wql-negate
TimoGlastra Jan 21, 2023
92b95d8
Merge pull request #79 from andrewwhitehead/fix/wql-negate
swcurran Jan 21, 2023
11222fe
fix(js): set scan offset to 0 if not defined
genaris Jan 23, 2023
4daa7ce
Merge pull request #83 from genaris/fix/scan-offset
andrewwhitehead Jan 23, 2023
671b8dd
feat(js): add Bls12381G1G2 to supported key algos (#85)
genaris Jan 24, 2023
74e5e09
update deprecated actions
andrewwhitehead Jan 20, 2023
a4123b4
build linux-aarch64 python package
andrewwhitehead Jan 25, 2023
e5b66e7
only build library
andrewwhitehead Jan 25, 2023
03c0cd1
Merge pull request #84 from andrewwhitehead/actions-update
andrewwhitehead Jan 26, 2023
59a9fb1
build(js): add the build steps for ios and android to the main build
Jan 24, 2023
a02b2eb
build(ios): correct framework name
Jan 27, 2023
3aac52f
add terminate function to FFI to shut down worker threads
andrewwhitehead Jan 25, 2023
206fa1d
fix warnings
andrewwhitehead Jan 25, 2023
ec8f66b
shrink unsafe block
andrewwhitehead Jan 25, 2023
fd12ed7
fix disabling of custom logger
andrewwhitehead Jan 25, 2023
8d99bf9
Merge branch 'main' into better-ios-android-build-pipeline
TimoGlastra Jan 27, 2023
c9fe69f
Merge pull request #87 from blu3beri/better-ios-android-build-pipeline
andrewwhitehead Jan 27, 2023
b795d93
chore(js): add @hyperledger prefix (#80)
TimoGlastra Feb 2, 2023
dba4bc6
chore: update version to 0.2.8-dev.1 (#93)
TimoGlastra Feb 3, 2023
2965fe6
feat(js): setup React Native
Feb 3, 2023
1acbdc6
extract version from cargo metadata
Feb 9, 2023
d4ed198
Merge pull request #94 from blu3beri/fix/react-native
berendsliedrecht Feb 9, 2023
ac44102
update versions
Feb 9, 2023
1b1d0ad
Merge pull request #95 from blu3beri/update/version
berendsliedrecht Feb 9, 2023
d4c6a7b
fix(js): allow multiple turbo modules to be registered
Feb 11, 2023
0ef5d12
chore: update version
Feb 13, 2023
904c3a8
Merge pull request #97 from blu3beri/fix/use-multiple-turbo-modules
berendsliedrecht Feb 13, 2023
c598220
Merge branch 'main' into update-version
berendsliedrecht Feb 13, 2023
ed2a8e7
Merge pull request #98 from blu3beri/update-version
berendsliedrecht Feb 13, 2023
2bb474f
restrict csv to version 1.1
andrewwhitehead Feb 22, 2023
49b4be9
fix rust toolchain version
andrewwhitehead Feb 22, 2023
55e5307
Merge pull request #102 from andrewwhitehead/fix/csv-version
andrewwhitehead Feb 23, 2023
c15eb8a
Create MAINTAINERS.md
swcurran Feb 22, 2023
f098a9f
Merge pull request #101 from hyperledger/swcurran-maintainers
andrewwhitehead Feb 23, 2023
3b8d845
set cross base images
andrewwhitehead Feb 24, 2023
1451e83
check auditwheel output
andrewwhitehead Feb 24, 2023
0ab50f3
build cleanups; fix iOS artifact upload
andrewwhitehead Feb 24, 2023
c4ee60f
Merge pull request #103 from andrewwhitehead/fix/manylinux
andrewwhitehead Mar 1, 2023
c7852d6
fix(js): free key and entry objects
genaris Mar 2, 2023
093599b
Merge pull request #107 from genaris/fix/free-objects
andrewwhitehead Mar 3, 2023
41c7f46
fix(js): empty key entry list metadata in react-native (#105)
genaris Mar 6, 2023
a8f3a6e
update dependencies, including sqlx 0.6
andrewwhitehead Jan 26, 2023
bfa8dd7
clean up clippy warnings
andrewwhitehead Jan 26, 2023
1a9a4f7
update to 2021 edition and set minimum rust version
andrewwhitehead Jan 23, 2023
bda9cca
abort on panic in release mode
andrewwhitehead Jan 26, 2023
ec2b2af
clean up clippy warnings
andrewwhitehead Jan 26, 2023
bf16a00
fix merge artifact
andrewwhitehead Mar 6, 2023
1a5cb16
Merge pull request #89 from andrewwhitehead/upd/deps
berendsliedrecht Mar 7, 2023
15a748a
fix(js): ensure scan is freed after fetchAll (#108)
genaris Mar 7, 2023
1b5079e
fix(js): several fixes for js wrapper (#111)
TimoGlastra Mar 7, 2023
8954ebc
restrict default max conns to a range for sqlite (#114)
andrewwhitehead Mar 7, 2023
ee4e5aa
feat: migration pre-upgrade script (#104)
berendsliedrecht Mar 8, 2023
9fbaae1
chore: update version to dev.4 (#113)
TimoGlastra Mar 8, 2023
e662d96
fix: key handle name
TimoGlastra Mar 11, 2023
8494894
chore: updated header and generation
Mar 13, 2023
d473a4e
feat(js): indy-sdk to askar migration
Mar 13, 2023
27b0a85
fix(js): fixed the nodejs tests
Mar 13, 2023
56b7808
test(js): added small migration tests and mock wallet
Mar 13, 2023
dc21dc7
fix(js): use the correct name for the RN function
Mar 13, 2023
7b983a1
fix(js): add migrateIndySdk to hostobject
Mar 13, 2023
ac97633
fix(js): added migrateIndySdk to header
Mar 13, 2023
b501e2e
fix: do not add PAGE_SIZE to the header
Mar 13, 2023
7959ccb
fix(js): removed logger setup
Mar 13, 2023
be3ef44
fix(js): use new header file
Mar 13, 2023
940c81d
fix(js): remove intptr_t because it collides on strict Android
Mar 13, 2023
e3ad1a8
Merge pull request #119 from animo/fix/key-handle-name
berendsliedrecht Mar 13, 2023
2bc5fa7
Merge branch 'main' into js/add-migration
berendsliedrecht Mar 13, 2023
ef7a71b
Merge pull request #120 from blu3beri/js/add-migration
berendsliedrecht Mar 13, 2023
c066513
chore: update version
Mar 14, 2023
53f1e21
fix(js): defer library loading for nodejss
genaris Mar 14, 2023
93dfcc1
Merge pull request #121 from blu3beri/update-version
berendsliedrecht Mar 14, 2023
9d97b86
build(deps): bump http-cache-semantics in /wrappers/javascript
dependabot[bot] Mar 14, 2023
8836820
Merge branch 'main' into fix/nodejs-loadlibrary
genaris Mar 14, 2023
4a7fbe3
fix(js): integrate handleError in NodeJSAriesAskar
genaris Mar 14, 2023
890ef57
Merge pull request #122 from genaris/fix/nodejs-loadlibrary
berendsliedrecht Mar 15, 2023
9540f1c
Merge branch 'main' into dependabot/npm_and_yarn/wrappers/javascript/…
berendsliedrecht Mar 15, 2023
2ca652d
Merge pull request #92 from hyperledger/dependabot/npm_and_yarn/wrapp…
berendsliedrecht Mar 15, 2023
5e54ce4
fix(js): downcast with static cast (#123)
berendsliedrecht Mar 17, 2023
0dc0715
chore(js): update version
Mar 17, 2023
85444c7
Merge pull request #124 from blu3beri/update-version
berendsliedrecht Mar 17, 2023
48d009d
update version to 0.2.8
andrewwhitehead Mar 1, 2023
b8a3532
update JS wrapper version
andrewwhitehead Mar 29, 2023
91e3e45
Merge pull request #117 from andrewwhitehead/ver-0.2.8
andrewwhitehead Mar 29, 2023
d510557
fix(js)add argon2i(mod|int) support
Apr 3, 2023
df3012d
Merge branch 'main' into fix/argon2i-support
berendsliedrecht Apr 3, 2023
32005b9
fix(js)add argon2i(mod|int) support
Apr 3, 2023
8108823
chore: fixed some eslint warnings
Apr 3, 2023
9f088c8
Merge pull request #127 from blu3beri/fix/argon2i-support
berendsliedrecht Apr 3, 2023
0c3e830
chore(js): update version (#128)
berendsliedrecht Apr 4, 2023
674b365
fix(nodejs): compatible with Windows builds (#132)
berendsliedrecht Apr 28, 2023
0d687c3
fix(js): scan fetch record limit (#137)
genaris May 10, 2023
660eda5
chore: lower iOS compatibility
May 17, 2023
64abc86
build: increase rustc version for hashbrown support
May 17, 2023
5c6e0df
Merge pull request #139 from blu3beri/lower-ios-compatibility
berendsliedrecht May 17, 2023
777ec8a
feat(js): allow custom native bindings for RN
May 17, 2023
1b04a20
Merge pull request #140 from blu3beri/js/allow-custom-native-bindings
berendsliedrecht May 17, 2023
f0e59d0
chore(js): update version
May 17, 2023
69f0964
Merge pull request #141 from blu3beri/update-version
berendsliedrecht May 17, 2023
9bb22e7
feat: react native > 0.71.x support and Expo
May 19, 2023
74db78e
Merge pull request #142 from blu3beri/feat/rn-higher-version-support
berendsliedrecht May 22, 2023
b0b0975
chore: update version
May 22, 2023
1c1d6d4
Merge pull request #143 from blu3beri/update-version
swcurran May 22, 2023
3ecb7f6
build(android): use custom cross images (#144)
berendsliedrecht May 25, 2023
5d46116
chore: update version (#145)
berendsliedrecht May 26, 2023
05b0dcf
fix(rn): android works with JSC and Hermes (#147)
berendsliedrecht Jun 1, 2023
9b1469c
chore: update version
Jun 1, 2023
66e6b3d
Merge pull request #148 from blu3beri/update-version
berendsliedrecht Jun 1, 2023
fbc4436
created maven repo
KolbyRKunz Jun 1, 2023
e235901
chore: update to stable version (#149)
berendsliedrecht Jun 2, 2023
ce11edd
build library only; use consistent rust compiler version
andrewwhitehead Jan 27, 2023
88f7558
add docstrings
andrewwhitehead Jan 28, 2023
27f939b
make category and kind filters optional for count, scan, fetch_all, r…
andrewwhitehead Jan 28, 2023
a9cbcef
refactor storage traits and implementation into separate crate
andrewwhitehead Jan 30, 2023
3495c97
update postgres test DB handling
andrewwhitehead Jan 31, 2023
1f909ca
move any module
andrewwhitehead Jan 31, 2023
2d30c0d
clean up public API of main crate; add test of key storage
andrewwhitehead Jan 31, 2023
f9c01f9
clean up warnings
andrewwhitehead Mar 8, 2023
208923b
revert change to build actions
andrewwhitehead Mar 8, 2023
1e57d20
fix pg_test feature
andrewwhitehead Mar 8, 2023
10e06b3
use thread::available_parallelism instead of num_cpus crate
andrewwhitehead Mar 18, 2023
4649a9e
clean up warnings
andrewwhitehead May 17, 2023
40d14a0
use json macro to avoid unwrap
andrewwhitehead May 17, 2023
7fac097
restore logging during tests
andrewwhitehead May 17, 2023
8fa2043
update to hex-literal 0.4
andrewwhitehead May 17, 2023
8e1861c
trouble shooting Ios issues
KolbyRKunz Jun 2, 2023
182b26a
designated arm64 sim for ios
KolbyRKunz Jun 2, 2023
a3970b3
updated default json of some classes
KolbyRKunz Jun 5, 2023
4a59304
removed memscope from top level functions
KolbyRKunz Jun 5, 2023
474c99a
fixed metadata being null
KolbyRKunz Jun 6, 2023
764f04f
Updated Maven wrapper version
KolbyRKunz Jun 6, 2023
64aa483
updated key to use byte arrays
KolbyRKunz Jun 6, 2023
b0932b9
Overloaded seal to accept byte arrays as well as strings
KolbyRKunz Jun 6, 2023
0556a87
Updating strings to byte arrays to preserve data
KolbyRKunz Jun 6, 2023
ef9b9f2
More byte array adjustments
KolbyRKunz Jun 6, 2023
7ba1f1f
publish and update gitignore
KolbyRKunz Jun 6, 2023
11cde0d
published and updated more strings to byte arrays
KolbyRKunz Jun 6, 2023
ad4ee89
nonce to byte array in cryto box
KolbyRKunz Jun 6, 2023
4f340ef
Only return strings when we are sure they are strings
KolbyRKunz Jun 7, 2023
5377ebe
Updated build gradle
KolbyRKunz Jun 7, 2023
5872a4c
updated entry objects to use maps
KolbyRKunz Jun 7, 2023
85d6704
publish
KolbyRKunz Jun 7, 2023
f03cb94
Updated maps to be raw strings
KolbyRKunz Jun 8, 2023
efcc9ad
publishing
KolbyRKunz Jun 8, 2023
53e687d
Updating scan to not return freed memory
KolbyRKunz Jun 9, 2023
e24da5a
Updates to the README and other Admin files in the repository
swcurran Jun 19, 2023
89119df
Merge pull request #90 from andrewwhitehead/upd/refactor-storage
andrewwhitehead Jun 23, 2023
891e6c0
run tests on rust 1.64 (required by hashbrown dependency)
andrewwhitehead Jun 23, 2023
c9192f9
update JS wrapper dependencies
andrewwhitehead Jun 23, 2023
44ea9a4
fix lint errors
andrewwhitehead Jun 23, 2023
f4fe9c0
Merge pull request #153 from andrewwhitehead/upd/deps2
swcurran Jun 24, 2023
f517bcf
Merge branch 'main' into readme-and-more
andrewwhitehead Jun 26, 2023
ba43035
Update relationship to Indy - replacement not a re-implementation
swcurran Jun 26, 2023
4cdbb0a
Merge pull request #151 from swcurran/readme-and-more
andrewwhitehead Jun 29, 2023
3ecdf8c
Correct Daniel Hardman's github id
ryjones Jun 30, 2023
927a495
Merge pull request #154 from hyperledger/ryjones-patch-1
ryjones Jun 30, 2023
c116b59
fix compile error under newer tokio version
andrewwhitehead Jun 30, 2023
415f66a
fix compiler warnings
andrewwhitehead Jun 30, 2023
9580c6a
minor cleanup
andrewwhitehead Jun 30, 2023
fd2b1aa
fix linting errors
andrewwhitehead Jun 30, 2023
358348d
Merge pull request #155 from andrewwhitehead/fix/tokio-build-error
andrewwhitehead Jun 30, 2023
5347068
build(deps): bump semver from 5.7.1 to 5.7.2 in /wrappers/javascript
dependabot[bot] Jul 12, 2023
3e8fdb2
Merge pull request #156 from hyperledger/dependabot/npm_and_yarn/wrap…
swcurran Jul 12, 2023
cb256c7
update elliptic curve dependencies
andrewwhitehead Jul 18, 2023
b8b9f4b
add p-384 elliptic curve support
andrewwhitehead Jul 18, 2023
3c086fb
update base64 dependency
andrewwhitehead Jul 18, 2023
ecc284e
update argon2 dependency
andrewwhitehead Jul 18, 2023
769c904
update encryption dependencies
andrewwhitehead Jul 18, 2023
b00f779
update to sqlx 0.7
andrewwhitehead Jul 18, 2023
f650f88
increase minimum rust version
andrewwhitehead Jul 18, 2023
03b0f4f
remove inactive BBS crate
andrewwhitehead Jul 18, 2023
693c040
keep going on error closing test DB lock transaction
andrewwhitehead Jul 18, 2023
692468c
reduce log level for debug statements
andrewwhitehead Jul 18, 2023
2d965ab
Merge pull request #157 from andrewwhitehead/upd/deps3
andrewwhitehead Jul 19, 2023
37a8f10
build(deps): bump word-wrap from 1.2.3 to 1.2.4 in /wrappers/javascript
dependabot[bot] Jul 19, 2023
3f55072
Merge pull request #158 from hyperledger/dependabot/npm_and_yarn/wrap…
andrewwhitehead Jul 19, 2023
6af7ebc
fix(js): storeRekey in React Native (#161)
genaris Aug 2, 2023
9559687
(python) add autocommit flag to transaction
andrewwhitehead Aug 2, 2023
da41e4e
Merge pull request #162 from andrewwhitehead/feat/session-autocommit
andrewwhitehead Aug 3, 2023
26cbd92
chore: update version for js wrapper (#165)
TimoGlastra Aug 4, 2023
309d5bd
add methods to list profiles, get and set the default profile, and co…
andrewwhitehead Jun 30, 2023
b54494d
sync with update to sqlx 0.7
andrewwhitehead Jul 19, 2023
4f309b8
export FFI functions to copy store, get and set the default profile name
andrewwhitehead Jul 20, 2023
e0ff224
fix tags column index
andrewwhitehead Jul 20, 2023
c928de3
use more compatible type hint
andrewwhitehead Jul 20, 2023
1666fa1
revert change to minimum connections
andrewwhitehead Jul 20, 2023
f593e18
fix signature for set_default_profile
andrewwhitehead Jul 21, 2023
4df32d4
fix empty where clause
andrewwhitehead Aug 8, 2023
79ee509
disable shared cache by default for sqlite connections
andrewwhitehead Aug 8, 2023
9172fe2
Merge pull request #159 from andrewwhitehead/import-api
andrewwhitehead Aug 10, 2023
e6f5c86
fix(js): add p384 key algo
genaris Aug 14, 2023
1e67835
Merge pull request #168 from genaris/fix/js-p384-support
andrewwhitehead Aug 16, 2023
a0307cb
fix(js)!: use patched ref-napi/ffi-napi for nodejs (#171)
genaris Aug 18, 2023
c27f2c7
Introduce uniffi module and Swift wrapper
conanoc Aug 25, 2023
63366e7
fix: updated fetch all to not launch its own process
KolbyRKunz Aug 29, 2023
df115a8
added uniffi bindings
KolbyRKunz Aug 30, 2023
a005e2e
Generate KMM bindings
TheTreek Aug 30, 2023
a84f97f
feat: universal now includes uffi
KolbyRKunz Aug 31, 2023
f8c55c4
feat: uniffi bindings
KolbyRKunz Aug 31, 2023
88e4152
chore: clear kotlin wrapper
KolbyRKunz Aug 31, 2023
ae22538
Merge branch 'feat/kotlinWrapperUniffi' into feat/KotlinUniffi
KolbyRKunz Aug 31, 2023
28a1352
feat: gradle syncs in kotlin wrapper
KolbyRKunz Sep 1, 2023
8cbbdd3
feat: build progress
KolbyRKunz Sep 5, 2023
47bb106
feat: build working and bindings callable. TODO: Refactor to use bind…
KolbyRKunz Sep 6, 2023
4cb7d06
feat: initial uniffi wrapper
KolbyRKunz Sep 7, 2023
ece61c3
feat: refactored code and attempted to get android running
KolbyRKunz Sep 8, 2023
f489748
feat: android tests running on device
KolbyRKunz Sep 11, 2023
58dbe2d
feat: first set of tests working
KolbyRKunz Sep 12, 2023
a7307d8
feat: All tests passing on all platforms
KolbyRKunz Sep 13, 2023
829458f
feat: working tests
KolbyRKunz Oct 30, 2023
ab1435d
Modify build.yml
dkulic Dec 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
589 changes: 437 additions & 152 deletions .github/workflows/build.yml

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
.vscode
target
*.bak.db
*.db-shm
*.db-wal
Cargo.lock
.DS_Store
*.tgz
*.so
.npmrc
out
166 changes: 166 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
# [Hyperledger Code of Conduct](https://wiki.hyperledger.org/community/hyperledger-project-code-of-conduct)

Hyperledger is a collaborative project at The Linux Foundation. It is an open-source and open
community project where participants choose to work together, and in that process experience
differences in language, location, nationality, and experience. In such a diverse environment,
misunderstandings and disagreements happen, which in most cases can be resolved informally. In rare
cases, however, behavior can intimidate, harass, or otherwise disrupt one or more people in the
community, which Hyperledger will not tolerate.

A **Code of Conduct** is useful to define accepted and acceptable behaviors and to promote high
standards of professional practice. It also provides a benchmark for self evaluation and acts as a
vehicle for better identity of the organization.

This code (**CoC**) applies to any member of the Hyperledger community – developers, participants in
meetings, teleconferences, mailing lists, conferences or functions, etc. Note that this code
complements rather than replaces legal rights and obligations pertaining to any particular
situation.

## Statement of Intent

Hyperledger is committed to maintain a **positive** [work environment](#work-environment). This
commitment calls for a workplace where [participants](#participant) at all levels behave according
to the rules of the following code. A foundational concept of this code is that we all share
responsibility for our work environment.

## Code

1. Treat each other with [respect](#respect), professionalism, fairness, and sensitivity to our many
differences and strengths, including in situations of high pressure and urgency.

2. Never [harass](#harassment) or [bully](#workplace-bullying) anyone verbally, physically or
[sexually](#sexual-harassment).

3. Never [discriminate](#discrimination) on the basis of personal characteristics or group
membership.

4. Communicate constructively and avoid [demeaning](#demeaning-behavior) or
[insulting](#insulting-behavior) behavior or language.

5. Seek, accept, and offer objective work criticism, and [acknowledge](#acknowledgement) properly
the contributions of others.

6. Be honest about your own qualifications, and about any circumstances that might lead to conflicts
of interest.

7. Respect the privacy of others and the confidentiality of data you access.

8. With respect to cultural differences, be conservative in what you do and liberal in what you
accept from others, but not to the point of accepting disrespectful, unprofessional or unfair or
[unwelcome behavior](#unwelcome-behavior) or [advances](#unwelcome-sexual-advance).

9. Promote the rules of this Code and take action (especially if you are in a
[leadership position](#leadership-position)) to bring the discussion back to a more civil level
whenever inappropriate behaviors are observed.

10. Stay on topic: Make sure that you are posting to the correct channel and avoid off-topic
discussions. Remember when you update an issue or respond to an email you are potentially
sending to a large number of people.

11. Step down considerately: Members of every project come and go, and the Hyperledger is no
different. When you leave or disengage from the project, in whole or in part, we ask that you do
so in a way that minimizes disruption to the project. This means you should tell people you are
leaving and take the proper steps to ensure that others can pick up where you left off.

## Glossary

### Demeaning Behavior

is acting in a way that reduces another person's dignity, sense of self-worth or respect within the
community.

### Discrimination

is the prejudicial treatment of an individual based on criteria such as: physical appearance, race,
ethnic origin, genetic differences, national or social origin, name, religion, gender, sexual
orientation, family or health situation, pregnancy, disability, age, education, wealth, domicile,
political view, morals, employment, or union activity.

### Insulting Behavior

is treating another person with scorn or disrespect.

### Acknowledgement

is a record of the origin(s) and author(s) of a contribution.

### Harassment

is any conduct, verbal or physical, that has the intent or effect of interfering with an individual,
or that creates an intimidating, hostile, or offensive environment.

### Leadership Position

includes group Chairs, project maintainers, staff members, and Board members.

### Participant

includes the following persons:

- Developers
- Member representatives
- Staff members
- Anyone from the Public partaking in the Hyperledger work environment (e.g. contribute code,
comment on our code or specs, email us, attend our conferences, functions, etc)

### Respect

is the genuine consideration you have for someone (if only because of their status as participant in
Hyperledger, like yourself), and that you show by treating them in a polite and kind way.

### Sexual Harassment

includes visual displays of degrading sexual images, sexually suggestive conduct, offensive remarks
of a sexual nature, requests for sexual favors, unwelcome physical contact, and sexual assault.

### Unwelcome Behavior

Hard to define? Some questions to ask yourself are:

- how would I feel if I were in the position of the recipient?
- would my spouse, parent, child, sibling or friend like to be treated this way?
- would I like an account of my behavior published in the organization's newsletter?
- could my behavior offend or hurt other members of the work group?
- could someone misinterpret my behavior as intentionally harmful or harassing?
- would I treat my boss or a person I admire at work like that ?
- Summary: if you are unsure whether something might be welcome or unwelcome, don't do it.

### Unwelcome Sexual Advance

includes requests for sexual favors, and other verbal or physical conduct of a sexual nature, where:

- submission to such conduct is made either explicitly or implicitly a term or condition of an
individual's employment,
- submission to or rejection of such conduct by an individual is used as a basis for employment
decisions affecting the individual,
- such conduct has the purpose or effect of unreasonably interfering with an individual's work
performance or creating an intimidating hostile or offensive working environment.

### Workplace Bullying

is a tendency of individuals or groups to use persistent aggressive or unreasonable behavior (e.g.
verbal or written abuse, offensive conduct or any interference which undermines or impedes work)
against a co-worker or any professional relations.

### Work Environment

is the set of all available means of collaboration, including, but not limited to messages to
mailing lists, private correspondence, Web pages, chat channels, phone and video teleconferences,
and any kind of face-to-face meetings or discussions.

## Incident Procedure

To report incidents or to appeal reports of incidents, send email to Mike Dolan
([email protected]) or Angela Brown ([email protected]). Please include any
available relevant information, including links to any publicly accessible material relating to the
matter. Every effort will be taken to ensure a safe and collegial environment in which to
collaborate on matters relating to the Project. In order to protect the community, the Project
reserves the right to take appropriate action, potentially including the removal of an individual
from any and all participation in the project. The Project will work towards an equitable resolution
in the event of a misunderstanding.

## Credits

This code is based on the
[W3C’s Code of Ethics and Professional Conduct](https://www.w3.org/Consortium/cepc) with some
additions from the [Cloud Foundry](https://www.cloudfoundry.org/)‘s Code of Conduct.
77 changes: 38 additions & 39 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
[workspace]
members = ["askar-bbs", "askar-crypto"]
members = ["askar-crypto", "askar-storage"]

[package]
name = "aries-askar"
version = "0.2.5"
version = "0.2.9"
authors = ["Hyperledger Aries Contributors <[email protected]>"]
edition = "2018"
edition = "2021"
description = "Hyperledger Aries Askar secure storage"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/hyperledger/aries-askar/"
categories = ["cryptography", "database"]
keywords = ["hyperledger", "aries", "ssi", "verifiable", "credentials"]
rust-version = "1.65"

[[bin]]
name = "uniffi-bindgen"
path = "uniffi/uniffi-bindgen.rs"
required-features = ["uffi"]

[lib]
name = "aries_askar"
Expand All @@ -24,61 +30,54 @@ no-default-features = true
rustdoc-args = ["--cfg", "docsrs"]

[features]
default = ["all_backends", "ffi", "logger"]
all_backends = ["any", "postgres", "sqlite"]
any = []
ffi = ["any", "ffi-support", "logger"]
default = ["all_backends", "ffi", "logger", "migration"]
all_backends = ["postgres", "sqlite"]
ffi = ["ffi-support", "logger"]
uffi = ["uniffi", "all_backends", "logger", "tokio", "ffi"]
jemalloc = ["jemallocator"]
logger = ["env_logger", "log"]
postgres = ["sqlx", "sqlx/postgres", "sqlx/tls"]
sqlite = ["num_cpus", "sqlx", "sqlx/sqlite"]
pg_test = ["postgres"]
logger = ["env_logger", "log", "askar-storage/log"]
postgres = ["askar-storage/postgres"]
sqlite = ["askar-storage/sqlite"]
pg_test = ["askar-storage/pg_test"]
migration = ["askar-storage/migration"]

[dev-dependencies]
hex-literal = "0.3"
[build-dependencies]
uniffi_build = { git = "https://github.com/mozilla/uniffi-rs.git", rev= "22b8c21f117faa95c6d398baad463ef7f108749e" }
uniffi_bindgen = { git = "https://github.com/mozilla/uniffi-rs.git", rev= "22b8c21f117faa95c6d398baad463ef7f108749e" }
uniffi-kotlin-multiplatform = { path = "uniffi-kotlin-multiplatform-bindings" }
camino = "1.1.1"

[dependencies]
async-lock = "2.5"
async-stream = "0.3"
bs58 = "0.4"
chrono = "0.4"
digest = "0.10"
env_logger = { version = "0.9", optional = true }
ffi-support = { version = "0.4", optional = true }
futures-lite = "1.11"
hex = "0.4"
hmac = "0.12"
indy-wql = "0.4"
itertools = "0.10"
jemallocator = { version = "0.3", optional = true }
jemallocator = { version = "0.5", optional = true }
log = { version = "0.4", optional = true }
num_cpus = { version = "1.0", optional = true }
once_cell = "1.5"
percent-encoding = "2.0"
serde = { version = "1.0", features = ["derive"] }
serde_bytes = "0.11"
serde_cbor = "0.11"
serde_json = "1.0"
sha2 = "0.10"
tokio = { version = "1.5", features = ["time"] }
url = { version = "2.1", default-features = false }
uuid = { version = "0.8", features = ["v4"] }
zeroize = "1.4"
tokio = { version = "1.5", optional = true }
uniffi = { git = "https://github.com/mozilla/uniffi-rs.git", rev= "22b8c21f117faa95c6d398baad463ef7f108749e", features = ["build", "cli", "tokio"], optional = true}
uniffi_macros = { git = "https://github.com/mozilla/uniffi-rs.git", rev= "22b8c21f117faa95c6d398baad463ef7f108749e" }
uniffi_bindgen = { git = "https://github.com/mozilla/uniffi-rs.git", rev= "22b8c21f117faa95c6d398baad463ef7f108749e" }
uniffi-kotlin-multiplatform = { path = "uniffi-kotlin-multiplatform-bindings" }
camino = "1.1.1"

zeroize = "1.5"

[dependencies.askar-crypto]
version = "0.2.5"
path = "./askar-crypto"
features = ["all_keys", "any_key", "argon2", "crypto_box", "std"]

[dependencies.sqlx]
version = "0.5.12"
[dependencies.askar-storage]
version = "0.1.0"
path = "./askar-storage"
default-features = false
features = ["chrono", "runtime-tokio-rustls"]
optional = true
features = ["any"]

[profile.release]
lto = true
codegen-units = 1

[[test]]
name = "backends"
lto = true
panic = "abort"
6 changes: 6 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[target.aarch64-unknown-linux-gnu]
image = "ghcr.io/rust-cross/manylinux2014-cross:aarch64"

[target.x86_64-unknown-linux-gnu]
image = "ghcr.io/rust-cross/manylinux2014-cross:x86_64"

Loading