github.com/LanceLRQ/deer-common@v0.0.9-0.20210319081233-e8222ac018a8/persistence/problems/structs.go (about) 1 package problems 2 3 /********* 4 ------------------------ 5 |MAG|VER|CMT|CSZ|BSZ|PCSZ| Certificate |SSZ| Signature | Configs | Body 6 ------------------------ 7 | 2 | 2 | 4 | 4 | 4 | 2 | ... | 2 | ... 8 ------------------------ 9 **********/ 10 type ProblemPackage struct { 11 Version uint16 // (VER) Package Version 12 CommitVersion uint32 // (CMT) Commit Version 13 ConfigSize uint32 // (CSZ) Config JSON Text Size 14 BodySize uint32 // (BSZ) Result Body Size 15 CertSize uint16 // (PCSZ) Public Certificate Size 16 SignSize uint16 // (SSZ) Signature Size 17 Certificate []byte // Public Certificate 18 Signature []byte // Signature: SHA256(Configs + Body) 19 Configs []byte // Configs JSON 20 BodyPackageFile string // Body package file 21 }