[爆卦]Stricture是什麼?優點缺點精華區懶人包

雖然這篇Stricture鄉民發文沒有被收入到精華區:在Stricture這個話題中,我們另外找到其它相關的精選爆讚文章

在 stricture產品中有4篇Facebook貼文,粉絲數超過3,460的網紅Taipei Ethereum Meetup,也在其Facebook貼文中提到, 📜 [專欄新文章] Crosslink 2019 Taiwan|LibraBridge: 橋接 Libra 與 Ethereum ✍️ AndyLin 📥 歡迎投稿: https://medium.com/taipei-ethereum-meetup #徵技術分享文 #使用心得 #教學文 #medi...

 同時也有1部Youtube影片,追蹤數超過3萬的網紅#ミニマリストライフ,也在其Youtube影片中提到,購入 http://amazon.jp/o/ASIN/B009VGR2QE/jihei-22 本動画は株式会社Bravo様からの無償提供によるレビューです。 ブログ http://review.jihei.org/2013/10/pr-aee-magicam-sd21-bravo.html AE...

  • stricture 在 Taipei Ethereum Meetup Facebook 的精選貼文

    2019-10-27 21:22:07
    有 33 人按讚

    📜 [專欄新文章] Crosslink 2019 Taiwan|LibraBridge: 橋接 Libra 與 Ethereum
    ✍️ AndyLin
    📥 歡迎投稿: https://medium.com/taipei-ethereum-meetup #徵技術分享文 #使用心得 #教學文 #medium

    十月19–20日於台北矽谷會議中心舉行的 Crosslink 2019 Taiwan,由 Taipei Ethereum Meetup 合計共40多位志工協力舉辦,吸引了上百位來自全球的區塊鏈開發者社群齊聚。自從 Facebook 在今年六月公布 Libra 計劃之後,造成全球政府、金融機構以及區塊鏈產業的熱烈關注,其中也有許多區塊鏈開發者對於 Libra 的技術及應用產生很大的興趣。在19日上午其中一場演講由來自區塊鏈技術開發公司 AMIS 的軟體工程師 Bun Hsu,分享了其開發的專案「LibraBridge: 橋接 Libra 與 Ethereum」,透過實作 MVP 來實現 Libra 與 ETH 之間的 Swap 互換。

    LibraBridge: 橋接 Libra 與 Ethereum — Bun Hsu(source: Crosslink 2019 Taiwan)

    在演講的前半段,講者先介紹了在驗證 Libra 交易所需具備的基本知識;後半段則介紹其實作的 LibraBridge,並現場 demo。

    一、驗證 Libra 交易

    首先,先介紹驗證 Libra 交易需要具備的基本知識,包括 Merkle tree, transaction info 以及 transaction accumulator 等。區塊鏈網路中的 client node 分為 full node, light node, relay node,在這裡會著重在 light node 輕節點。輕節點不需擁有區塊鏈上所有的資料,只需透過 block header 中的 Merkle root 即可驗證交易。

    接著介紹 Libra 的交易資訊,稱為 Transaction Information,主要分為 RawTransaction, SignedTransaction 以及 TransactionInfo 三部分,內容如下圖所示。

    Libra Transaction Tree (source)

    因為 Merkle root 的值在每次新節點加進來後都會改變,導致 Merkle tree 會不斷變大,因此,Libra 中的 transaction tree 被稱為 transaction accumulator。

    Data stricture in the Libra protocol(source)

    接著,講者以一個範例來說明上述內容。

    從 gRPC client 收到交易後會顯示以下內容:

    version: 44767signed_transaction { signed_txn: "..."}proof { ledger_info_to_transaction_info_proof { bitmap: 45055 non_default_siblings: "..." non_default_siblings: "..." non_default_siblings: "..." ... } transaction_info { signed_transaction_hash: "..." state_root_hash: "..." event_root_hash: "..." major_status: 4001 }}events { ...}

    Version

    每一個交易都有其唯一的版本號碼,也就是在 transaction accumulator 中 leaf node 的位置。以下圖為例,藍色節點的交易 version 為 4,二進制表示為 100,其中 0 表示向左,1 表示向右,因此我們可以從 root 出發,向右一次、向左兩次後找到此交易。此概念和 Plasma Cash 相似。

    Transaction version(source)

    bitmap & non_default_siblings

    bitmap 表示哪個 siblings 為 default,1 表示 non-default;0 為 default。因為 transaction accumulator 會一直變大,大多數時間都不會是 full binary tree,因此,需要 default(placeholder) 來維持樹的結構。

    bitmap & non_default_siblings(source)

    transaction_info

    交易的細節。其中,major_status: 4001 表示交易已被節點執行。而因為目前 Libra 不會消耗 gas,因此 gas_used 為 0 而未顯示。

    在前半段演講結束前,講者也展示了用 Solidity 語言來驗證 Libra transaction Merkle proof 的程式碼。

    Solidity snippet

    而在後半段演講,講者先介紹了 LibraBridge 的應用場景。

    二、透過可信任的第三方來執行 LIB-ETH 交換

    目前要進行 Libra token 和 ETH 的交換,必須透過可信任的第三方來確保交易執行。舉例來說,假設參與方(使用者)擁有 Libra token,而託管方(MAX 交易所)有賣 ETH,參與方想要和託管方進行幣幣交換的方法為從 MAX 交易所入金 Libra 並與之交換 ETH,但前提是相信 MAX 交易所會如期出金,不會作惡。

    但此時會有個問題產生:是否可在不完全信任託管方(MAX 交易所)的情況下來實現 LIB-ETH 的幣幣交換呢?

    三、LibraBridge — Trustless custodian between Libra and Ethereum

    在 LibraBridge 的實作中,藉由兩個 function 來實現無需託管信任的 LIB-ETH 幣幣交換:

    Deposit:託管方傳送較多的 ETH 至合約中作為保證金。

    Challenge:參與方可以質疑託管方是否實現承諾(在合約中驗證 Libra transaction Merkle proof)

    以下分別討論正常情況及違約挑戰的情況:

    Case 1: 正常情況

    在正常的情況下,首先託管方會在合約中存入保證金,同時被鎖定直到一定時間後才能被託管方取回。而當使用者(參與方)想與託管方進行幣幣交換時,會先查詢合約上是否有足夠的保證金,若驗證通過,使用者將 Libra 代幣存入託管方,而當託管方確認後,則會傳送等值的 ETH 給使用者。

    Case 1(source)

    Case 2: 託管方違約

    若託管方收到 Libra 後卻沒轉送 ETH 給使用者,則託管方即違約,使用者可以透過合約中的 Challenge 功能來執行違約挑戰,使用者可以出示 Libra 轉帳證明作為憑據,在驗證過 Libra transaction Merkle proof 後,合約上的押金(保證金)會被削減以歸還給使用者作為補償。

    Case 2(source)

    Demo

    在演講的最後,講者也現場 demo 了 LibraBridge 的實作,有興趣的讀者也可以參考其官方錄製的 demo 影片。

    而這場演講裡提到的內容,讀者也可參考 AMIS 的 Medium 文章及 github。

    Crosslink 2019 Taiwan|LibraBridge: 橋接 Libra 與 Ethereum was originally published in Taipei Ethereum Meetup on Medium, where people are continuing the conversation by highlighting and responding to this story.

    👏 歡迎轉載分享鼓掌

  • stricture 在 Suboi Facebook 的精選貼文

    2018-01-24 10:47:55
    有 224 人按讚


    My Dear,

    Thank you for being here and see me like I am in sheer
    The time is near, I face my fear when I don’t see so clear.
    The peer distraction, business action
    The compromise I learn this word so many time but now it’s interaction
    The imperfection of people, divided by levels
    But then somehow its very lethal, everyone hold on to their ego
    Build up like a giant Lego see who wants to be a hero
    I like the echo when the gecko to go metro see his amigo
    I like pesto with potato now that could be gnocchi
    The demo playing techno oh no now that should be not me
    I don’t mean to say its bad but inexact to play it in the Angkor Wat
    so forget about the contract
    Don’t care who you in contact.
    I take a selfie picture or whatever I do it freely
    Not the mixture of stricture believe me they never see me
    They cut me out because Im not commercialized enough to the TV
    The underground thinks Im too big and they decided to diss and quit me.

    I know its very hard but sure it showed your patient
    The road is bumpy and raw to look for me in this occupation
    I know you’re very mature, and I’m just drinking this Kahlua
    But in Vietnamese I think I would named it “Đời chua“
    You know,
    Sometimes I show too much of my dark side when I cry
    But I hope you understand it’s just my confusing clockwise
    I go around and found out that sometimes I do make sound
    But sometimes I say nothing and sometimes I do bow down
    My uncle tells me to breathe its a bit surprise me, wow
    I don’t want to take those cash now, they can’t buy me out
    Not theirs when I’m the one who go out
    Explore what my life is about
    Why is this coming out, all this madness surround
    Of course I see mistakes in the past
    and some people always tell me Im not the shit and I know I need just that.
    And then you got my back
    So I refused the tracks that they asked me to act up, I accept to be smacked up
    Cuz my mind doesn’t want to be locked up and in real life I realized
    When to shut up.

    https://soundcloud.com/suboi/mydear

  • stricture 在 一個平凡醫學生的日常。 Facebook 的精選貼文

    2017-04-21 22:36:22
    有 42 人按讚


    「用自己0.5%既死亡機會,換取受惠者90%既存活機會」
    其實最有效「解決」呢個道德兩難,就係希望大家支持器官捐贈,令自己或家人既身體可以遺愛人間,延續其他人既生命。呢點係普世價值支持既,亦都唔違背大部分宗教既原則,希望大家多加考慮。

    【活肝移植捐贈有咩風險同併發症?】
     
    先前急需換肝嘅43歲鄧媽媽獲得素昧平生嘅善心市民捐出三分二肝臟,雖然移植肝因為血管問題要換走而唔能夠再使用,並需要再一次換肝,但係醫生都認為最初嘅肝對於延續鄧媽媽嘅生命有不可或缺嘅作用。捐肝者呢個決定嘅無私,唔單止在於要承受呢次手術嘅風險,而係喺手術之後都可能會出現唔同嘅併發症,呢樣都係陌生人活體捐肝咁具爭議性嘅其中一個原因。
     
    一般嚟講,捐肝之後至少要留醫7至10日,要返返工作崗位,就至少要6至8個禮拜喇。捐肝者要承受嘅死亡風險算高定低見仁見智,捐贈細啲嘅左葉整體死亡率大概係0.1%,即係1000分之1,而捐大啲嘅右葉,風險就去到0.5%,即係200分之1,除此之外,手術後都會有大約兩成人產生併發症,可能要再接受治療,當中包括:
     
    1. 膽管嘅問題,例如膽漏同膽管狹窄 (biliary stricture)
    2. 感染,例如傷口感染、肺炎
    3. 出血
    4. 切口疝氣 (incisional hernia),係一種疝氣(俗稱小腸氣),即係手術傷口埋得唔好,導致腹壁有一個弱點,令到小腸透過呢個弱點推到肚皮突咗出嚟
    5. 少數嘅人捐完肝會有肝衰竭,可能掉返轉頭需要換肝等等
     
    除此之外,對捐肝者嘅其他影響仲包括:
    1. 做完手術嘅疤痕係永久嘅,日後可能有機會會變成突起嘅肥厚性疤痕,影響外觀
    2. 有啲人傷口喺過後可能會持續有輕微嘅不適
    3. 復原期間冇得返工、照顧唔到屋企人、或者額外有使費,造成負擔
     
    凡此種種嘅風險影響,喺捐肝之前都必需要諗清諗楚,而明白呢啲一切都選擇去救人嘅人,無論你贊唔贊同個決定本身,小編認為佢哋嘅精神都值得我哋嘅敬佩。事實上,幾項研究中問到捐過肝嘅人,如果需要會唔會再捐,有絕大部分都話會。隨住醫學嘅進步,捐肝者喺未來要承受嘅風險有望逐步減低,呢一羣有心人就可以有更好嘅保障喇。
     
    資料來源:
     
    瑪麗醫院活體肝捐贈者資訊 (2015年7月版) :
    http://www3.ha.org.hk/…/transplant_centre/doc/liver_donor_i…
     
    UpToDate: Living Donor Liver Transplantation :
    https://www.uptodate.com/…/living-donor-liver-transplantati…

你可能也想看看

搜尋相關網站