Why Signum
Signum Basics

Smart Contracts

4min



Document image


Turing complete

Signum is shipped with smart contracts implemented as Automated Transactions (AT).



This system, developed initially by CIYAM, is Turing-complete and has infinite use cases. Signum was the first platform to run Turing-complete smart contracts on a public blockchain. The second unique feature of Signum's smart contracts is that they can be programmed to self-execute. Most of today's available smart contracts only react to the transactions they receive. Signum's self-running smart contracts provide endless potential for new applications. With the introduction of SIP-39, smart contracts can create, mint and transfer Smart Tokens by contract code.

Smart Contract specifications

If a smart contract gets deployed to the Signum chain, the following parameters apply:

Parameter

Value

Maximum pages for code & data

40

Page size

256 bytes

Cost per page

0,01 Signa

Maximum steps per block

1,000,000

Step-Fee

0.001 Signa

The smart contract is stored in bytecode on the chain, but the programming will happen in Java via —no extra code language to learn - just code in Java.

Smart Contract creation

The smart contract gets uploaded to the Signum chain with the AT Creation transaction type. Example smart contract creation transaction:

JSON


With the creation of a smart contract, the machineData and machineCode are saved to the Signum blockchain.

JSON


Green Contracts

With the introduction of the SIP-30, the machineCode can be loaded from an existing contract by reference over the fullhash of the reference transaction. This has two significant advantages: firstly, it can be ensured that the smart contract is using the same logic as copied from the parent, and secondly, no extra space is needed on the chain to store the code a second time or x times, as the smart contract is referencing to the code in the reference-transaction.

Updated 24 Mar 2023
Did this page help you?
Yes
No