The explorer is out of sync. The last synced block is 526 hours ago. Current block height: explorer: 2206528 / node: 2542500 / ref: 2492275

Program cost_tests_calc_v004.aleo

Program ID
cost_tests_calc_v004.aleo
Owner signature
sign1hnrl82hxqeej44e0m0c0hzqlak5hrym2wuvxna0n2rfegcxawyq77fh6hum2cu3034lcwwys9cfhyvycuj9z0dl7fya7r4x22yxfvqc6t4ta270vkd8sjaqr9ru9ycrdcca9l8rlad44d6855720ej55qj56tcupqtrrn069wzqtvjeqsrdjx7tmlzp56dkw7ee2h96ww75q5yzse50
Times called
2
Similar programs
Imports
-
Mappings
randomness_u8 (u8 -> [u8; 5u32])
randomness_u32 (u32 -> [u32; 5u32])
Structs
-
Records
-
Functions
-
Transitions
random(u8) -> () finalize(u8)
prandom(u32) -> () finalize(u32)
Program Source Code (Aleo Instruction) Upload Leo source

program cost_tests_calc_v004.aleo;

mapping randomness_u8:
    key as u8.public;
    value as [u8; 5u32].public;

mapping randomness_u32:
    key as u32.public;
    value as [u32; 5u32].public;

function random:
    input r0 as u8.private;
    async random r0 into r1;
    output r1 as cost_tests_calc_v004.aleo/random.future;
finalize random:
    input r0 as u8.public;
    rand.chacha into r1 as u8;
    rand.chacha into r2 as u8;
    rand.chacha into r3 as u8;
    rand.chacha into r4 as u8;
    rand.chacha into r5 as u8;
    cast r1 r2 r3 r4 r5 into r6 as [u8; 5u32];
    set r6 into randomness_u8[r0];

function prandom:
    input r0 as u32.private;
    async prandom r0 into r1;
    output r1 as cost_tests_calc_v004.aleo/prandom.future;
finalize prandom:
    input r0 as u32.public;
    rand.chacha into r1 as u32;
    mod r1 100u32 into r2;
    mod r1 5433452u32 into r3;
    mod r3 100u32 into r4;
    mod r1 27552u32 into r5;
    mod r5 100u32 into r6;
    mod r1 15433452u32 into r7;
    mod r7 100u32 into r8;
    mod r1 92452u32 into r9;
    mod r9 100u32 into r10;
    cast r2 r4 r6 r8 r10 into r11 as [u32; 5u32];
    set r11 into randomness_u32[r0];

Block heightTimestampTransition IDFunction callState
1,730,8042024-03-14 08:23:22au1x5l5pca2nf9caf0ew2r042s0z7m2jexwacg4j2z5f0mku69fcyrsmag9uaprandomAccepted
1,730,7952024-03-14 08:22:47au1ak2wtp0ec0t8xjt98pswt0zy667zcla45p7z7jw5vk2w3msxlurqp9ywx3prandomAccepted




Not implemented