Skip to content

Releases: wevm/ox

[email protected]

04 Aug 06:19
cad577e

Choose a tag to compare

Patch Changes

  • 9a9ef21 Thanks @jxom! - Fixed zeroish conversion of chainId and nonce in Authorization.fromTuple.

[email protected]

27 Jul 13:59
f261274

Choose a tag to compare

Patch Changes

[email protected]

23 Jul 13:58
a26d407

Choose a tag to compare

Patch Changes

[email protected]

07 Jul 11:59
b8cfad0

Choose a tag to compare

Patch Changes

  • ce19a08 Thanks @jxom! - Added stack to Provider.InternalError.

[email protected]

18 Jun 13:58
11932c3

Choose a tag to compare

Patch Changes

[email protected]

14 Jun 11:11
a880970

Choose a tag to compare

Patch Changes

  • 9fd0bf0 Thanks @jxom! - Added ECDH (Elliptic Curve Diffie-Hellman) shared secrets to P256, Secp256k1, and WebCryptoP256 modules. This enables secure key agreement between parties using elliptic curve cryptography for both secp256k1 and secp256r1 (P256) curves, with support for both @noble/curves (for P256 and Secp256k1) implementation and Web Crypto APIs (WebCryptoP256).

    • P256.getSharedSecret
    • Secp256k1.getSharedSecret
    • WebCryptoP256.getSharedSecret
  • 9fd0bf0 Thanks @jxom! - Added createKeyPair helper functions for Bls, P256, and Secp256k1 modules. These functions provide a convenient way to generate complete key pairs (private key + public key) in a single operation, simplifying key generation workflows and reducing the need for separate randomPrivateKey and getPublicKey calls.

  • 9fd0bf0 Thanks @jxom! - Added Ed25519 and X25519 modules. The Ed25519 module provides functionality for creating key pairs, signing messages, and verifying signatures using the Ed25519 signature scheme. The X25519 module enables Elliptic Curve Diffie-Hellman (ECDH) key agreement operations for secure shared secret derivation.

[email protected]

12 Jun 13:51
f303e5e

Choose a tag to compare

Patch Changes

  • 74e47c5 Thanks @jxom! - Added Keystore.toKey and Keystore.toKeyAsync to derive a key from a JSON Keystore using a password.

[email protected]

08 Jun 16:15
71bb135

Choose a tag to compare

Minor Changes

  • 7fc1da0 Thanks @jxom! - Breaking(Keystore): Keystore derivation functions (e.g. Keystore.pbkdf2) now return a tuple of the key and derivation options,
    instead of an object with the key and options.

    import { Keystore } from 'ox'
    
    - const key = Keystore.pbkdf2({ password: 'testpassword' })
    + const [key, opts] = Keystore.pbkdf2({ password: 'testpassword' })
  • 7fc1da0 Thanks @jxom! - Breaking(Keystore): Keystore.decrypt function interface no longer requires an object as the second parameter, now it only requires the key itself.

    import { Keystore } from 'ox'
    
    const [key, opts] = Keystore.pbkdf2({ password: 'testpassword' })
    
    const encrypted = await Keystore.encrypt(secret, key, opts)
    
    + const decrypted = await Keystore.decrypt(encrypted, key)
  • 7fc1da0 Thanks @jxom! - Breaking(Keystore): Keystore.encrypt function interface has changed to require derivation options (opts).

    import { Keystore } from 'ox'
    
    const [key, opts] = Keystore.pbkdf2({ password: 'testpassword' })
    
    - const encrypted = await Keystore.encrypt(secret, key)
    + const encrypted = await Keystore.encrypt(secret, key, opts)

[email protected]

24 May 05:38

Choose a tag to compare

Patch Changes

[email protected]

08 May 05:22
577e59f

Choose a tag to compare

Patch Changes