Gonçalo Pestana
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
--- title: Z-DAG - PoS solution for real-time crypto payments description: notes on Z-DAG paper tags: papers, done --- ## Z-DAG: An interactive DAG protocol for real-time crypto payments with Nakamoto consensus security parameters *Jagdeep Sidhu, Msc., Eliot Scott , Alexander Gabriel* (Syscoin Core Developers, Blockchain Foundry Inc) [zdag paper](https://syscoin.org/zdag_syscoin_whitepaper.pdf) The main idea of Z-DAG is to enforce a delay between transaction broadcast to allow nodes to deterministically construct a DAG of transactions before minting the block. Z-DAG provides a way for sender and receiver to preemptively agree on the validity of a transaction (with some confidence) before the block containing the transaction has been minted. The main use case for Z-DAG is for point-of-sale solutions, to allow a payer to walk out from shop with some degree of confidence that the payment succeeded, without having to wait for the transaction to be minted. Interesting approach, but I'm not fully convinced that merchants can trust unconfirmed transactions before block confirmation with a higer degree of confidence, in an adversarial setup. Also, there is no discussion about threat model and how Z-DAG can be attacked, which only confirms by skepticism. **Notes**: - Zero Confirmation Directed Acyclical Graph -- a technology that allow for point of sale with high degree of statistical probability of settlement in real time. - Instant settlement protocol that uses a PoW. It is used in the confirmation of Syscoin service transactions (Syscoin provides trustless interoperability with Ethereum ERC-20, token & asset microtransactions, and Bitcoin-core-compliant merge-mined security); - **Goal**: Z-DAG is used to validate nodes across the network and to ensure there is consensus on the ordering of transactions and no double spending. - DAG Settelement: participants in a transaction are able to anticipate what transactions will be in the next block (and order) with confidence, before the block has been minted. This is made possible since miners order queued transaction based on time (with negligible processinf requirements). - Incetives for ordering the transactions locally (miners): If the miner fails to order transactions, there is a risk for the block to not be accepted by the network, since accounts may overflow. - Validating nodes use "a list" (which?) contained in the blocks to confirm there was no double-spending. - Two transactions must have an interval period between issuance and network propagation (10s), in order for validating nodes based on time. If transfers are made within this delay, a conflict state is set. - PoW is a fallback and partition tolerance mechanism for the DAG operation, since a new DAG is constructed for every block. - [**] In Bitcoin, double-spend can be modeled as a race between valid and malicious transactions to propagate the most node across a network first, thus by creating and enforcing delays between transactions, one transfer as exponential advantage over another. This allows Z-DAG to be constructed deterministically (since the ordering problem as been solved), which is hard to achieve in decentralized distributed systems. - The rules of the consensus are not enforeced by the network, but rather between sender and receiver; - Although sender and receiver can realize the account updates before transaction has been confirmed, the transaction is not completed before the block constaining it is mined. The transaction is simply settled with confidence (i.e. there's a prior agreement between sender and payed that the transaction will happen, with some degree with confidence [how to quanitfy confidence?]); - With Z-DAG, the broadcasting nodes do not check for the validity of the transaction before broadcasting it, so as to speed up the transaction broadcsating over the network --> Optimistical broadcasting. **high level overview of Z-DAG**: 1) Initiating node broadcasts that it has sent Syscoin Asset to another address; 2) As nodes receive transaction, they broadcast is before verifying it; 3) Nodes proceed to verify transaction; 4) Once transaction reaches destination, the sale is completed with confidence (even before block has been mined); 5) Miners order by time unconfirmed transactions and compete to mine the block (a la BTC) 6) Transactions of mined blocks are considered confirmed; #### Questions and comments: - How is the delay between transactions enforced when multiple parties broadcast new transactions? i.e. it is relatively easy to verify that party A issues N transactions spaced at least by interval A, but it becomes harder to do the same (without really bad QoS) with to ensure interval of transations between M parties. - The optimistic transasction broadcasting seems fragile against attackers. What is the probability of rolling back unconfirmed transactions when the sender is adversarial? - No thread model? - In the conclusion: "By using Z-DAG, customers transactions can be settled quickly and with the absolute security proven by Bitcoin.", this seems an overstatement to me. I'm still not convinced that a merchant can trust unconfirmed transactions with a high degree of confidence. How about if the transaction is broadcasted by adversary nodes that don;t check for the 10s delay, until the transaction arrives to the merchant? How easy is it to perform this attack?

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully