Skip to content

Commit e447cdf

Browse files
committed
Update CAD3 so Address is no longer a special type
1 parent 6f688f8 commit e447cdf

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

docs/cad/003_encoding/README.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -346,22 +346,6 @@ Ref encodings are used for child values contained within other cell encodings su
346346

347347
These rules are necessary to ensure uniqueness of the parent encoding (otherwise, there would be two or more encodings for many values, e.g. one with an embedded child and the other with a external branch ref).
348348

349-
### `0x21` Address
350-
351-
Addresses are used to reference sequentially allocated accounts in Convex.
352-
353-
```
354-
0x21 <VLQ Count = address number>
355-
```
356-
357-
An Address is encoded by the tag byte followed by a VLQ Encoding of the 64-bit value of the Address.
358-
359-
The address number MUST be positive, i.e. a 63-bit positive integer.
360-
361-
Since addresses are allocated sequentially from zero (and Accounts can be re-used), this usually results in a short encoding.
362-
363-
Addresses MAY be used by implementations outside the CVM for other types of sequentially allocated values.
364-
365349
### `0x30` String
366350

367351
A String is a sequence of bytes with UTF-8 string encoding assumed.
@@ -729,6 +713,8 @@ Where:
729713

730714
Extension values are arbitrary non-negative integer values with a one byte tag, where the low byte of the tag is available for applications to define a special meaning for the value.
731715

716+
For example, Convex uses the extension value `0xEA` to indicate an Address. Since Addresses are allocated sequentially from zero (and Accounts can be re-used), this usually results in a short VLQ encoding.
717+
732718
Extension values are considered "BlobLike" and can therefore be used a a key in an Index
733719

734720
Examples:

0 commit comments

Comments
 (0)