Skip to content

v13.1.0

Compare
Choose a tag to compare
@Shaptic Shaptic released this 28 Mar 23:22
· 1 commit to master since this release
087e2d6

v13.1.0

Added

  • nativeToScVal now supports encoding Keypairs as addresses (#794).
  • Within authorizeEntry, the SigningCallback callback function should now return an object containing both the signature and the identity of the signer. In multi-signature situations, it isn't necessarily the case that the address within the authorization entry is the one that actually signs that entry. Thus, the callback now takes the following form, where the original Promise<BufferLike> option is preserved for backwards compatibility and should be considered deprecated (#783):
export type SigningCallback = (
  preimage: xdr.HashIdPreimage
) => Promise<
  BufferLike |
  { signature: BufferLike, publicKey: string }
>;

Fixed

  • scValToNative will decode addresses more efficiently and reliably (#794).