This commit is contained in:
2024-12-30 08:01:17 +01:00
parent dfafeecf2c
commit 7894f7d420
218 changed files with 8981 additions and 20 deletions

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.data.resp
import crypto.ed25519
mut b := resp.builder_new()
b.add(resp.r_list_string(['a', 'b']))
b.add(resp.r_int(10))
b.add(resp.r_ok())
// to get some binary
pubkey, privkey := ed25519.generate_key()!
b.add(resp.r_bytestring(privkey))
// b.data now has the info as binary data
// println(b.data)
println(b.data.bytestr())
lr := resp.decode(b.data)!
println(lr)