<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24430</bug_id>
          
          <creation_ts>2014-01-28 18:43:38 +0000</creation_ts>
          <short_desc>Make BigInteger signed or rename it</short_desc>
          <delta_ts>2014-01-28 20:24:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Web Cryptography</product>
          <component>Web Cryptography API Document</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Franz Antesberger">info</reporter>
          <assigned_to name="Ryan Sleevi">sleevi</assigned_to>
          <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99330</commentid>
    <comment_count>0</comment_count>
    <who name="Franz Antesberger">info</who>
    <bug_when>2014-01-28 18:43:38 +0000</bug_when>
    <thetext>All the Typed Arrays use a &quot;U&quot;, when dealing with unsigned integers.
So please make &quot;BigInteger&quot; signed or rename it to &quot;BigUInteger&quot;,
some day we might need signed BigIntegers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99335</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-01-28 19:07:42 +0000</bug_when>
    <thetext>BigInteger is not a Typed Array of Big Integers. It is a single Big Integer.

The Typed Arrays spec you referenced is for dealing with _arrays_ of integers of a particular type. That is, UInt8_Array_</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99336</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-28 19:20:49 +0000</bug_when>
    <thetext>Ryan - I&apos;m reopening this, not because I think we should make any change, but just because your answer doesn&apos;t address the question Franz is asking.

The point is that it is common, where TypedArray specifies the type of the array elements and elsewhere to put a &apos;U&apos; in front of Integer to indicate unsigned.

But the main question is whether our type should in fact be a Signed Integer, since we might need those in future. If we keep with unsigned, then the question is whether to rename it ?

If we keep with unsigned and the existing name, then we *will* have a problem when we later want to introduce a signed big integer - what will we call it BigSInteger ?

I wouldn&apos;t be opposed to renaming to UnsignedBigInteger, since I am never afraid of spending letters...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99345</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-01-28 20:19:30 +0000</bug_when>
    <thetext>Closing this again, as no action is needed.

BigInteger is a typedef, not an interface type. As such, it is purely syntactic sugar.

A future version of the WebCrypto API could introduce further distinction by introducing a typedef for &quot;BigInt&quot; and &quot;BigUInt&quot;, and it would be 100% backwards compatible as long as the API was updated to rename all occurrences of &quot;BigInteger&quot; with &quot;BigUInt&quot;

See http://heycam.github.io/webidl/#idl-typedefs

As such, the potential future concern of an additional type does not need to be addressed until we have such a need, and can be done so in a way that is fully API compatible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99346</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-28 20:24:56 +0000</bug_when>
    <thetext>Ok, that works for me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>