This commit is contained in:
2025-07-12 12:28:01 +03:00
parent 49bd1b84ff
commit ca6fc6f7a5
16 changed files with 389 additions and 415 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
#!/usr/bin/env -S v -n -w -cg -gc none -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.data.encoder
import crypto.ed25519
@@ -30,9 +30,9 @@ console.print_debug('${e.data}')
// do decoding
mut d := encoder.decoder_new(e.data)
mut aa := AStruct{}
aa.items = d.get_list_string()
aa.nr = d.get_int()
aa.privkey = d.get_bytes()
aa.items = d.get_list_string()!
aa.nr = d.get_int()!
aa.privkey = d.get_bytes()!
assert a == aa