blob
This section is a work in progress.
The Kybra type blob
corresponds to the Candid type blob and will become a Python bytes at runtime.
Python:
from kybra import blob, ic, query
@query
def get_blob() -> blob:
return bytes([68, 73, 68, 76, 0, 0])
@query
def print_blob(blob: blob) -> blob:
ic.print(type(blob))
return blob
Candid:
service: {
"get_blob": () -> (blob) query;
"print_blob": (blob) -> (blob) query;
}