Skip to content

Dev Diary

Note of daily coding#

  • This page contains short dev stories and hyperlinks to larger part of notes.
  • Only "hard to find on google" things are noted.
  • Ordered counter-chronologically.

TODO#

2022-03-02#

  1. an ASA for each aAsset (like aBTC, aETH, ...)
  2. one verifier for all aAssets, IDEALLY. The limit of TEAL would be annoying here.
    1. We can do one contract C1 to submit ZKP verified price, one contractC2 to distribute the price.
    2. The C2 only accepts price from C1, and the price is verified by ZKP. C2 stores all the info and users will ask price from C2.
    3. In this way, the two contracts are shorter and stores less prices hence shorter.
  3. Trade and other contracts will read price from C2 in before or the only contract in (2.). (From [https://github.com/Artcoin-Network/artificial-algorand-contract/pull/8#issuecomment-1055551621])
  • How to review design docs(From ZMY)
  • Don't fix too much on details.
  • Use too much time on details.
  • When to raise issue: in most of the time we don't need to raise issue. Q&A. A full docs would be with Q&A.
  • Slides: too many questions and ambiguity. Docs can avoid these problems.
  • Docs are designed to be read to the end, maybe the "why"s are explained in the latter part.
  • Write the problem clearly, including the origin.
  • Try first then raise issue, and try to solve it.
  • Productivity > Attitude > Synchronicity
  • Confluence Inline comment has no delay publish functionality. So raise the question on the second/third reading.

2022-03-01#

Testing VSCE:

  • mushan.vscode-paste-image
  • d3v.pastespecial

More to test:

  • rockingskier.copy-copy-paste

Add to note:

  • jakob101.RelativePath
  • christian-kohler.path-intellisense

Want: VSCE: .md auto refactor when RelativePath changes. Why Obsidian made a new platform (doesn't justify closedness): 1.money; 2. too many extensions with VSCE; 3. New Hotkeys/UI.

  • Grand Meeting [Meeting 20220301 Bo Yifang Mengyuan Hao LION]

2022-02-28+#

2022-02-27+#

2022-02-26+#

  • Research >>16 , result here.
  • Git allows merge two branches (one into another).

    shell git checkout master # master is checked out git pull # update local git merge new-branch # merge branch new-branch into master git push # changes on remote. Then checkout a feature branch

  • Python math.modf can get the fractional part of a number.
  • Python wait for key press (origin): input("Press Enter to continue...")
  • GitHub get repo id: $("meta[name=octolytics-dimension-repository_id]").getAttribute('content'). Origin

2022-02-25+#

2022-02-24+#

2022-02-23+#

  • Day off

2022-02-22+#

2022-02-21+#

2022-02-20+#

2022-02-19+#

2022-02-18+#

2022-02-17+#

2022-02-16+#

2022-02-15+#

2022-02-14#

2022-02-13#

2022-02-12#

  • Organize note

2022-02-11#

  • Organize note

2022-02-10#

  • Meeting 20220210 Bo LION

2022-02-09#

2022-02-08#

2022-02-07#

  • Meeting+Algopulse 20220207 Yifang Bo LION
  • Meeting 20220207 Bo LION

2022-02-06#

2022-02-05#

2022-02-04#

2022-02-03#

2022-02-02#

2022-02-01#

2022-01-31#

2022-01-30#

2022-01-29#

  • Chinese Drama 小丈夫(not recommended)
  • AlgoPulse_first_deliver_20220128

2022-01-28#

2022-01-27#

2022-01-26#

2022-01-25#

2022-01-24#

2022-01-23#

2022-01-22#

2022-01-21#

  • #TODO Add teal note

2022-01-20#

2022-01-19#

2022-01-18#

2022-01-17#

2022-01-16#

2022-01-15#

2022-01-14#

2022-01-13#

2022-01-12#

  • refactor dev console, had some problem with the old Algorand example codes

2022-01-11#

2022-01-10#

2022-01-09#

2022-01-08#

  • No code day

2022-01-07#

  • Start Code review for AbstrLabs (wallet connection)

2022-01-06#

2022-01-05#

  • Programming > Priority codes

2022-01-04#

2022-01-03#

2022-01-02#

  • AbstrLabs: More Docs, Jira, refactor artificial-frontend and artificial-algorand-contract

2022-01-01#

  • AbstrLabs: refactor all repos, now we have new repo structure.
  • AbstrLabs: write Jira

2021-12-31#

2021-12-30#

2021-12-29#

  • Started a repo for TS version.

2021-12-28#

2021-12-27#

  • Did a little Habit ICU

2021-12-26#

  • No code day (Yoyo)

2021-12-25#

2021-12-24#

2021-12-23#

  • Low productivity day
  • Recover
  • Yoyo

2021-12-22#

2021-12-21#

2021-12-20#

2021-12-19#

  • Day off, played HelloTalk

2021-12-18#

2021-12-17#

2021-12-16#

2021-12-15#

2021-12-14#

  • rebuild habit-ICU framework
  • Learn some python and PyTeal

2021-12-13#

  • Meeting 20211213 姚博(Bo) 施云瀚(LION)
  • Meeting 20211213 马一方(Yifang) 施云瀚(LION) 姚博(Bo) 周梦远(ZMY)
  • Relax after hackathon

2021-12-12#

  • Game : snarky-holdem for Mina Bootcamp 20211209

2021-12-11#

  • Game : snarky-holdem for Mina Bootcamp 20211209

2021-12-10#

2021-12-09#

  • Mina Bootcamp 20211209

2021-12-08#

  • Habit ICU framework (undecided npx electron-react or github boilerplate)

2021-12-07#

  • Habit ICU Docs and class diagram

2021-12-06#

2021-12-05#

  • Learn and play figma, for habit-icu and AbstrLabs company website
  • Discarded Teambition, for these defections: #TODO: add to TOOL
    • Link without href tag (with onClick event)
    • Tasks in TODO cannot convert to issue/story
    • Gantt chart is not so clear
    • Chinese server and international server don't share the same data
    • Cannot change default issue priority level
    • Last straw: Untraced bug when failing to add list(task group) and issue (sometimes duplicated and sometimes none).
  • Clean working desk. All three monitors work perfectly now. But currently no mic/webcam. Easiest solution is to use an external one.

2021-12-04#

  • The project to organize my life and work. named (my-habit) then changed to habit-icu.
  • Tested: Teambition, MDC, Ant Design(flicker bug), not so good

2021-12-03#

  • (low productive day)
  • Meeting+Algopulse 20211203 Yifang LION Demetri Zubiar

2021-12-02#

2021-12-01#

2021-11-30#

2021-11-29#

  • AbstrLabs Meeting 20211129 姚博(Bo) 施云瀚(LION)
  • AbstrLabs Meeting 20211129 马一方(Yifang) 施云瀚(LION) (Chinese)
  • AbstrLabs _private_Meeting 2021129 马一方(Yifang) 施云瀚(LION) (Chinese)
  • Design docs on Confluence
  • Learn Programming > Class diagram

2021-11-28#

  • New page "About DeFi" on Confluence
  • Read Programming > Design document
  • Fix shell script "deploy-obsidian", notes in Shell Note

2021-11-27#

2021-11-26#

2021-11-25#

2021-11-24#

2021-11-23#

2021-11-22#

2021-11-21#

  • Setting up new MBPM1Pro

2021-11-20#

2021-11-19#

2021-11-18#

  • DEV-10
Real World ARTcoin
ARTcoin gold
aUSD USD
deposit Stake
interest of deposit mint aUSD with ART
  • Learn Coursera[https://www.coursera.org/learn/intro-economic-theories]
  • ZKP terms: #GATHER_POINT

    Field Term Definition
    zkSNARK QAP Quadratic Arithmetic Program
    zkSNARK Circom language for SNAKR functions
  • completeness/soundness: necessity and sufficiency in knowledge $\Leftrightarrow$ proof.

2021-11-17#

  • ZKP#idea: In an (interactive) ZKP system, the prover can fool the verifier plagiarizing the same answer from a real ZKP prover. Like I request a 3-color map from M$, and M$ doesn't have the answer, but he asks google with same question and google's prover was real. Idea from reading Origin3
  • Schnorr protocol=Schnorr signature: an algorithm for signing messages based on Schnorr group.
  • ZKP:NIZK: NIZK is a type of zero-knowledge proof. Core: a decent hash function lying around

2021-11-16#

  • [ ] More on NPComplete Problems: Reading list Origin1
  • NPComplete Problem: Independent set $\leq_P$ Clique Problem. Origin1
  • 3-SAT $\leq_P$ 3-Coloring. Origin1
  • NPComplete Problem: 3-SAT $\leq_P$ Independent Set. Origin2

2021-11-15#

  • ZKP, simulator: Verifier's move cannot be predictable, this includes that time is not reversible.
  • ZKP#idea with probabilistic model: Prover: I will score 60% of total points.
  • ZKP is based on cryptographic algorithm: [https://en.wikipedia.org/wiki/Commitment_scheme] We can change the key so that the "authenticator" sees different result when opening the box with different keys? Just like the "time machine experiment" in [https://blog.cryptographyengineering.com/2014/11/27/zero-knowledge-proofs-illustrated-primer/] The cost is to break the hash-key system, so maybe its practically safe.
  • ZKP#idea: Any NP-complete problem can be designed into a cryptographic algorithm.
  • ZKP#idea: We can also use ZKP to verify messages like password without passing it. (e.g. require&compare Hash(msg+'a'), Hash(msg+'b'), Hash(msg+'c'), although practically this is worse than just using an asymmetric cryptography.)
  • UX: If a setting needs to confirm/save. Use a floating button or put the button at the beginning.
  • Crypto Currency: mint:

    Minting is the process of validating information, creating a new block, and recording that information into the blockchain. Thus, Proof-of-Stake is the minting process for how blocks are created and how data is added to a block. Origin Creating new crypto coins using a proof-of-stake (PoS) consensus algorithm. In contrast, proof-of-work (PoW) cryptos come into existence by being "mined." The mining and minting terms were created from real-world coin making. Gold and silver are "mined" out of the ground and then "minted" into coins for circulation. Origin

2021-11-12#

  • Discord server 𝔸𝕀𝕄: Readme (discarded) @2021-11-15

2021-11-11#

2021-11-10#

2021-11-09#

2021-11-05#

2021-11-04#

2021-11-03#

2021-10-29#

2021-10-28#

2021-10-27#

2021-10-24#

2021-10-21#

2021-10-18#

2021-10-16#

2021-10-13#

2021-10-12#

2021-10-11#

2021-10-10#

2021-10-08#

2021-10-07#

2021-10-06#

2021-10-05#

2021-10-04#

2021-10-03#

2021-09-30#

2021-09-29#

2021-09-28#

2021-09-27#

2021-09-26#

2021-09-25#

2021-09-24#

2021-09-23#

2021-09-22#

2021-09-21#

2021-09-20#

2021-09-19#

2021-09-17#