NEWTON

NEWTON


Popular tags

    How to import uint256 in Cairo?

    Asked

    4 months ago

    2

    views


    0

    How do I import a uint256 in Cairo?

    And what is the best practice for figuring out where to find good import libraries?

    This question was originally posted on Triality

      cairocairo-lang

    1 answers

    0

    You would import uint256 using the following import statement

    from starkware.cairo.common.uint256 import Uint256

    And for find libraries to import and how to import them there is a pretty good summary at https://perama-v.github.io/cairo/cairo-common-library/. But always the easiest thing is to google or go straight to github in the starkware-libs and find what you are looking for https://github.com/starkware-libs/cairo-lang/tree/master/src/starkware/cairo/common.

    This answer was originally posted on Triality

    answered

    4 months ago

    Your answer

    NEWTON

    NEWTON