Skip to content

Commit 04b001e

Browse files
committed
Add another builtinByteStringToInteger property, fix incorrect property specification
1 parent 7b0c9cf commit 04b001e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CIP-XXXX/README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,13 @@ builtinByteStringToInteger True (consByteString 0x01 (consByteString 0x01
413413
```
414414

415415
We also describe properties that any `builtinByteStringToInteger` implementation
416-
must have. Throughout, `i` is not negative, and `0 <= w8 <= 255`.
416+
must have. Throughout, `i` is not negative, `0 <= w8 <= 255`, and `bs` is not
417+
empty.
417418

418-
1. `builtinByteStringToInteger b (builtinIntegerToByteString b k i) = i`
419+
1. `builtinByteStringToInteger b (builtinIntegerToByteString b 0 i) = i`
419420
2. `builtinByteStringToInteger b (consByteString w8 emptyByteString) = w8`
421+
3. `builtinIntegerToByteString b (lengthOfByteString bs) (builtinByteStringToInteger b bs) =
422+
bs`
420423

421424
## Rationale: how does this CIP achieve its goals?
422425

0 commit comments

Comments
 (0)