Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 1.02 KB

TODO.md

File metadata and controls

35 lines (31 loc) · 1.02 KB

TDOO

@jialinli98 - Write out two functions in Javascript:

Base Javascript

    {
        "identity": "0x0000",
        "in_signatures": ["baf0023e1", "baf0023e2", "baf0023e3"],
        "in_pub_keys": ["key1", "key2", "key3"],
        "out_signatures": ["baf0023e1", "baf0023e2"]
    }

Two functions:

  1. Will alter out-signatures.
    {
        "identity": "0x0000",
        "in_signatures": ["baf0023e1", "baf0023e2", "baf0023e3"],
        "in_pub_keys": ["key1", "key2", "key3"],
        "out_signatures": ["baf0023e1", "baf0023e2", "baf0023e3"] // 0x0000 signs anothers pub key
    }
  1. Will alter in-signatures & public-key list.
    {
        "identity": "0x0000",
        "in_signatures": ["baf0023e1", "baf0023e2", "baf0023e3",  "baf0023e4"], // 0x0000 has their pub key signed by key4.
        "in_pub_keys": ["key1", "key2", "key3", "Key4"],
        "out_signatures": ["baf0023e1", "baf0023e2"]
    }

TODO: Add a verification function f(pubKey, signature) -> bool