Move.

Post

Share your knowledge.

Elvin CLONE .
Mar 20, 2025
Expert Q&A

What's the `native` keyword used for in programming?

I'm trying to understand what the native keyword is used for. I know it's related to core data structures and cryptographic functions, but I need more details on its purpose and functioning. Any insights?

  • Move CLI
0
1
Share
Comments
.

Answers

1
Xavier.eth.
Mar 20 2025, 15:23

The native keyword is used in programming to indicate that certain functions or data structures are implemented at the system level or in machine language. This allows these components to run directly on the Move Virtual Machine (VM). By using this keyword, these core elements can operate more efficiently, as they bypass some of the overhead associated with higher-level language constructs. Such native implementations are often seen in critical areas like core data structures and cryptographic functions, where performance and secure operations are crucial.

1
Best Answer
Comments
.

Do you know the answer?

Please log in and share it.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Posts231Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignMay
We use cookies to ensure you get the best experience on our website.
More info