Re: [core] http://www.ietf.org/id/draft-urien-core-blockchain-transaction-protocol-00.txt

Pascal Urien <pascal.urien@gmail.com> Sun, 04 March 2018 19:20 UTC

Return-Path: <pascal.urien@gmail.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 638DE124B18 for <core@ietfa.amsl.com>; Sun, 4 Mar 2018 11:20:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Iw68RK2Vf7bQ for <core@ietfa.amsl.com>; Sun, 4 Mar 2018 11:20:46 -0800 (PST)
Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B217B1242F7 for <core@ietf.org>; Sun, 4 Mar 2018 11:20:45 -0800 (PST)
Received: by mail-lf0-x22d.google.com with SMTP id v9so20000556lfa.11 for <core@ietf.org>; Sun, 04 Mar 2018 11:20:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=0SKKMAi7XlMJ3+8jrn50tcCi8tVbeEHWrcJYOjMZXH0=; b=qQdqJObtmwqukNigWCJGpABBS6PPqaIxK9blEBja397bMqkFj9paqwIfLsWuRoGZ1h wAJ2nvTrXSBw2QaWuPw/wyI6tI0HF0RjMRUOt+w3v1TINQRdt7wY8ri4MOfPM8lKAeq1 5rHKw9O9ylZHd1DqWL+U5Gz9hZPNskXel/wBAyPHNhCmP1EHaI77WaZbopQExQ4UzDbg 4SgrAkAK2+pjO1pzemvCd08phL4iXSGTkMUz4Lnvo3oE28Rink1rIrkH2Lrf7oj19ztJ oAfp6a00xCnc4r+e4F+6v/nyOf3IZr8p+SFHgE5dOYECH5/D4vTqLBfESZeuWG5I2KpY 6jSw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0SKKMAi7XlMJ3+8jrn50tcCi8tVbeEHWrcJYOjMZXH0=; b=CBSHfgVfGOSnRTg5f4ttGXiZqT3mu+vAiiA6pqcqnlSE7RfvMALB/YqrgOCg6VCVXR BIGgeXea8i1ez7dH4bWt5VRaz6gPakarlSalcCaWhDJ8r1rADaWdqfy7oA+4QiXTT6Rk 6fGLmAcp6cRX13+qrAqtKVZrffwnKRvcIrA/DPBbB6Z708su/BNGP+S0UpEigIyzsJRs POu58OG7xVhq63TQO3e0jHVaJcPgk2GJFfqmM7/GMD5/wFaGnuEvtcv3bf/QLodW+rOG xlK/d2mv2UyyxUe3vkGw9dQOlQ+kzszIEelbmWOC0mj/XfpbynYBQXNkEyy54OBGL1F3 kSgg==
X-Gm-Message-State: APf1xPBPzJKO6wTnnt2nJvqLaWUWojM8nQ5YzM6voX899pjycnQmsLH4 Me/IGZjF0dDQSp78ythhHe+v9Vwr4yeptCs713zFCVv7
X-Google-Smtp-Source: AG47ELs7l3pE/7bbgZhAQMHqWLU3LznuiQjgU2GcsQh6WK8Ba+8ANW6oRjbF5TBDvecbBgXlLGOJre3YFNHne5fVikk=
X-Received: by 10.46.91.20 with SMTP id p20mr8595659ljb.61.1520191243737; Sun, 04 Mar 2018 11:20:43 -0800 (PST)
MIME-Version: 1.0
Received: by 10.46.54.13 with HTTP; Sun, 4 Mar 2018 11:20:43 -0800 (PST)
In-Reply-To: <CAEQGKXSeYErzeVkptNyLo0nYusWn-kw0r_4CQ1_KKA+CdKBP_Q@mail.gmail.com>
References: <CAEQGKXSeYErzeVkptNyLo0nYusWn-kw0r_4CQ1_KKA+CdKBP_Q@mail.gmail.com>
From: Pascal Urien <pascal.urien@gmail.com>
Date: Sun, 04 Mar 2018 20:20:43 +0100
Message-ID: <CAEQGKXTMrAYmzVbbsjNo71Ewouwic5POx7yunrFQ_mNQrMQrdg@mail.gmail.com>
To: core <core@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c075cc612e07805669b1b36"
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/LLxn-sBSouN2xxemZnZhQP52mek>
Subject: Re: [core] http://www.ietf.org/id/draft-urien-core-blockchain-transaction-protocol-00.txt
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Mar 2018 19:20:47 -0000

Hi All

The draft  http://www.ietf.org/id/draft-urien-core-blockchain-
transaction-protocol-00.txt

proposes to forward sensors/actuators data in blockchain transactions for
authentication, publication and dating purposes

Two messages are nedeed, to be inserted in CoAP payload

1) Provisionning Message, such as
==========================

 {
     "type": 1,
     "nonce": 12,
     "gasPrice": 30,
     "gasLimit": 80000,
     "address": "6BAC1B75185D9051AF740AB909F81C71BBB221A6",
     "value": 0
  }

2) Transaction Message, such as
=========================

 {
   "type": 1,
   "transaction":
   "F8 74 // RLP List, length= 116 bytes
    0C // nonce 1 byte =12 decimal
    85 06FC23AC00 // gasPrice = 30 GWei
    83 013880     // gasLimit = 80000 gas
    // recipient address 20 bytes
    94 6BAC1B75185D9051AF740AB909F81C71BBB221A6
    80 // Null Ether Value
    // Data 15 bytes "Temperature=25C"
    8F 54656D70657261747572653D323543
    1B // recovery parameter, 1 byte
    A0 // r, 32 bytes, ECDSA r paramter
    A9B58980F76EE6284800B82A2B5DF13E456887EC0CF426A5E5D6A738EB1784ED
    A0 // s, 32 bytes, ECDSA s parameter
    629633C6A3ED5FEE0FB40E2D1CF251345B885D372857B1A6C4762C9BE914281F
   "

 }


Any comment ?

Pascal