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

Docs: Add builtins documentation for cairo vm #379

Merged
merged 8 commits into from
May 24, 2024
7 changes: 5 additions & 2 deletions docs/docs/vm-fundamentals/builtins.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Builtins Documentation #326
---
sidebar_position: 2
---
# Builtins Documentation

Regular Cairo instructions are like regular Legos, they work, but for complex things they can be slow. Builtins are special Lego pieces that snap together easily, like pre-built wheels or doors. This makes building things much faster. In a Cairo context, builtins help write clean and efficient Cairo programs, just like these special Lego pieces help build cool things faster.

Expand Down Expand Up @@ -161,7 +164,7 @@ func hash2(hash_ptr: HashBuiltin*, x, y) -> (hash_ptr: HashBuiltin*, z: felt) {

- **ecdsa**

A structure defines the memory layout for the signature builtin. It's employed by various functions in the common library, including the ecdsa builtin. For instance, in the verify_ecdsa_signature() function, there's an implicit argument of type SignatureBuiltin, which aids in tracking the next available builtin instance.
A structure defines the memory layout for the signature builtin. It's employed by various functions in the common library, including the ecdsa builtin. For instance, in the verify_ecdsa_signature() function, there's an implicit argument of type SignatureBuiltin, which points to a variable of type SignatureBuiltin

jimenezz22 marked this conversation as resolved.
Show resolved Hide resolved
The struct comprises two members of type felt:

Expand Down
Loading