pod2/book/src/signedpod.md
tideofwords dc6b5553e8
Merge changes to docs (#41)
* Merge changes to docs

* Fix typo

* Correct SUMMARY so it compiles; update .gitignore

* Clean up statements.md

Make syntax and notation consistent with Rust source code.

* Fix statements for Merkle trees and compound types

* First draft of custom statements and small updates to signedpod.md

* Update book/src/merkletree.md

Co-authored-by: Ahmad Afuni <root@ahmadafuni.com>

* merklestatements correct typo

Co-authored-by: Ahmad Afuni <root@ahmadafuni.com>

* add todo for gadget ids

Co-authored-by: Ahmad Afuni <root@ahmadafuni.com>

* Remove custom statements, will do on separate branch

* Restore Merkle examples and statements table

---------

Co-authored-by: Ahmad Afuni <root@ahmadafuni.com>
2025-02-10 19:06:45 +01:00

786 B

SignedPod

A SignedPod consists of the following fields:

  • mt: key-values storage, internally it's a MerkleTree so that we can generate proofs on the key-values
    • it can only contain ValueOf statements.
    • the Signer's public key is one of the key-values in the kvs.
  • id: the Root of the kvs MerkleTree
  • signature: a signature over the id
  • signer: the public key attached to the digital signature signature
  • type: the constant SIGNATURE

Example of SignedPod:

{
    id: "05f7a6de...",
    kvs : {
        _signerKey: "5e1c0b3c...",
        idNumber: "94e328a7...",
        dateOfBirth: 1169909384,
        socialSecurityNum: "1111"
    },
    signature: "68b615f7..."
}