BlockstreamResearch / simfony

Rust-like high-level language that compiles down to Simplicity bytecode. Work in progress.
19 stars 6 forks source link

Decimal literals #45

Closed uncomputable closed 3 months ago

uncomputable commented 3 months ago

Add support for decimal literals to u128 and u256. This means that all unsigned integer types now support bit, byte and decimal literals. Introduce the U256 struct to handle 256-bit unsigned integers.

uncomputable commented 3 months ago

For now, 256-bit arithmetic is not required, because there is no pure Simfony runtime. Simfony programs are compiled to Simplicity and run inside the Simplicity runtime.