schema-include av.tcl
schema-include fpr.tcl

signed {
    {field load {with load}}
    {field sigs {list} {of sig} >0 optional}
    {field pubs {list} {of map} >0 optional}
}

load {
    {field . {map}}
    {field t {str} >0}
}

sig {
    {field tbs {with tbs}}
    {field sign {with av}}
}

tbs {
    {field . {map}}
    {field sid {with fpr}}
    {field nonce {bin} >0 optional} {# random bytes}
    {field when {tai} utc prec=ms optional}

    {# recipient's fingerprints}
    {field encrypted-to {list} {of fpr} >0 optional}
}

schema-include signed-prehash.tcl