Skip to content

change Utils.sha256 and Utils.double_sha256 input type to iodata#14

Merged
kafaichoi merged 1 commit into
masterfrom
kafai--change-sha256-input-type-to-iodata
Jun 26, 2020
Merged

change Utils.sha256 and Utils.double_sha256 input type to iodata#14
kafaichoi merged 1 commit into
masterfrom
kafai--change-sha256-input-type-to-iodata

Conversation

@kafaichoi
Copy link
Copy Markdown
Contributor

:crypto.hash already support iodata. So we should change Utils.sha256 and Utils.double_sha256 (renamed it from Utils.bin_double_sha256) to iodata which is more flexible than just binary so it can also accept like charlist, iolist.

I have also run mix format in local. We should integrate Github action to add lint and test to CI .

@kafaichoi kafaichoi merged commit 60bc3ae into master Jun 26, 2020
@philipglazman philipglazman deleted the kafai--change-sha256-input-type-to-iodata branch December 2, 2020 17:40
SachinMeier added a commit that referenced this pull request Apr 2, 2025
* add add-field funcs

* add specs and global add-field funcs

* refactor for code efficiency

* finalize add-fields funcs for psbt

* temp: fix script vs binary

* all PSBT pubkeys -> Point structs

* fix credo lint

* lint

* lint
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.

2 participants