Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link

Icon LinkSway Libraries

The purpose of Sway Libraries is to contain libraries which users can import and use that are not part of the standard library.

These libraries contain helper functions and other tools valuable to blockchain development.

For more information on how to use a Sway-Libs library, please refer to the Sway-Libs Book .

Icon LinkAssets Libraries

Asset Libraries are any libraries that use Native Assets on the Fuel Network.

Icon LinkAccess Control and Security Libraries

Access Control and Security Libraries are any libraries that are built and intended to provide additional safety when developing smart contracts.

Icon LinkCryptography Libraries

Cryptography Libraries are any libraries that provided cryptographic functionality beyond what the std-lib provides.

  • Bytecode Library ; used for on-chain verification and computation of bytecode roots for contracts and predicates.
  • Merkle Proof Library ; used to verify Binary Merkle Trees computed off-chain.

Icon LinkMath Libraries

Math Libraries are libraries which provide mathematic functions or number types that are outside of the std-lib's scope.

Icon LinkData Structures Libraries

Data Structure Libraries are libraries which provide complex data structures which unlock additional functionality for Smart Contracts.

  • Queue Library ; a linear data structure that provides First-In-First-Out (FIFO) operations.