Skip to content

Conversation

@cmickeyb
Copy link
Contributor

Add OpenSSL for WASM: Build an OpenSSL v3.1.8 library that can be
linked into WASM applications (like PDO contracts). The library is BIG
(from memory consumed) relative to libraries we've been using for
contracts. You will need a PDO services compilation with HUGE memory
model.

Complete hierarchical derivative keys implementation (BIP32). Use the
new openssl library to build hardened and normal key derivations for
keys. A lot of changes...

  • dropped the custom bignum implementation, just use openssl bignums
  • copied the ecdsa private and public key implementations from pdo
  • copied the hash implementation for pdo
  • updated the makefiles to include the crypto libraries
  • updated tests for hardened and normal keys
  • included a much richer implementation of hierarchical keys
  • included a few functions that are missing from our WASI implementation

Build an OpenSSL v3.1.8 library that can be linked into WASM
applications (like PDO contracts). The library is BIG (from memory
consumed) relative to libraries we've been using for contracts. You
will need a PDO services compilation with HUGE memory model

Ultimately, this should be moved to some common directory instead of
the identity directory.

Signed-off-by: Mic Bowman <mic.bowman@intel.com>
Use the new openssl library to build hardened and normal
key derivations for keys. A lot of changes...

* dropped the custom bignum implementation, just use openssl bignums
* copied the ecdsa private and public key implementations from pdo
* copied the hash implementation for pdo
* updated the makefiles to include the crypto libraries
* updated tests for hardened and normal keys
* included a much richer implementation of hierarchical keys
* included a few functions that are missing from our WASI implementation

Signed-off-by: Mic Bowman <mic.bowman@intel.com>
@cmickeyb cmickeyb self-assigned this Mar 18, 2025
@cmickeyb cmickeyb merged commit 1ff5c25 into hyperledger-labs:cf_policy_dev Mar 18, 2025
4 checks passed
@cmickeyb cmickeyb deleted the mic.mar12.openssl branch April 22, 2025 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant