Commit graph

3 commits

Author SHA1 Message Date
Nick Furfaro
48d27406df
Adding a generic log function (#1572)
* feat: add generic log function

* feat: use log() in require()

* refactor: rename chain module to logging

* cleanup

* docs: add mod level description and function description

* fix typo

* fix docs typo

* fixup

* cleanup: remove unused dep

* fix: restore bare chain module

* fix: update examples

* fixup

* test: add logging of different types

* refactor: use intrinsics module

* fix: remove params from intrinsic wrappers

* fmt

* style: fmt
2022-05-18 18:44:43 -07:00
Braqzen
8e3c174c1f
Added generic sha256 (#1544)
* Added generic sha256

* Update sway-lib-std/src/hash.sw

Co-authored-by: John Adler <adlerjohn@users.noreply.github.com>

* Inlined comments and updated formatting

* Cleaned up asm

* Fixing import

* Updating tests, WIP

* Pushing up tests that fail to compile

* Updating docs

* Formatting

* Updating compiler intrinsics

* Saving before pulling master in

* Updated tests

* Fixed formatting

* Starting to add hash validation for testing

* Updated integers

* Added str hashing

* Added concrete tuple validation

* Added concrete array validation

* Added concrete enum validation

* Added b256 validation

* Formatting & core::num update

* Testing struct, WIP

* Hashing struct works

* Formatting

* Updating examples for mdbook

* Updating to buggy formatting and removed comment

* Updating import formatting

* Update sway-lib-std/src/hash.sw

Co-authored-by: John Adler <adlerjohn@users.noreply.github.com>

Co-authored-by: John Adler <adlerjohn@users.noreply.github.com>
2022-05-18 20:13:57 +01:00
Nick
c158ef700c
Hashing and Cryptography (#1362)
* hashing and cryptography

* fix deps

* signature forc toml lock

* signature forc toml example dep std

* index title

* rust to sway code example

* include fix

* book end line formatting

* Update docs/src/blockchain-development/hashing_and_cryptography.md

Co-authored-by: John Adler <adlerjohn@users.noreply.github.com>

* title, nits, formatting

* toml file

* editor level formatting fix

* editor level formatting fix

* fix formatter formatting in b512..

* fmt

Co-authored-by: SilentCicero <>
Co-authored-by: John Adler <adlerjohn@users.noreply.github.com>
Co-authored-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
2022-05-05 21:29:14 -04:00