extend cert with server and notes
[epoint] / document / document.go
index afbe31c..c550619 100644 (file)
@@ -77,6 +77,7 @@ type Cert struct {
        Date             int64  `marshal:"date"` // date of issue
        Balance          int64  // current obligation value
        Denomination     string
+       Server           string   `marshal:"id"`                 // ID of the server
        Issuer           string   `marshal:"id"`                 // ID of the obligation issuer (drawee?)
        LastDebitSerial  uint32   `key:"Last-Debit-Serial"`      // serial of the last draft cert or 0
        LastCreditSerial uint32   `key:"Last-Credit-Serial"`     // serial of the last credit cert or 0
@@ -86,7 +87,8 @@ type Cert struct {
        Drawer           string   `marshal:"id"`                   // ID of the drawer in the transaction
        DrawerSerial     uint32   `key:"Drawer-Serial"`            // serial of the drawer's related debit cert
        DrawerCert       string   `marshal:"id" key:"Drawer-Cert"` // ID of the drawer's related debit cert
-       References       []string `marshal:"idlist"`               // cert IDs for timestamping the system
+       Notes            string   // Arbitrary text notes of the server (signer)
+       References       []string `marshal:"idlist"` // cert IDs for timestamping the system
 }
 
 func DecodeClearSigned(s []byte) (c *ClearSigned, err error) {