[Ledger] Errors in the document https://interledger.org/rfcs/0030-notes-on-oer-encoding/#what-is-oercanonical-oer

"Bruno Konik" <bruno.konik@unigone.com> Tue, 07 May 2019 14:19 UTC

Return-Path: <bruno.konik@unigone.com>
X-Original-To: ledger@ietfa.amsl.com
Delivered-To: ledger@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 04D81120151 for <ledger@ietfa.amsl.com>; Tue, 7 May 2019 07:19:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=online.net
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 ryGdXRufXOkw for <ledger@ietfa.amsl.com>; Tue, 7 May 2019 07:19:33 -0700 (PDT)
Received: from smtpauth-dc2-1.online.net (smtpauth-dc2.online.net [62.210.16.40]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F1AC812013C for <ledger@ietf.org>; Tue, 7 May 2019 07:19:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=online.net; s=folays2; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=Yk8LLfNZaoQvadsV6RfSsMZ1UqVY6oTJAdZKA6j02EU=; b=0yM1OZU6u6H9BBkGMnwFQifQooySpGd7byL79i6qWoGiBo1a9Sr2htRbIDiY4GZP4J6L8GR7PJ+tAyL45S7EEi71Wak9dighIJzXx0Qdn+UAG7BFZbTotuwxcNu12Nct9zv5xQyzfhqlj53OUXHL7I4YumMcTWUr6KP6eFMkE8M=;
Received: from [193.248.53.13] (helo=kiwano) by smtpauth-dc2-1.online.net with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from <bruno.konik@unigone.com>) id 1hO0wK-0006FG-Jt for ledger@ietf.org; Tue, 07 May 2019 16:19:28 +0200
From: Bruno Konik <bruno.konik@unigone.com>
To: ledger@ietf.org
Date: Tue, 07 May 2019 16:19:27 +0200
Message-ID: <!&!AAAAAAAAAAAuAAAAAAAAAFMqVsFUbGBCrb8RSyzM7tYBANlTnCJhprtFudq2LHCBs8EBACQA//8AABAAAADobkHfBCiGT64RnN05TLrzAQAAAAA=@unigone.com>
MIME-Version: 1.0
Content-Type: multipart/related; boundary="----=_NextPart_000_0235_01D504F0.A5118A70"
X-Mailer: Microsoft Outlook 15.0
Thread-Index: AdUEzP94rSodZ3RKRj6Eu1uyJyilkw==
Content-Language: fr
X-auth-smtp-user: bruno.konik@unigone.com
X-online-auth-user: FLEX_VTZBc0swSTBTa0EyU0FvMA==iFclJgZMV4mAt361XUAH9Gfi/3VWG0M=
X-online-auth-smtp: FLEX_WW1HbXk4d3lLT0cwdTY2VQ==vdpY8bNvMroRuoRM8r+I
Archived-At: <https://mailarchive.ietf.org/arch/msg/ledger/qYGs_S_Yk8xuVMI3GwTrHlEd7uc>
Subject: [Ledger] Errors in the document https://interledger.org/rfcs/0030-notes-on-oer-encoding/#what-is-oercanonical-oer
X-BeenThere: ledger@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of interledger, originally a protocol stack for moving digital assets \(making payments\) between accounts operating on different payment networks or ledgers." <ledger.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ledger>, <mailto:ledger-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ledger/>
List-Post: <mailto:ledger@ietf.org>
List-Help: <mailto:ledger-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ledger>, <mailto:ledger-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 07 May 2019 14:24:10 -0000

Hello,

 

I would like to make remarks about this doc
(https://interledger.org/rfcs/0030-notes-on-oer-encoding/#what-is-oercanonic
al-oer).

 

There are errors of how integers are encoded in COER in the examples :

 

In Fixed-length signed integers chapter :

 


Type

Bytes

Decoded value


Int8

00

0


Int8

7F

127


Int8

80

-1 
IT IS "-128" !


Int8

FF

-128
IT IS "-1" !


Int16

7FFF

32767


Int16

FC00

-1024


Int16

CFC7

-12345


Int32

0C00F5C9

201389513


Int32

F204BA10

-234571248


Int64

7FFFFFFF FFFFFFFF

9223372036854775807


Int64

EF68FE12 0BC51AD7

-8027945689248242392
IT IS "-1195426347606533417L" ! The encoding of "-8027945689248242392" is
909701ED F43AE528  

 

I hope that my email will reach someone who can handle the above remark.
Thank you very much for taking it in consideration.

 

Best Regards,

 

Bruno KONIK
 <http://www.unigone.com/> 

4 route de la Noue

91 190 Gif sur Yvette

+33(0)160127764 / +33(0)169419619

http://www.unigone.com <http://www.unigone.com/>