Skip to content

Releases: AmbireTech/react-native-crypto

Release list

v1.0.1

Choose a tag to compare

@PetromirDev PetromirDev released this 06 Oct 13:22
da218b7

Changelog:

  • Updated: viem peer dependency from 2.45.2 to 2.56.3 #1
  • Fixed: encodeFunctionData encoding a mixed-case address with a wrong checksum, where viem refuses it #1
  • Fixed: decodeFunctionResult returning a rounded number for an int of 48 bits or fewer outside JavaScript's safe integer range, where viem throws #1
  • Fixed: decodeFunctionResult keeping a leading byte order mark in a string output, where viem drops it #1

Each of these calls is now handed back to viem, so callers get viem's own error.

Full Changelog: v1.0.0...v1.0.1

v1.0.0

Choose a tag to compare

@PetromirDev PetromirDev released this 16 Sep 17:36
aea0d6b

Rust implementations of six hot viem functions, exposed to Hermes over JSI with
uniffi-bindgen-react-native.

  • bytesToHex, checksumAddress, decodeFunctionResult, encodeFunctionData,
    hexToBytes, keccak256
  • The ABI functions take and return JSON strings, with integers wider than 48
    bits tagged as {"$bigint":"<decimal>"}
  • Matches viem's behaviour, quirks included; viem is a peer dependency pinned
    to the version the Rust was written against
  • The tarball carries the compiled Rust for every Android ABI and for iOS device
    and simulator, so installing needs no Rust toolchain
  • Requires React Native with the New Architecture and Herme