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

v1.8.0 #238

Merged
merged 15 commits into from
Nov 5, 2020
Merged

v1.8.0 #238

merged 15 commits into from
Nov 5, 2020

Conversation

jasonpaulos
Copy link
Contributor

@jasonpaulos jasonpaulos commented Nov 3, 2020

Added

  • Add encodeAddress and decodeAddress to convert between the binary and text form of Algorand addresses (#216).
  • Add encodeUnsignedTransaction, decodeUnsignedTransaction, decodeSignedTransaction to convert between binary transactions and transaction objects (#218).
  • Add optional rekeyTo parameter to transaction builder functions (#221).
  • Support testing on Chrome and Firefox in addition to Node (#228 and #235).

Fixed

  • Update keccak to 3.0.1, which fixes a build error that would occur every time the package was installed (#151).
  • Allow assignGroupID to accept raw transaction objects and instances of the Transaction class (#236).
  • Allow signTransaction to accept instances of the Transaction class (#233).
  • Improve type checking and documentation (#233 and #231).

Changed

jasonpaulos and others added 15 commits September 25, 2020 11:25
* Add way to encode/decode addresses from binary
)

It is a very common use case that js user-devs wish to take a Transaction, convert it to bytes, and then convert it back to a Transaction - either for reading and writing to file, coming in as bytes from a wire, or something else. The js-sdk does support this, but usage is non-obvious and error-prone. So, this commit adds three functions to algosdk: encodeUnsignedTransaction to turn a Transaction into bytes, decodeUnsignedTransaction to take those bytes back to a Transaction, and decodeSignedTransaction to take the output of Transaction.signTxn and turn it into something more usable. (decodeSignedTransaction would also work on the blob member of the object output by algosdk.signTransaction).

Review: #218
Resolves: #114 #176
* Update Keccak library to 3.0.1

 - Fixes #126

* Add test for htlc keccak hash function

Co-authored-by: Jason Paulos <jasonpaulos@users.noreply.github.com>
A bigint is used only when the decoded number cannot fit in to a Number.

Resolves: #130
Allow our mocha tests and SDK unit and integration tests to run in browsers.
* Fix browser arguments

* Add workaround for firefox testing

* Require firefox tests to pass

* Simplify dockerfile
* Update tweetnacl

* Update superagent
@jasonpaulos jasonpaulos merged commit c2fafd0 into master Nov 5, 2020
@jasonpaulos jasonpaulos deleted the release/1.8.0 branch November 5, 2020 15:21
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.

5 participants