X-Git-Url: http://nsz.repo.hu/git/?p=epoint;a=blobdiff_plain;f=document%2Fdocument.go;h=c55061984532a3807577c536e5274ed05d223556;hp=afbe31c3fe99166554c3a49ff5225718b728ed52;hb=39cf1c10d9551c4af216e9b72094fbe4700371f1;hpb=0f67afa98dad4de872810235afb541fe2dcfe5c4 diff --git a/document/document.go b/document/document.go index afbe31c..c550619 100644 --- a/document/document.go +++ b/document/document.go @@ -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) {